-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/virtual-network-gateway
# Conflicts: # azurerm/provider.go # website/azurerm.erb
- Loading branch information
Showing
327 changed files
with
20,782 additions
and
3,042 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,85 @@ | ||
## 0.1.2 (Unreleased) | ||
## 0.1.5 (Unreleased) | ||
|
||
IMPROVEMENTS: | ||
|
||
* `azurerm_sql_*` - upgrading to version `2014-04-01` of the SQL API's [GH-201] | ||
* `azurerm_virtual_machine_scale_set` - support for custom images and managed disks [GH-203] | ||
|
||
BUG FIXES: | ||
|
||
* `azurerm_sql_database` - fixing creating a DB with a PointInTimeRestore [GH-197] | ||
* `azurerm_virtual_machine` - fix a crash when the properties for a network inteface aren't returned [GH-208] | ||
* Checking to ensure the HTTP Response isn't `nil` before accessing it (fixes [GH-200]) [GH-204] | ||
|
||
## 0.1.4 (July 26, 2017) | ||
|
||
BUG FIXES: | ||
|
||
* `azurerm_dns_*` - upgrading to version `2016-04-01` of the Azure DNS API by switching from Riviera -> Azure SDK for Go ([#192](https://github.com/terraform-providers/terraform-provider-azurerm/issues/192)) | ||
|
||
## 0.1.3 (July 21, 2017) | ||
|
||
FEATURES: | ||
|
||
* **New Resource:** `azurerm_dns_ptr_record` ([#141](https://github.com/terraform-providers/terraform-provider-azurerm/issues/141)) | ||
* **New Resource:**`azurerm_image` ([#8](https://github.com/terraform-providers/terraform-provider-azurerm/issues/8)) | ||
* **New Resource:** `azurerm_servicebus_queue` ([#151](https://github.com/terraform-providers/terraform-provider-azurerm/issues/151)) | ||
|
||
IMPROVEMENTS: | ||
|
||
* `azurerm_client_config` - added a `service_principal_object_id` attribute to the data source ([#175](https://github.com/terraform-providers/terraform-provider-azurerm/issues/175)) | ||
* `azurerm_search_service` - added import support ([#172](https://github.com/terraform-providers/terraform-provider-azurerm/issues/172)) | ||
* `azurerm_servicebus_topic` - added a `status` field to allow disabling the topic ([#150](https://github.com/terraform-providers/terraform-provider-azurerm/issues/150)) | ||
* `azurerm_storage_account` - Added support for Require secure transfer ([#167](https://github.com/terraform-providers/terraform-provider-azurerm/issues/167)) | ||
* `azurerm_storage_table` - updating the name validation ([#143](https://github.com/terraform-providers/terraform-provider-azurerm/issues/143)) | ||
* `azurerm_virtual_machine` - making `admin_password` optional for Linux VM's ([#154](https://github.com/terraform-providers/terraform-provider-azurerm/issues/154)) | ||
* `azurerm_virtual_machine_scale_set` - adding a `plan` block for Marketplace images ([#161](https://github.com/terraform-providers/terraform-provider-azurerm/issues/161)) | ||
|
||
## 0.1.2 (June 29, 2017) | ||
|
||
FEATURES: | ||
|
||
* **New Data Source:** `azurerm_managed_disk` [GH-121] | ||
* **New Resource:** `azurerm_application_insights` [GH-3] | ||
* `azurerm_network_interface` now supports import [GH-119] | ||
* **New Data Source:** `azurerm_managed_disk` ([#121](https://github.com/terraform-providers/terraform-provider-azurerm/issues/121)) | ||
* **New Resource:** `azurerm_application_insights` ([#3](https://github.com/terraform-providers/terraform-provider-azurerm/issues/3)) | ||
* **New Resource:** `azurerm_cosmosdb_account` ([#108](https://github.com/terraform-providers/terraform-provider-azurerm/issues/108)) | ||
* `azurerm_network_interface` now supports import ([#119](https://github.com/terraform-providers/terraform-provider-azurerm/issues/119)) | ||
|
||
IMPROVEMENTS: | ||
|
||
* Ensuring consistency in when storing the `location` field in the state for the `azurerm_availability_set`, `azurerm_express_route_circuit`, `azurerm_load_balancer`, `azurerm_local_network_gateway`, `azurerm_managed_disk`, `azurerm_network_security_group` | ||
`azurerm_public_ip`, `azurerm_resource_group`, `azurerm_route_table`, `azurerm_storage_account`, `azurerm_virtual_machine` and `azurerm_virtual_network` resources [GH-123] | ||
`azurerm_public_ip`, `azurerm_resource_group`, `azurerm_route_table`, `azurerm_storage_account`, `azurerm_virtual_machine` and `azurerm_virtual_network` resources ([#123](https://github.com/terraform-providers/terraform-provider-azurerm/issues/123)) | ||
* `azurerm_redis_cache` - now supports backup settings for Premium Redis Cache's ([#130](https://github.com/terraform-providers/terraform-provider-azurerm/issues/130)) | ||
* `azurerm_storage_account` - exposing a formatted Connection String for Blob access ([#142](https://github.com/terraform-providers/terraform-provider-azurerm/issues/142)) | ||
|
||
BUG FIXES: | ||
|
||
* `azurerm_container_service` - exposes the FQDN of the master_profile as a computed field [GH-125] | ||
* `azurerm_key_vault` - fixing import / the validation on Access Policies [GH-124] | ||
* `azurerm_network_interface` - Normalizing the location field in the state [GH-122] | ||
* `azurerm_network_interface` - fixing a crash when importing a NIC with a Public IP [GH-128] | ||
* `azurerm_subnet` now correctly detects changes to Network Securtiy Groups and Routing Table's [GH-113] | ||
* `azurerm_cdn_endpoint` - fixing update of the `origin_host_header` ([#134](https://github.com/terraform-providers/terraform-provider-azurerm/issues/134)) | ||
* `azurerm_container_service` - exposes the FQDN of the `master_profile` as a computed field ([#125](https://github.com/terraform-providers/terraform-provider-azurerm/issues/125)) | ||
* `azurerm_key_vault` - fixing import / the validation on Access Policies ([#124](https://github.com/terraform-providers/terraform-provider-azurerm/issues/124)) | ||
* `azurerm_network_interface` - Normalizing the location field in the state ([#122](https://github.com/terraform-providers/terraform-provider-azurerm/issues/122)) | ||
* `azurerm_network_interface` - fixing a crash when importing a NIC with a Public IP ([#128](https://github.com/terraform-providers/terraform-provider-azurerm/issues/128)) | ||
* `azurerm_network_security_rule`: `network_security_group_name` is now `ForceNew` ([#138](https://github.com/terraform-providers/terraform-provider-azurerm/issues/138)) | ||
* `azurerm_subnet` now correctly detects changes to Network Securtiy Groups and Routing Table's ([#113](https://github.com/terraform-providers/terraform-provider-azurerm/issues/113)) | ||
* `azurerm_virtual_machine_scale_set` - making `storage_profile_os_disk`.`name` optional ([#129](https://github.com/terraform-providers/terraform-provider-azurerm/issues/129)) | ||
|
||
## 0.1.1 (June 21, 2017) | ||
|
||
BUG FIXES: | ||
|
||
* Sort ResourceID.Path keys for consistent output ([#116](https://github.com/terraform-providers/terraform-provider-azurerm/116)) | ||
* Sort ResourceID.Path keys for consistent output ([#116](https://github.com/terraform-providers/terraform-provider-azurerm/issues/116)) | ||
|
||
## 0.1.0 (June 20, 2017) | ||
|
||
BACKWARDS INCOMPATIBILITIES / NOTES: | ||
|
||
FEATURES: | ||
|
||
* **New Data Source:** `azurerm_resource_group` [[#15022](https://github.com/terraform-providers/terraform-provider-azurerm/15022)](https://github.com/hashicorp/terraform/pull/15022) | ||
* **New Data Source:** `azurerm_resource_group` [[#15022](https://github.com/terraform-providers/terraform-provider-azurerm/issues/15022)](https://github.com/hashicorp/terraform/pull/15022) | ||
|
||
IMPROVEMENTS: | ||
|
||
* Add diff supress func to endpoint_location [[#15094](https://github.com/terraform-providers/terraform-provider-azurerm/15094)](https://github.com/hashicorp/terraform/pull/15094) | ||
* Add diff supress func to endpoint_location [[#15094](https://github.com/terraform-providers/terraform-provider-azurerm/issues/15094)](https://github.com/hashicorp/terraform/pull/15094) | ||
|
||
BUG FIXES: | ||
|
||
* Fixing the Deadlock issue ([#6](https://github.com/terraform-providers/terraform-provider-azurerm/6)) | ||
* Fixing the Deadlock issue ([#6](https://github.com/terraform-providers/terraform-provider-azurerm/issues/6)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
package azurerm | ||
|
||
import ( | ||
"fmt" | ||
"log" | ||
"os" | ||
"strings" | ||
"testing" | ||
|
||
"github.com/hashicorp/terraform/helper/resource" | ||
) | ||
|
||
func TestMain(m *testing.M) { | ||
resource.TestMain(m) | ||
} | ||
|
||
func buildConfigForSweepers() (*ArmClient, error) { | ||
subscriptionID := os.Getenv("ARM_SUBSCRIPTION_ID") | ||
clientID := os.Getenv("ARM_CLIENT_ID") | ||
clientSecret := os.Getenv("ARM_CLIENT_SECRET") | ||
tenantID := os.Getenv("ARM_TENANT_ID") | ||
environment := os.Getenv("ARM_ENVIRONMENT") | ||
|
||
if environment == "" { | ||
environment = "public" | ||
} | ||
|
||
if subscriptionID == "" || clientID == "" || clientSecret == "" || tenantID == "" { | ||
return nil, fmt.Errorf("ARM_SUBSCRIPTION_ID, ARM_CLIENT_ID, ARM_CLIENT_SECRET and ARM_TENANT_ID must be set for acceptance tests") | ||
} | ||
|
||
config := &Config{ | ||
SubscriptionID: subscriptionID, | ||
ClientID: clientID, | ||
ClientSecret: clientSecret, | ||
TenantID: tenantID, | ||
Environment: environment, | ||
SkipProviderRegistration: false, | ||
} | ||
|
||
return config.getArmClient() | ||
} | ||
|
||
func shouldSweepAcceptanceTestResource(name string, resourceLocation string, region string) bool { | ||
loweredName := strings.ToLower(name) | ||
|
||
prefixesToIgnore := []string{"acctest"} | ||
|
||
for _, prefix := range prefixesToIgnore { | ||
if !strings.HasPrefix(loweredName, prefix) { | ||
log.Printf("Ignoring Resource '%s' due to prefix '%s'", name, prefix) | ||
return false | ||
} | ||
} | ||
|
||
normalisedResourceLocation := azureRMNormalizeLocation(resourceLocation) | ||
normalisedRegion := azureRMNormalizeLocation(region) | ||
|
||
if normalisedResourceLocation != normalisedRegion { | ||
log.Printf("Region '%s' isn't '%s' - skipping", normalisedResourceLocation, normalisedRegion) | ||
return false | ||
} | ||
|
||
return true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.