From 3b0cbe6496bc5027d55cabe5143cc958ce05f2ab Mon Sep 17 00:00:00 2001 From: kt Date: Thu, 27 Jun 2019 15:22:19 -0700 Subject: [PATCH] run terrafmt on acctests and website (#3742) --- ...data_source_api_management_product_test.go | 1 - .../data_source_api_management_user_test.go | 17 +- azurerm/data_source_app_service_plan_test.go | 26 +-- .../data_source_application_insights_test.go | 20 +- azurerm/data_source_availability_set_test.go | 10 +- azurerm/data_source_batch_certificate_test.go | 21 +- azurerm/data_source_batch_pool_test.go | 32 +-- .../data_source_express_route_circuit_test.go | 2 +- azurerm/data_source_firewall_test.go | 2 +- azurerm/data_source_policy_definition_test.go | 6 +- azurerm/data_source_redis_cache_test.go | 5 +- ...virtual_network_gateway_connection_test.go | 75 ++++--- ...pi_management_api_operation_policy_test.go | 31 +-- ...e_arm_api_management_api_operation_test.go | 41 ++-- ...urce_arm_api_management_api_policy_test.go | 29 +-- ...pi_management_authorization_server_test.go | 29 ++- ...urce_arm_api_management_group_user_test.go | 28 +-- ...resource_arm_api_management_logger_test.go | 4 +- ...rce_arm_api_management_product_api_test.go | 9 +- ...e_arm_api_management_product_group_test.go | 16 +- ..._arm_api_management_product_policy_test.go | 23 +- ...source_arm_api_management_property_test.go | 2 +- ...ce_arm_api_management_subscription_test.go | 12 +- azurerm/resource_arm_api_management_test.go | 2 +- .../resource_arm_api_management_user_test.go | 120 +++++----- azurerm/resource_arm_app_service_plan_test.go | 24 +- azurerm/resource_arm_app_service_slot_test.go | 3 +- azurerm/resource_arm_app_service_test.go | 123 ++++++----- .../resource_arm_application_gateway_test.go | 197 ++++++++++------- ..._arm_application_insights_webtests_test.go | 2 +- .../resource_arm_batch_certificate_test.go | 52 ++--- azurerm/resource_arm_batch_pool_test.go | 58 ++--- .../resource_arm_connection_monitor_test.go | 10 +- azurerm/resource_arm_container_group_test.go | 68 +++--- ...rce_arm_data_factory_dataset_mysql_test.go | 14 +- ...rm_data_factory_dataset_postgresql_test.go | 14 +- ...a_factory_dataset_sql_server_table_test.go | 18 +- ...ked_service_data_lake_storage_gen2_test.go | 4 +- ..._data_factory_linked_service_mysql_test.go | 4 +- ..._factory_linked_service_postgresql_test.go | 4 +- ..._factory_linked_service_sql_server_test.go | 4 +- ...resource_arm_data_factory_pipeline_test.go | 6 +- azurerm/resource_arm_data_factory_test.go | 153 ++++++------- azurerm/resource_arm_eventgrid_domain_test.go | 9 +- ...e_arm_eventgrid_event_subscription_test.go | 66 +++--- ...rewall_application_rule_collection_test.go | 1 + ...e_arm_firewall_nat_rule_collection_test.go | 78 +++---- azurerm/resource_arm_function_app_test.go | 6 +- ...ource_arm_hdinsight_hadoop_cluster_test.go | 8 +- ...source_arm_hdinsight_hbase_cluster_test.go | 8 +- ...dinsight_interactive_query_cluster_test.go | 6 +- ...source_arm_hdinsight_kafka_cluster_test.go | 8 +- ..._arm_hdinsight_ml_services_cluster_test.go | 8 +- ...urce_arm_hdinsight_rserver_cluster_test.go | 8 +- ...source_arm_hdinsight_spark_cluster_test.go | 8 +- ...source_arm_hdinsight_storm_cluster_test.go | 8 +- azurerm/resource_arm_image_test.go | 1 - .../resource_arm_iot_dps_certificate_test.go | 30 +-- azurerm/resource_arm_iot_dps_test.go | 8 +- azurerm/resource_arm_iothub_test.go | 24 +- ...source_arm_key_vault_access_policy_test.go | 6 +- ...resource_arm_key_vault_certificate_test.go | 12 +- azurerm/resource_arm_key_vault_key_test.go | 32 +-- azurerm/resource_arm_key_vault_secret_test.go | 14 +- azurerm/resource_arm_key_vault_test.go | 45 ++-- .../resource_arm_kubernetes_cluster_test.go | 10 +- ...rce_arm_loadbalancer_outbound_rule_test.go | 81 ++++--- .../resource_arm_loadbalancer_rule_test.go | 14 +- azurerm/resource_arm_loadbalancer_test.go | 8 +- ...source_arm_log_analytics_workspace_test.go | 2 +- ...rce_arm_network_connection_monitor_test.go | 10 +- ...ication_security_group_association_test.go | 2 +- .../resource_arm_policy_assignment_test.go | 2 + ...resource_arm_policy_set_definition_test.go | 2 +- ...ource_arm_postgresql_configuration_test.go | 2 +- .../resource_arm_redis_firewall_rule_test.go | 12 +- ...ource_arm_scheduler_job_collection_test.go | 3 +- ...esource_arm_service_fabric_cluster_test.go | 10 +- azurerm/resource_arm_storage_account_test.go | 26 +-- azurerm/resource_arm_storage_blob_test.go | 4 +- ..._analytics_function_javascript_udf_test.go | 2 + .../resource_arm_stream_analytics_job_test.go | 4 +- ...m_stream_analytics_output_eventhub_test.go | 28 +-- ..._arm_stream_analytics_output_mssql_test.go | 51 ++--- ...stream_analytics_stream_input_blob_test.go | 72 +++--- azurerm/resource_arm_subnet_test.go | 12 +- ...urce_arm_virtual_machine_extension_test.go | 1 - ...rm_virtual_machine_unmanaged_disks_test.go | 24 +- .../managed_service_identity.html.markdown | 12 +- .../docs/d/api_management_group.html.markdown | 2 +- .../docs/d/api_management_user.html.markdown | 2 +- website/docs/d/batch_account.html.markdown | 2 +- .../docs/d/batch_certificate.html.markdown | 3 +- .../d/express_route_circuit.html.markdown | 8 +- website/docs/d/firewall.html.markdown | 2 +- .../docs/d/hdinsight_cluster.html.markdown | 2 +- website/docs/d/key_vault_secret.html.markdown | 2 +- website/docs/d/redis_cache.html.markdown | 1 - website/docs/d/role_definition.markdown | 3 +- website/docs/d/sql_server.html.markdown | 2 +- .../d/user_assigned_identity.html.markdown | 88 ++++---- ...l_network_gateway_connection.html.markdown | 206 +++++++++--------- ...agement_api_operation_policy.html.markdown | 13 +- .../r/api_management_api_policy.html.markdown | 9 +- .../r/api_management_api_schema.html.markdown | 1 - ...agement_authorization_server.html.markdown | 3 +- .../api_management_product_api.html.markdown | 2 +- ...pi_management_product_policy.html.markdown | 7 +- .../docs/r/api_management_user.html.markdown | 14 +- .../docs/r/application_gateway.html.markdown | 12 +- website/docs/r/batch_account.html.markdown | 2 +- website/docs/r/batch_pool.html.markdown | 7 +- .../r/cosmosdb_mongo_collection.html.markdown | 11 +- .../r/cosmosdb_sql_database.html.markdown | 2 +- ...rvice_data_lake_storage_gen2.html.markdown | 7 +- ...ry_linked_service_postgresql.html.markdown | 2 +- .../docs/r/ddos_protection_plan.html.markdown | 2 +- ...eventgrid_event_subscription.html.markdown | 35 +-- ..._application_rule_collection.html.markdown | 10 +- ...firewall_nat_rule_collection.html.markdown | 10 +- ...wall_network_rule_collection.html.markdown | 10 +- .../r/hdinsight_hadoop_cluster.html.markdown | 8 +- .../r/hdinsight_hbase_cluster.html.markdown | 8 +- ...ht_interactive_query_cluster.html.markdown | 8 +- ...dinsight_ml_services_cluster.html.markdown | 8 +- .../r/hdinsight_rserver_cluster.html.markdown | 8 +- .../docs/r/iot_dps_certificate.html.markdown | 8 +- website/docs/r/iothub.html.markdown | 2 +- .../iothub_shared_access_policy.html.markdown | 3 +- .../r/key_vault_access_policy.html.markdown | 2 +- .../r/key_vault_certificate.html.markdown | 48 +++- website/docs/r/key_vault_key.html.markdown | 6 +- website/docs/r/key_vault_secret.html.markdown | 4 +- ...alancer_backend_address_pool.html.markdown | 8 +- .../r/loadbalancer_nat_pool.html.markdown | 8 +- .../r/loadbalancer_nat_rule.html.markdown | 8 +- .../loadbalancer_outbound_rule.html.markdown | 18 +- .../docs/r/loadbalancer_probe.html.markdown | 8 +- .../docs/r/loadbalancer_rule.html.markdown | 8 +- website/docs/r/management_group.html.markdown | 10 +- .../r/media_services_account.html.markdown | 2 +- website/docs/r/mysql_server.html.markdown | 4 +- ...network_ddos_protection_plan.html.markdown | 2 +- ...n_security_group_association.html.markdown | 2 +- website/docs/r/public_ip_prefix.html.markdown | 2 +- ...tics_function_javascript_udf.html.markdown | 1 + ...am_analytics_output_eventhub.html.markdown | 1 - ...tream_analytics_output_mssql.html.markdown | 176 +++++++-------- ..._analytics_stream_input_blob.html.markdown | 18 +- ...nalytics_stream_input_iothub.html.markdown | 1 - website/docs/r/subnet.html.markdown | 2 + website/docs/r/virtual_network.html.markdown | 2 +- 152 files changed, 1557 insertions(+), 1428 deletions(-) diff --git a/azurerm/data_source_api_management_product_test.go b/azurerm/data_source_api_management_product_test.go index 1b8c5aed460b..6a81fe584235 100644 --- a/azurerm/data_source_api_management_product_test.go +++ b/azurerm/data_source_api_management_product_test.go @@ -54,7 +54,6 @@ resource "azurerm_api_management" "test" { resource_group_name = "${azurerm_resource_group.test.name}" } - resource "azurerm_api_management_product" "test" { product_id = "test-product" api_management_name = "${azurerm_api_management.test.name}" diff --git a/azurerm/data_source_api_management_user_test.go b/azurerm/data_source_api_management_user_test.go index e757346ccf9c..288ce1e3f9f7 100644 --- a/azurerm/data_source_api_management_user_test.go +++ b/azurerm/data_source_api_management_user_test.go @@ -53,16 +53,15 @@ resource "azurerm_api_management" "test" { resource_group_name = "${azurerm_resource_group.test.name}" } - resource "azurerm_api_management_user" "test" { - user_id = "test-user" - api_management_name = "${azurerm_api_management.test.name}" - resource_group_name = "${azurerm_resource_group.test.name}" - first_name = "Acceptance" - last_name = "Test" - email = "azure-acctest%d@example.com" - state = "active" - note = "Used for testing in dimension C-137." + user_id = "test-user" + api_management_name = "${azurerm_api_management.test.name}" + resource_group_name = "${azurerm_resource_group.test.name}" + first_name = "Acceptance" + last_name = "Test" + email = "azure-acctest%d@example.com" + state = "active" + note = "Used for testing in dimension C-137." } data "azurerm_api_management_user" "test" { diff --git a/azurerm/data_source_app_service_plan_test.go b/azurerm/data_source_app_service_plan_test.go index f74ee05f39a1..bd68b5878999 100644 --- a/azurerm/data_source_app_service_plan_test.go +++ b/azurerm/data_source_app_service_plan_test.go @@ -204,26 +204,26 @@ data "azurerm_app_service_plan" "test" { func testAccDataSourceAppServicePlan_basicWindowsContainer(rInt int, location string) string { return fmt.Sprintf(` resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" + name = "acctestRG-%d" + location = "%s" } resource "azurerm_app_service_plan" "test" { - name = "acctestASP-%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - is_xenon = true - kind = "xenon" + name = "acctestASP-%d" + location = "${azurerm_resource_group.test.location}" + resource_group_name = "${azurerm_resource_group.test.name}" + is_xenon = true + kind = "xenon" - sku { - tier = "PremiumContainer" - size = "PC2" - } + sku { + tier = "PremiumContainer" + size = "PC2" + } } data "azurerm_app_service_plan" "test" { - name = "${azurerm_app_service_plan.test.name}" - resource_group_name = "${azurerm_app_service_plan.test.resource_group_name}" + name = "${azurerm_app_service_plan.test.name}" + resource_group_name = "${azurerm_app_service_plan.test.resource_group_name}" } `, rInt, location, rInt) } diff --git a/azurerm/data_source_application_insights_test.go b/azurerm/data_source_application_insights_test.go index feac4cfebdd0..cd84ade5d72a 100644 --- a/azurerm/data_source_application_insights_test.go +++ b/azurerm/data_source_application_insights_test.go @@ -36,19 +36,19 @@ func TestAccDataSourceApplicationInsights_basic(t *testing.T) { func testAccResourceApplicationInsights_complete(rInt int, location string) string { return fmt.Sprintf(` resource "azurerm_resource_group" "test" { - name = "acctestRG-%[1]d" - location = "%[2]s" + name = "acctestRG-%[1]d" + location = "%[2]s" } resource "azurerm_application_insights" "test" { - name = "acctestappinsights-%[1]d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - application_type = "other" - - tags = { - "foo" = "bar" - } + name = "acctestappinsights-%[1]d" + location = "${azurerm_resource_group.test.location}" + resource_group_name = "${azurerm_resource_group.test.name}" + application_type = "other" + + tags = { + "foo" = "bar" + } } data "azurerm_application_insights" "test" { diff --git a/azurerm/data_source_availability_set_test.go b/azurerm/data_source_availability_set_test.go index 12d4893443ad..d0b961772357 100644 --- a/azurerm/data_source_availability_set_test.go +++ b/azurerm/data_source_availability_set_test.go @@ -34,8 +34,8 @@ func TestAccDataSourceAvailabilitySet_basic(t *testing.T) { func testAccDataSourceAvailabilitySet_basic(rInt int, location string) string { return fmt.Sprintf(` resource "azurerm_resource_group" "test" { - name = "acctestRG-%[1]d" - location = "%[2]s" + name = "acctestRG-%[1]d" + location = "%[2]s" } resource "azurerm_availability_set" "test" { @@ -43,9 +43,9 @@ resource "azurerm_availability_set" "test" { location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" - tags = { - "foo" = "bar" - } + tags = { + "foo" = "bar" + } } data "azurerm_availability_set" "test" { diff --git a/azurerm/data_source_batch_certificate_test.go b/azurerm/data_source_batch_certificate_test.go index 967413496468..1230299c6080 100644 --- a/azurerm/data_source_batch_certificate_test.go +++ b/azurerm/data_source_batch_certificate_test.go @@ -50,20 +50,19 @@ resource "azurerm_batch_account" "test" { } resource "azurerm_batch_certificate" "test" { - resource_group_name = "${azurerm_resource_group.test.name}" - account_name = "${azurerm_batch_account.test.name}" - certificate = "${filebase64("testdata/batch_certificate.pfx")}" - format = "Pfx" - password = "terraform" - thumbprint = "42C107874FD0E4A9583292A2F1098E8FE4B2EDDA" - thumbprint_algorithm = "SHA1" + resource_group_name = "${azurerm_resource_group.test.name}" + account_name = "${azurerm_batch_account.test.name}" + certificate = "${filebase64("testdata/batch_certificate.pfx")}" + format = "Pfx" + password = "terraform" + thumbprint = "42C107874FD0E4A9583292A2F1098E8FE4B2EDDA" + thumbprint_algorithm = "SHA1" } data "azurerm_batch_certificate" "test" { - name = "${azurerm_batch_certificate.test.name}" - account_name = "${azurerm_batch_account.test.name}" - resource_group_name = "${azurerm_resource_group.test.name}" + name = "${azurerm_batch_certificate.test.name}" + account_name = "${azurerm_batch_account.test.name}" + resource_group_name = "${azurerm_resource_group.test.name}" } - `, rInt, location, rString) } diff --git a/azurerm/data_source_batch_pool_test.go b/azurerm/data_source_batch_pool_test.go index d21ee83d67af..1d91f1f7d330 100644 --- a/azurerm/data_source_batch_pool_test.go +++ b/azurerm/data_source_batch_pool_test.go @@ -88,23 +88,23 @@ resource "azurerm_batch_account" "test" { } resource "azurerm_batch_certificate" "test" { - resource_group_name = "${azurerm_resource_group.test.name}" - account_name = "${azurerm_batch_account.test.name}" - certificate = "${filebase64("testdata/batch_certificate.pfx")}" - format = "Pfx" - password = "terraform" - thumbprint = "42C107874FD0E4A9583292A2F1098E8FE4B2EDDA" - thumbprint_algorithm = "SHA1" + resource_group_name = "${azurerm_resource_group.test.name}" + account_name = "${azurerm_batch_account.test.name}" + certificate = "${filebase64("testdata/batch_certificate.pfx")}" + format = "Pfx" + password = "terraform" + thumbprint = "42C107874FD0E4A9583292A2F1098E8FE4B2EDDA" + thumbprint_algorithm = "SHA1" } resource "azurerm_batch_pool" "test" { - name = "testaccpool%s" - resource_group_name = "${azurerm_resource_group.test.name}" - account_name = "${azurerm_batch_account.test.name}" - display_name = "Test Acc Pool" - vm_size = "Standard_A1" - node_agent_sku_id = "batch.node.ubuntu 16.04" - max_tasks_per_node = 2 + name = "testaccpool%s" + resource_group_name = "${azurerm_resource_group.test.name}" + account_name = "${azurerm_batch_account.test.name}" + display_name = "Test Acc Pool" + vm_size = "Standard_A1" + node_agent_sku_id = "batch.node.ubuntu 16.04" + max_tasks_per_node = 2 fixed_scale { target_dedicated_nodes = 2 @@ -121,13 +121,13 @@ resource "azurerm_batch_pool" "test" { certificate { id = "${azurerm_batch_certificate.test.id}" store_location = "CurrentUser" - visibility = [ "StartTask", "RemoteUser" ] + visibility = ["StartTask", "RemoteUser"] } container_configuration { type = "DockerCompatible" } - + start_task { command_line = "echo 'Hello World from $env'" max_task_retry_count = 1 diff --git a/azurerm/data_source_express_route_circuit_test.go b/azurerm/data_source_express_route_circuit_test.go index d2932c4816b3..f533beaf57b6 100644 --- a/azurerm/data_source_express_route_circuit_test.go +++ b/azurerm/data_source_express_route_circuit_test.go @@ -43,5 +43,5 @@ func testAccDataSourceAzureRMExpressRoute_basic(rInt int, location string) strin resource_group_name = "${azurerm_resource_group.test.name}" name = "${azurerm_express_route_circuit.test.name}" } - `, config) +`, config) } diff --git a/azurerm/data_source_firewall_test.go b/azurerm/data_source_firewall_test.go index 1cebdb22cb14..3519fe4ec166 100644 --- a/azurerm/data_source_firewall_test.go +++ b/azurerm/data_source_firewall_test.go @@ -71,7 +71,7 @@ resource "azurerm_firewall" "test" { } data "azurerm_firewall" "test" { - name = "${azurerm_firewall.test.name}" + name = "${azurerm_firewall.test.name}" resource_group_name = "${azurerm_resource_group.test.name}" } `, rInt, location, rInt, rInt, rInt) diff --git a/azurerm/data_source_policy_definition_test.go b/azurerm/data_source_policy_definition_test.go index 0cd94b0e486d..d7163daebd40 100644 --- a/azurerm/data_source_policy_definition_test.go +++ b/azurerm/data_source_policy_definition_test.go @@ -79,7 +79,6 @@ data "azurerm_policy_definition" "test" { func testAccDataSourceBuiltInPolicyDefinitionAtManagementGroup(name string) string { return fmt.Sprintf(` - data "azurerm_client_config" "current" {} data "azurerm_policy_definition" "test" { @@ -97,7 +96,7 @@ resource "azurerm_policy_definition" "test_policy" { mode = "All" display_name = "acctestpol-%d" - policy_rule = < diff --git a/azurerm/resource_arm_api_management_api_operation_test.go b/azurerm/resource_arm_api_management_api_operation_test.go index 2430bfe973db..9bc3d61c36f2 100644 --- a/azurerm/resource_arm_api_management_api_operation_test.go +++ b/azurerm/resource_arm_api_management_api_operation_test.go @@ -311,17 +311,16 @@ resource "azurerm_api_management_api_operation" "test" { method = "DELETE" url_template = "/user1" description = "This can only be done by the logged in user." - + request { description = "Created user object" representation { content_type = "application/json" - type_name = "User" + type_name = "User" } } } - `, template) } @@ -339,17 +338,16 @@ resource "azurerm_api_management_api_operation" "test" { method = "DELETE" url_template = "/user1" description = "This can only be done by the logged in user." - + request { description = "Created user object" representation { content_type = "application/json" - type_name = "User" + type_name = "User" } } } - `, template) } @@ -367,10 +365,10 @@ resource "azurerm_api_management_api_operation" "test" { method = "DELETE" url_template = "/user1" description = "This can only be done by the logged in user." - + request { description = "Created user object" - + header { name = "X-Test-Operation" required = true @@ -379,14 +377,14 @@ resource "azurerm_api_management_api_operation" "test" { representation { content_type = "application/json" - type_name = "User" + type_name = "User" } } response { status_code = 200 description = "successful operation" - + header { name = "X-Test-Operation" required = true @@ -395,7 +393,8 @@ resource "azurerm_api_management_api_operation" "test" { representation { content_type = "application/xml" - sample = < @@ -408,7 +407,6 @@ SAMPLE } } } - `, template) } @@ -426,13 +424,13 @@ resource "azurerm_api_management_api_operation" "test" { method = "DELETE" url_template = "/user1" description = "This can only be done by the logged in user." - + request { description = "Created user object" representation { content_type = "application/json" - type_name = "User" + type_name = "User" } } @@ -442,7 +440,8 @@ resource "azurerm_api_management_api_operation" "test" { representation { content_type = "application/xml" - sample = < @@ -455,7 +454,6 @@ SAMPLE } } } - `, template) } @@ -473,13 +471,13 @@ resource "azurerm_api_management_api_operation" "test" { method = "DELETE" url_template = "/user1" description = "This can only be done by the logged in user." - + request { description = "Created user object" representation { content_type = "application/json" - type_name = "User" + type_name = "User" } } @@ -489,7 +487,8 @@ resource "azurerm_api_management_api_operation" "test" { representation { content_type = "application/xml" - sample = < @@ -503,7 +502,8 @@ SAMPLE representation { content_type = "application/json" - sample = < diff --git a/azurerm/resource_arm_api_management_authorization_server_test.go b/azurerm/resource_arm_api_management_authorization_server_test.go index be70e24d260a..fdd230104957 100644 --- a/azurerm/resource_arm_api_management_authorization_server_test.go +++ b/azurerm/resource_arm_api_management_authorization_server_test.go @@ -152,10 +152,12 @@ resource "azurerm_api_management_authorization_server" "test" { authorization_endpoint = "https://azacctest.hashicorptest.com/client/authorize" client_id = "42424242-4242-4242-4242-424242424242" client_registration_endpoint = "https://azacctest.hashicorptest.com/client/register" + grant_types = [ "implicit", ] - authorization_methods = [ + + authorization_methods = [ "GET", ] } @@ -176,7 +178,8 @@ resource "azurerm_api_management_authorization_server" "import" { client_id = "${azurerm_api_management_authorization_server.test.client_id}" client_registration_endpoint = "${azurerm_api_management_authorization_server.test.client_registration_endpoint}" grant_types = "${azurerm_api_management_authorization_server.test.grant_types}" - authorization_methods = [ + + authorization_methods = [ "GET", ] } @@ -196,22 +199,26 @@ resource "azurerm_api_management_authorization_server" "test" { authorization_endpoint = "https://azacctest.hashicorptest.com/client/authorize" client_id = "42424242-4242-4242-4242-424242424242" client_registration_endpoint = "https://azacctest.hashicorptest.com/client/register" + grant_types = [ - "authorizationCode", + "authorizationCode", ] - authorization_methods = [ + + authorization_methods = [ "GET", "POST", ] + bearer_token_sending_methods = [ - "authorizationHeader" + "authorizationHeader", ] - client_secret = "n1n3-m0re-s3a5on5-m0r1y" - default_scope = "read write" - token_endpoint = "https://azacctest.hashicorptest.com/client/token" - resource_owner_username = "rick" - resource_owner_password = "C-193P" - support_state = true + + client_secret = "n1n3-m0re-s3a5on5-m0r1y" + default_scope = "read write" + token_endpoint = "https://azacctest.hashicorptest.com/client/token" + resource_owner_username = "rick" + resource_owner_password = "C-193P" + support_state = true } `, template, rInt) } diff --git a/azurerm/resource_arm_api_management_group_user_test.go b/azurerm/resource_arm_api_management_group_user_test.go index cb54a927a845..d441b42a4166 100644 --- a/azurerm/resource_arm_api_management_group_user_test.go +++ b/azurerm/resource_arm_api_management_group_user_test.go @@ -143,19 +143,19 @@ resource "azurerm_api_management_group" "test" { } resource "azurerm_api_management_user" "test" { - user_id = "acctestuser%d" - api_management_name = "${azurerm_api_management.test.name}" - resource_group_name = "${azurerm_resource_group.test.name}" - first_name = "Acceptance" - last_name = "Test" - email = "azure-acctest%d@example.com" + user_id = "acctestuser%d" + api_management_name = "${azurerm_api_management.test.name}" + resource_group_name = "${azurerm_resource_group.test.name}" + first_name = "Acceptance" + last_name = "Test" + email = "azure-acctest%d@example.com" } resource "azurerm_api_management_group_user" "test" { - user_id = "${azurerm_api_management_user.test.user_id}" - group_name = "${azurerm_api_management_group.test.name}" - api_management_name = "${azurerm_api_management.test.name}" - resource_group_name = "${azurerm_resource_group.test.name}" + user_id = "${azurerm_api_management_user.test.user_id}" + group_name = "${azurerm_api_management_group.test.name}" + api_management_name = "${azurerm_api_management.test.name}" + resource_group_name = "${azurerm_resource_group.test.name}" } `, rInt, location, rInt, rInt, rInt, rInt) } @@ -166,10 +166,10 @@ func testAccAzureRMAPIManagementGroupUser_requiresImport(rInt int, location stri %s resource "azurerm_api_management_group_user" "import" { - user_id = "${azurerm_api_management_group_user.test.user_id}" - group_name = "${azurerm_api_management_group_user.test.group_name}" - api_management_name = "${azurerm_api_management_group_user.test.api_management_name}" - resource_group_name = "${azurerm_api_management_group_user.test.resource_group_name}" + user_id = "${azurerm_api_management_group_user.test.user_id}" + group_name = "${azurerm_api_management_group_user.test.group_name}" + api_management_name = "${azurerm_api_management_group_user.test.api_management_name}" + resource_group_name = "${azurerm_api_management_group_user.test.resource_group_name}" } `, template) } diff --git a/azurerm/resource_arm_api_management_logger_test.go b/azurerm/resource_arm_api_management_logger_test.go index 5c6f33770dcf..7e10e655f773 100644 --- a/azurerm/resource_arm_api_management_logger_test.go +++ b/azurerm/resource_arm_api_management_logger_test.go @@ -305,7 +305,7 @@ resource "azurerm_api_management_logger" "test" { resource_group_name = "${azurerm_resource_group.test.name}" eventhub { - name = "${azurerm_eventhub.test.name}" + name = "${azurerm_eventhub.test.name}" connection_string = "${azurerm_eventhub_namespace.test.default_primary_connection_string}" } } @@ -323,7 +323,7 @@ resource "azurerm_api_management_logger" "import" { resource_group_name = "${azurerm_api_management_logger.test.resource_group_name}" eventhub { - name = "${azurerm_eventhub.test.name}" + name = "${azurerm_eventhub.test.name}" connection_string = "${azurerm_eventhub_namespace.test.default_primary_connection_string}" } } diff --git a/azurerm/resource_arm_api_management_product_api_test.go b/azurerm/resource_arm_api_management_product_api_test.go index ed0970f33a6e..f23a51e8eb58 100644 --- a/azurerm/resource_arm_api_management_product_api_test.go +++ b/azurerm/resource_arm_api_management_product_api_test.go @@ -145,7 +145,6 @@ resource "azurerm_api_management_product" "test" { published = true } - resource "azurerm_api_management_api" "test" { name = "acctestapi-%d" resource_group_name = "${azurerm_resource_group.test.name}" @@ -157,10 +156,10 @@ resource "azurerm_api_management_api" "test" { } resource "azurerm_api_management_product_api" "test" { - product_id = "${azurerm_api_management_product.test.product_id}" - api_name = "${azurerm_api_management_api.test.name}" - api_management_name = "${azurerm_api_management.test.name}" - resource_group_name = "${azurerm_resource_group.test.name}" + product_id = "${azurerm_api_management_product.test.product_id}" + api_name = "${azurerm_api_management_api.test.name}" + api_management_name = "${azurerm_api_management.test.name}" + resource_group_name = "${azurerm_resource_group.test.name}" } `, rInt, location, rInt, rInt) } diff --git a/azurerm/resource_arm_api_management_product_group_test.go b/azurerm/resource_arm_api_management_product_group_test.go index 2c721d54bc91..f9d82f4307b1 100644 --- a/azurerm/resource_arm_api_management_product_group_test.go +++ b/azurerm/resource_arm_api_management_product_group_test.go @@ -153,10 +153,10 @@ resource "azurerm_api_management_group" "test" { } resource "azurerm_api_management_product_group" "test" { - product_id = "${azurerm_api_management_product.test.product_id}" - group_name = "${azurerm_api_management_group.test.name}" - api_management_name = "${azurerm_api_management.test.name}" - resource_group_name = "${azurerm_resource_group.test.name}" + product_id = "${azurerm_api_management_product.test.product_id}" + group_name = "${azurerm_api_management_group.test.name}" + api_management_name = "${azurerm_api_management.test.name}" + resource_group_name = "${azurerm_resource_group.test.name}" } `, rInt, location, rInt, rInt) } @@ -167,10 +167,10 @@ func testAccAzureRMAPIManagementProductGroup_requiresImport(rInt int, location s %s resource "azurerm_api_management_product_group" "import" { - product_id = "${azurerm_api_management_product_group.test.product_id}" - group_name = "${azurerm_api_management_product_group.test.group_name}" - api_management_name = "${azurerm_api_management_product_group.test.api_management_name}" - resource_group_name = "${azurerm_api_management_product_group.test.resource_group_name}" + product_id = "${azurerm_api_management_product_group.test.product_id}" + group_name = "${azurerm_api_management_product_group.test.group_name}" + api_management_name = "${azurerm_api_management_product_group.test.api_management_name}" + resource_group_name = "${azurerm_api_management_product_group.test.resource_group_name}" } `, template) } diff --git a/azurerm/resource_arm_api_management_product_policy_test.go b/azurerm/resource_arm_api_management_product_policy_test.go index 325082f29241..cbfa6e0aa322 100644 --- a/azurerm/resource_arm_api_management_product_policy_test.go +++ b/azurerm/resource_arm_api_management_product_policy_test.go @@ -181,10 +181,10 @@ resource "azurerm_api_management_product" "test" { } resource "azurerm_api_management_product_policy" "test" { - product_id = "${azurerm_api_management_product.test.product_id}" - api_management_name = "${azurerm_api_management.test.name}" - resource_group_name = "${azurerm_resource_group.test.name}" - xml_link = "https://gist.githubusercontent.com/tombuildsstuff/4f58581599d2c9f64b236f505a361a67/raw/0d29dcb0167af1e5afe4bd52a6d7f69ba1e05e1f/example.xml" + product_id = "${azurerm_api_management_product.test.product_id}" + api_management_name = "${azurerm_api_management.test.name}" + resource_group_name = "${azurerm_resource_group.test.name}" + xml_link = "https://gist.githubusercontent.com/tombuildsstuff/4f58581599d2c9f64b236f505a361a67/raw/0d29dcb0167af1e5afe4bd52a6d7f69ba1e05e1f/example.xml" } `, rInt, location, rInt) } @@ -195,10 +195,10 @@ func testAccAzureRMApiManagementProductPolicy_requiresImport(rInt int, location %s resource "azurerm_api_management_product_policy" "import" { - product_id = "${azurerm_api_management_product_policy.test.product_id}" - api_management_name = "${azurerm_api_management_product_policy.test.api_management_name}" - resource_group_name = "${azurerm_api_management_product_policy.test.resource_group_name}" - xml_link = "${azurerm_api_management_product_policy.test.xml_link}" + product_id = "${azurerm_api_management_product_policy.test.product_id}" + api_management_name = "${azurerm_api_management_product_policy.test.api_management_name}" + resource_group_name = "${azurerm_api_management_product_policy.test.resource_group_name}" + xml_link = "${azurerm_api_management_product_policy.test.xml_link}" } `, template) } @@ -233,9 +233,10 @@ resource "azurerm_api_management_product" "test" { } resource "azurerm_api_management_product_policy" "test" { - product_id = "${azurerm_api_management_product.test.product_id}" - api_management_name = "${azurerm_api_management.test.name}" - resource_group_name = "${azurerm_resource_group.test.name}" + product_id = "${azurerm_api_management_product.test.product_id}" + api_management_name = "${azurerm_api_management.test.name}" + resource_group_name = "${azurerm_resource_group.test.name}" + xml_content = < diff --git a/azurerm/resource_arm_api_management_property_test.go b/azurerm/resource_arm_api_management_property_test.go index 5356a0fa7bdd..80716d77d302 100644 --- a/azurerm/resource_arm_api_management_property_test.go +++ b/azurerm/resource_arm_api_management_property_test.go @@ -181,7 +181,7 @@ resource "azurerm_api_management" "test" { sku { name = "Developer" - capacity = 1 + capacity = 1 } } diff --git a/azurerm/resource_arm_api_management_subscription_test.go b/azurerm/resource_arm_api_management_subscription_test.go index 32343e637168..f6518a615a09 100644 --- a/azurerm/resource_arm_api_management_subscription_test.go +++ b/azurerm/resource_arm_api_management_subscription_test.go @@ -285,12 +285,12 @@ resource "azurerm_api_management_product" "test" { } resource "azurerm_api_management_user" "test" { - user_id = "acctestuser%d" - api_management_name = "${azurerm_api_management.test.name}" - resource_group_name = "${azurerm_resource_group.test.name}" - first_name = "Acceptance" - last_name = "Test" - email = "azure-acctest%d@example.com" + user_id = "acctestuser%d" + api_management_name = "${azurerm_api_management.test.name}" + resource_group_name = "${azurerm_resource_group.test.name}" + first_name = "Acceptance" + last_name = "Test" + email = "azure-acctest%d@example.com" } `, rInt, location, rInt, rInt, rInt) } diff --git a/azurerm/resource_arm_api_management_test.go b/azurerm/resource_arm_api_management_test.go index e0582009a608..4addeb92071c 100644 --- a/azurerm/resource_arm_api_management_test.go +++ b/azurerm/resource_arm_api_management_test.go @@ -429,7 +429,7 @@ resource "azurerm_api_management" "test" { } sign_up { - enabled = true + enabled = true terms_of_service { enabled = true diff --git a/azurerm/resource_arm_api_management_user_test.go b/azurerm/resource_arm_api_management_user_test.go index 2c3c6c2df20f..5c631c0bac2e 100644 --- a/azurerm/resource_arm_api_management_user_test.go +++ b/azurerm/resource_arm_api_management_user_test.go @@ -285,12 +285,12 @@ func testAccAzureRMApiManagementUser_basic(rInt int, location string) string { %s resource "azurerm_api_management_user" "test" { - user_id = "acctestuser%d" - api_management_name = "${azurerm_api_management.test.name}" - resource_group_name = "${azurerm_resource_group.test.name}" - first_name = "Acceptance" - last_name = "Test" - email = "azure-acctest%d@example.com" + user_id = "acctestuser%d" + api_management_name = "${azurerm_api_management.test.name}" + resource_group_name = "${azurerm_resource_group.test.name}" + first_name = "Acceptance" + last_name = "Test" + email = "azure-acctest%d@example.com" } `, template, rInt, rInt) } @@ -301,13 +301,13 @@ func testAccAzureRMApiManagementUser_requiresImport(rInt int, location string) s %s resource "azurerm_api_management_user" "import" { - user_id = "${azurerm_api_management_user.test.user_id}" - api_management_name = "${azurerm_api_management_user.test.api_management_name}" - resource_group_name = "${azurerm_api_management_user.test.resource_group_name}" - first_name = "${azurerm_api_management_user.test.first_name}" - last_name = "${azurerm_api_management_user.test.last_name}" - email = "${azurerm_api_management_user.test.email}" - state = "${azurerm_api_management_user.test.state}" + user_id = "${azurerm_api_management_user.test.user_id}" + api_management_name = "${azurerm_api_management_user.test.api_management_name}" + resource_group_name = "${azurerm_api_management_user.test.resource_group_name}" + first_name = "${azurerm_api_management_user.test.first_name}" + last_name = "${azurerm_api_management_user.test.last_name}" + email = "${azurerm_api_management_user.test.email}" + state = "${azurerm_api_management_user.test.state}" } `, template) } @@ -318,14 +318,14 @@ func testAccAzureRMApiManagementUser_password(rInt int, location string) string %s resource "azurerm_api_management_user" "test" { - user_id = "acctestuser%d" - api_management_name = "${azurerm_api_management.test.name}" - resource_group_name = "${azurerm_resource_group.test.name}" - first_name = "Acceptance" - last_name = "Test" - email = "azure-acctest%d@example.com" - state = "active" - password = "3991bb15-282d-4b9b-9de3-3d5fc89eb530" + user_id = "acctestuser%d" + api_management_name = "${azurerm_api_management.test.name}" + resource_group_name = "${azurerm_resource_group.test.name}" + first_name = "Acceptance" + last_name = "Test" + email = "azure-acctest%d@example.com" + state = "active" + password = "3991bb15-282d-4b9b-9de3-3d5fc89eb530" } `, template, rInt, rInt) } @@ -336,13 +336,13 @@ func testAccAzureRMApiManagementUser_updatedActive(rInt int, location string) st %s resource "azurerm_api_management_user" "test" { - user_id = "acctestuser%d" - api_management_name = "${azurerm_api_management.test.name}" - resource_group_name = "${azurerm_resource_group.test.name}" - first_name = "Acceptance" - last_name = "Test" - email = "azure-acctest%d@example.com" - state = "active" + user_id = "acctestuser%d" + api_management_name = "${azurerm_api_management.test.name}" + resource_group_name = "${azurerm_resource_group.test.name}" + first_name = "Acceptance" + last_name = "Test" + email = "azure-acctest%d@example.com" + state = "active" } `, template, rInt, rInt) } @@ -353,13 +353,13 @@ func testAccAzureRMApiManagementUser_updatedBlocked(rInt int, location string) s %s resource "azurerm_api_management_user" "test" { - user_id = "acctestuser%d" - api_management_name = "${azurerm_api_management.test.name}" - resource_group_name = "${azurerm_resource_group.test.name}" - first_name = "Acceptance Updated" - last_name = "Test Updated" - email = "azure-acctest%d@example.com" - state = "blocked" + user_id = "acctestuser%d" + api_management_name = "${azurerm_api_management.test.name}" + resource_group_name = "${azurerm_resource_group.test.name}" + first_name = "Acceptance Updated" + last_name = "Test Updated" + email = "azure-acctest%d@example.com" + state = "blocked" } `, template, rInt, rInt) } @@ -370,14 +370,14 @@ func testAccAzureRMApiManagementUser_invited(rInt int, location string) string { %s resource "azurerm_api_management_user" "test" { - user_id = "acctestuser%d" - api_management_name = "${azurerm_api_management.test.name}" - resource_group_name = "${azurerm_resource_group.test.name}" - first_name = "Acceptance" - last_name = "Test User" - email = "azure-acctest%d@example.com" - state = "blocked" - confirmation = "invite" + user_id = "acctestuser%d" + api_management_name = "${azurerm_api_management.test.name}" + resource_group_name = "${azurerm_resource_group.test.name}" + first_name = "Acceptance" + last_name = "Test User" + email = "azure-acctest%d@example.com" + state = "blocked" + confirmation = "invite" } `, template, rInt, rInt) } @@ -388,14 +388,14 @@ func testAccAzureRMApiManagementUser_signUp(rInt int, location string) string { %s resource "azurerm_api_management_user" "test" { - user_id = "acctestuser%d" - api_management_name = "${azurerm_api_management.test.name}" - resource_group_name = "${azurerm_resource_group.test.name}" - first_name = "Acceptance" - last_name = "Test User" - email = "azure-acctest%d@example.com" - state = "blocked" - confirmation = "signup" + user_id = "acctestuser%d" + api_management_name = "${azurerm_api_management.test.name}" + resource_group_name = "${azurerm_resource_group.test.name}" + first_name = "Acceptance" + last_name = "Test User" + email = "azure-acctest%d@example.com" + state = "blocked" + confirmation = "signup" } `, template, rInt, rInt) } @@ -406,15 +406,15 @@ func testAccAzureRMApiManagementUser_complete(rInt int, location string) string %s resource "azurerm_api_management_user" "test" { - user_id = "acctestuser%d" - api_management_name = "${azurerm_api_management.test.name}" - resource_group_name = "${azurerm_resource_group.test.name}" - first_name = "Acceptance" - last_name = "Test" - email = "azure-acctest%d@example.com" - state = "active" - confirmation = "signup" - note = "Used for testing in dimension C-137." + user_id = "acctestuser%d" + api_management_name = "${azurerm_api_management.test.name}" + resource_group_name = "${azurerm_resource_group.test.name}" + first_name = "Acceptance" + last_name = "Test" + email = "azure-acctest%d@example.com" + state = "active" + confirmation = "signup" + note = "Used for testing in dimension C-137." } `, template, rInt, rInt) } diff --git a/azurerm/resource_arm_app_service_plan_test.go b/azurerm/resource_arm_app_service_plan_test.go index 5eae80394b56..91c60e4591b2 100644 --- a/azurerm/resource_arm_app_service_plan_test.go +++ b/azurerm/resource_arm_app_service_plan_test.go @@ -630,21 +630,21 @@ resource "azurerm_app_service_plan" "test" { func testAccAzureRMAppServicePlan_basicWindowsContainer(rInt int, location string) string { return fmt.Sprintf(` resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" + name = "acctestRG-%d" + location = "%s" } resource "azurerm_app_service_plan" "test" { - name = "acctestASP-%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - kind = "xenon" - is_xenon = true - - sku { - tier = "PremiumContainer" - size = "PC2" - } + name = "acctestASP-%d" + location = "${azurerm_resource_group.test.location}" + resource_group_name = "${azurerm_resource_group.test.name}" + kind = "xenon" + is_xenon = true + + sku { + tier = "PremiumContainer" + size = "PC2" + } } `, rInt, location, rInt) } diff --git a/azurerm/resource_arm_app_service_slot_test.go b/azurerm/resource_arm_app_service_slot_test.go index 92fd6f36cda7..bca4d40fc087 100644 --- a/azurerm/resource_arm_app_service_slot_test.go +++ b/azurerm/resource_arm_app_service_slot_test.go @@ -1426,8 +1426,9 @@ resource "azurerm_app_service_slot" "test" { allowed_origins = [ "http://www.contoso.com", "www.contoso.com", - "contoso.com" + "contoso.com", ] + support_credentials = true } } diff --git a/azurerm/resource_arm_app_service_test.go b/azurerm/resource_arm_app_service_test.go index 033fe5de6a65..b4c2b5a835cf 100644 --- a/azurerm/resource_arm_app_service_test.go +++ b/azurerm/resource_arm_app_service_test.go @@ -2538,30 +2538,30 @@ resource "azurerm_app_service" "test" { func testAccAzureRMAppService_zeroedIpRestriction(rInt int, location string) string { return fmt.Sprintf(` resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" + name = "acctestRG-%d" + location = "%s" } resource "azurerm_app_service_plan" "test" { - name = "acctestASP-%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" + name = "acctestASP-%d" + location = "${azurerm_resource_group.test.location}" + resource_group_name = "${azurerm_resource_group.test.name}" - sku { - tier = "Standard" - size = "S1" - } + sku { + tier = "Standard" + size = "S1" + } } resource "azurerm_app_service" "test" { - name = "acctestAS-%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - app_service_plan_id = "${azurerm_app_service_plan.test.id}" + name = "acctestAS-%d" + location = "${azurerm_resource_group.test.location}" + resource_group_name = "${azurerm_resource_group.test.name}" + app_service_plan_id = "${azurerm_app_service_plan.test.id}" - site_config { - ip_restriction = [] - } + site_config { + ip_restriction = [] + } } `, rInt, location, rInt, rInt) } @@ -3119,27 +3119,32 @@ resource "azurerm_resource_group" "test" { name = "acctestRG-%d" location = "%s" } + resource "azurerm_app_service_plan" "test" { name = "acctestASP-%d" location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" + sku { tier = "Standard" size = "S1" } } + resource "azurerm_app_service" "test" { name = "acctestAS-%d" location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" app_service_plan_id = "${azurerm_app_service_plan.test.id}" + site_config { cors { allowed_origins = [ "http://www.contoso.com", "www.contoso.com", - "contoso.com" + "contoso.com", ] + support_credentials = true } } @@ -3231,9 +3236,9 @@ resource "azurerm_app_service" "test" { auth_settings { enabled = true issuer = "https://sts.windows.net/%s" - + allowed_external_redirect_urls = [ - "https://terra.form" + "https://terra.form", ] active_directory { @@ -3280,8 +3285,8 @@ resource "azurerm_app_service" "test" { } auth_settings { - enabled = true - issuer = "https://sts.windows.net/%s" + enabled = true + issuer = "https://sts.windows.net/%s" runtime_version = "1.0" active_directory { @@ -3328,8 +3333,8 @@ resource "azurerm_app_service" "test" { } auth_settings { - enabled = true - issuer = "https://sts.windows.net/%s" + enabled = true + issuer = "https://sts.windows.net/%s" token_refresh_extension_hours = 75 active_directory { @@ -3376,8 +3381,8 @@ resource "azurerm_app_service" "test" { } auth_settings { - enabled = true - issuer = "https://sts.windows.net/%s" + enabled = true + issuer = "https://sts.windows.net/%s" token_store_enabled = true active_directory { @@ -3424,8 +3429,8 @@ resource "azurerm_app_service" "test" { } auth_settings { - enabled = true - issuer = "https://sts.windows.net/%s" + enabled = true + issuer = "https://sts.windows.net/%s" unauthenticated_client_action = "RedirectToLoginPage" active_directory { @@ -3474,6 +3479,7 @@ resource "azurerm_app_service" "test" { auth_settings { enabled = true issuer = "https://sts.windows.net/%s" + active_directory { client_id = "aadclientid" client_secret = "aadsecret" @@ -3519,6 +3525,7 @@ resource "azurerm_app_service" "test" { auth_settings { enabled = true + facebook { app_id = "facebookappid" app_secret = "facebookappsecret" @@ -3564,6 +3571,7 @@ resource "azurerm_app_service" "test" { auth_settings { enabled = true + google { client_id = "googleclientid" client_secret = "googleclientsecret" @@ -3596,6 +3604,7 @@ resource "azurerm_app_service_plan" "test" { size = "S1" } } + resource "azurerm_app_service" "test" { name = "acctestRG-%d" location = "${azurerm_resource_group.test.location}" @@ -3608,6 +3617,7 @@ resource "azurerm_app_service" "test" { auth_settings { enabled = true + microsoft { client_id = "microsoftclientid" client_secret = "microsoftclientsecret" @@ -3653,9 +3663,10 @@ resource "azurerm_app_service" "test" { auth_settings { enabled = true + twitter { - consumer_key = "twitterconsumerkey" - consumer_secret = "twitterconsumersecret" + consumer_key = "twitterconsumerkey" + consumer_secret = "twitterconsumersecret" } } } @@ -3705,7 +3716,7 @@ resource "azurerm_app_service" "test" { "activedirectorytokenaudiences", ] } - + microsoft { client_id = "microsoftclientid" client_secret = "microsoftclientsecret" @@ -3722,38 +3733,38 @@ resource "azurerm_app_service" "test" { func testAccAzureRMAppService_basicWindowsContainer(rInt int, location string) string { return fmt.Sprintf(` resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" + name = "acctestRG-%d" + location = "%s" } resource "azurerm_app_service_plan" "test" { - name = "acctestASP-%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - is_xenon = true - kind = "xenon" - - sku { - tier = "PremiumContainer" - size = "PC2" - } + name = "acctestASP-%d" + location = "${azurerm_resource_group.test.location}" + resource_group_name = "${azurerm_resource_group.test.name}" + is_xenon = true + kind = "xenon" + + sku { + tier = "PremiumContainer" + size = "PC2" + } } resource "azurerm_app_service" "test" { - name = "acctestAS-%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - app_service_plan_id = "${azurerm_app_service_plan.test.id}" - - site_config { - windows_fx_version = "DOCKER|mcr.microsoft.com/azure-app-service/samples/aspnethelloworld:latest" - } - - app_settings = { - "DOCKER_REGISTRY_SERVER_URL" = "https://mcr.microsoft.com", - "DOCKER_REGISTRY_SERVER_USERNAME" = "", - "DOCKER_REGISTRY_SERVER_PASSWORD" = "", - } + name = "acctestAS-%d" + location = "${azurerm_resource_group.test.location}" + resource_group_name = "${azurerm_resource_group.test.name}" + app_service_plan_id = "${azurerm_app_service_plan.test.id}" + + site_config { + windows_fx_version = "DOCKER|mcr.microsoft.com/azure-app-service/samples/aspnethelloworld:latest" + } + + app_settings = { + "DOCKER_REGISTRY_SERVER_URL" = "https://mcr.microsoft.com" + "DOCKER_REGISTRY_SERVER_USERNAME" = "" + "DOCKER_REGISTRY_SERVER_PASSWORD" = "" + } } `, rInt, location, rInt, rInt) } diff --git a/azurerm/resource_arm_application_gateway_test.go b/azurerm/resource_arm_application_gateway_test.go index aeef2e5bb7d6..7394ae9c8c10 100644 --- a/azurerm/resource_arm_application_gateway_test.go +++ b/azurerm/resource_arm_application_gateway_test.go @@ -1268,8 +1268,8 @@ resource "azurerm_application_gateway" "test" { location = "${azurerm_resource_group.test.location}" sku { - name = "Standard_v2" - tier = "Standard_v2" + name = "Standard_v2" + tier = "Standard_v2" } autoscale_configuration { @@ -1369,7 +1369,7 @@ resource "azurerm_application_gateway" "test" { backend_http_settings { name = "${local.http_setting_name}" cookie_based_affinity = "Disabled" - path = "/path1/" + path = "/path1/" port = 80 protocol = "Http" request_timeout = 1 @@ -1783,17 +1783,17 @@ func testAccAzureRMApplicationGateway_routingRedirect_httpListener(rInt int, loc # since these variables are re-used - a locals block makes this more maintainable locals { - backend_address_pool_name = "${azurerm_virtual_network.test.name}-beap" - frontend_port_name = "${azurerm_virtual_network.test.name}-feport" - frontend_port_name2 = "${azurerm_virtual_network.test.name}-feport2" - frontend_ip_configuration_name = "${azurerm_virtual_network.test.name}-feip" - http_setting_name = "${azurerm_virtual_network.test.name}-be-htst" - listener_name = "${azurerm_virtual_network.test.name}-httplstn" - target_listener_name = "${azurerm_virtual_network.test.name}-trgthttplstn" - request_routing_rule_name = "${azurerm_virtual_network.test.name}-rqrt" - path_rule_name = "${azurerm_virtual_network.test.name}-pathrule1" - url_path_map_name = "${azurerm_virtual_network.test.name}-urlpath1" - redirect_configuration_name = "${azurerm_virtual_network.test.name}-Port80To8888Redirect" + backend_address_pool_name = "${azurerm_virtual_network.test.name}-beap" + frontend_port_name = "${azurerm_virtual_network.test.name}-feport" + frontend_port_name2 = "${azurerm_virtual_network.test.name}-feport2" + frontend_ip_configuration_name = "${azurerm_virtual_network.test.name}-feip" + http_setting_name = "${azurerm_virtual_network.test.name}-be-htst" + listener_name = "${azurerm_virtual_network.test.name}-httplstn" + target_listener_name = "${azurerm_virtual_network.test.name}-trgthttplstn" + request_routing_rule_name = "${azurerm_virtual_network.test.name}-rqrt" + path_rule_name = "${azurerm_virtual_network.test.name}-pathrule1" + url_path_map_name = "${azurerm_virtual_network.test.name}-urlpath1" + redirect_configuration_name = "${azurerm_virtual_network.test.name}-Port80To8888Redirect" } resource "azurerm_application_gateway" "test" { @@ -1878,17 +1878,17 @@ func testAccAzureRMApplicationGateway_routingRedirect_httpListenerError(rInt int # since these variables are re-used - a locals block makes this more maintainable locals { - backend_address_pool_name = "${azurerm_virtual_network.test.name}-beap" - frontend_port_name = "${azurerm_virtual_network.test.name}-feport" - frontend_port_name2 = "${azurerm_virtual_network.test.name}-feport2" - frontend_ip_configuration_name = "${azurerm_virtual_network.test.name}-feip" - http_setting_name = "${azurerm_virtual_network.test.name}-be-htst" - listener_name = "${azurerm_virtual_network.test.name}-httplstn" - target_listener_name = "${azurerm_virtual_network.test.name}-trgthttplstn" - request_routing_rule_name = "${azurerm_virtual_network.test.name}-rqrt" - path_rule_name = "${azurerm_virtual_network.test.name}-pathrule1" - url_path_map_name = "${azurerm_virtual_network.test.name}-urlpath1" - redirect_configuration_name = "${azurerm_virtual_network.test.name}-Port80To8888Redirect" + backend_address_pool_name = "${azurerm_virtual_network.test.name}-beap" + frontend_port_name = "${azurerm_virtual_network.test.name}-feport" + frontend_port_name2 = "${azurerm_virtual_network.test.name}-feport2" + frontend_ip_configuration_name = "${azurerm_virtual_network.test.name}-feip" + http_setting_name = "${azurerm_virtual_network.test.name}-be-htst" + listener_name = "${azurerm_virtual_network.test.name}-httplstn" + target_listener_name = "${azurerm_virtual_network.test.name}-trgthttplstn" + request_routing_rule_name = "${azurerm_virtual_network.test.name}-rqrt" + path_rule_name = "${azurerm_virtual_network.test.name}-pathrule1" + url_path_map_name = "${azurerm_virtual_network.test.name}-urlpath1" + redirect_configuration_name = "${azurerm_virtual_network.test.name}-Port80To8888Redirect" } resource "azurerm_application_gateway" "test" { @@ -2062,6 +2062,7 @@ resource "azurerm_application_gateway" "test" { path_rule { name = "${local.path_rule_name}" redirect_configuration_name = "${local.redirect_configuration_name}" + paths = [ "/test", ] @@ -2075,7 +2076,6 @@ resource "azurerm_application_gateway" "test" { "/test2", ] } - } redirect_configuration { @@ -2617,10 +2617,10 @@ resource "azurerm_application_gateway" "test" { ] waf_configuration { - enabled = true - firewall_mode = "Detection" - rule_set_type = "OWASP" - rule_set_version = "3.0" + enabled = true + firewall_mode = "Detection" + rule_set_type = "OWASP" + rule_set_version = "3.0" file_upload_limit_mb = 100 request_body_check = true max_request_body_size_kb = 100 @@ -2724,7 +2724,7 @@ resource "azurerm_application_gateway" "test" { protocol = "Http" request_timeout = 1 - connection_draining { + connection_draining { enabled = true drain_timeout_sec = 1984 } @@ -2762,7 +2762,6 @@ locals { request_routing_rule_name = "${azurerm_virtual_network.test.name}-rqrt" } - resource "azurerm_public_ip" "test_standard" { name = "acctest-pubip-%d-standard" location = "${azurerm_resource_group.test.location}" @@ -2783,29 +2782,27 @@ resource "azurerm_application_gateway" "test" { } waf_configuration { - enabled = true - firewall_mode = "Detection" - rule_set_type = "OWASP" - rule_set_version = "3.0" - request_body_check = true - max_request_body_size_kb = 128 - file_upload_limit_mb = 100 + enabled = true + firewall_mode = "Detection" + rule_set_type = "OWASP" + rule_set_version = "3.0" + request_body_check = true + max_request_body_size_kb = 128 + file_upload_limit_mb = 100 disabled_rule_group { rule_group_name = "REQUEST-921-PROTOCOL-ATTACK" rules = [921110, 921151, 921180] } - + disabled_rule_group { rule_group_name = "REQUEST-930-APPLICATION-ATTACK-LFI" rules = [930120, 930130] } - + disabled_rule_group { rule_group_name = "REQUEST-942-APPLICATION-ATTACK-SQLI" } - - } gateway_ip_configuration { @@ -2868,7 +2865,6 @@ locals { request_routing_rule_name = "${azurerm_virtual_network.test.name}-rqrt" } - resource "azurerm_public_ip" "test_standard" { name = "acctest-pubip-%d-standard" location = "${azurerm_resource_group.test.location}" @@ -2889,24 +2885,22 @@ resource "azurerm_application_gateway" "test" { } waf_configuration { - enabled = true - firewall_mode = "Detection" - rule_set_type = "OWASP" - rule_set_version = "3.0" - request_body_check = true - max_request_body_size_kb = 128 - file_upload_limit_mb = 100 + enabled = true + firewall_mode = "Detection" + rule_set_type = "OWASP" + rule_set_version = "3.0" + request_body_check = true + max_request_body_size_kb = 128 + file_upload_limit_mb = 100 disabled_rule_group { rule_group_name = "REQUEST-921-PROTOCOL-ATTACK" rules = [921110, 921151, 921180] } - + disabled_rule_group { rule_group_name = "REQUEST-942-APPLICATION-ATTACK-SQLI" } - - } gateway_ip_configuration { @@ -2969,7 +2963,6 @@ locals { request_routing_rule_name = "${azurerm_virtual_network.test.name}-rqrt" } - resource "azurerm_public_ip" "test_standard" { name = "acctest-pubip-%d-standard" location = "${azurerm_resource_group.test.location}" @@ -2990,13 +2983,13 @@ resource "azurerm_application_gateway" "test" { } waf_configuration { - enabled = true - firewall_mode = "Detection" - rule_set_type = "OWASP" - rule_set_version = "3.0" - request_body_check = true - max_request_body_size_kb = 128 - file_upload_limit_mb = 100 + enabled = true + firewall_mode = "Detection" + rule_set_type = "OWASP" + rule_set_version = "3.0" + request_body_check = true + max_request_body_size_kb = 128 + file_upload_limit_mb = 100 exclusion { match_variable = "RequestArgNames" @@ -3023,7 +3016,7 @@ resource "azurerm_application_gateway" "test" { } exclusion { - match_variable = "RequestHeaderNames" + match_variable = "RequestHeaderNames" } } @@ -3106,20 +3099,19 @@ resource "azurerm_application_gateway" "test" { } waf_configuration { - enabled = true - firewall_mode = "Detection" - rule_set_type = "OWASP" - rule_set_version = "3.0" - request_body_check = true - max_request_body_size_kb = 128 - file_upload_limit_mb = 100 + enabled = true + firewall_mode = "Detection" + rule_set_type = "OWASP" + rule_set_version = "3.0" + request_body_check = true + max_request_body_size_kb = 128 + file_upload_limit_mb = 100 exclusion { match_variable = "RequestArgNames" selector_match_operator = "Equals" selector = "displayNameHtml" } - } gateway_ip_configuration { @@ -3180,6 +3172,7 @@ locals { listener_name = "${azurerm_virtual_network.test.name}-httplstn" request_routing_rule_name = "${azurerm_virtual_network.test.name}-rqrt" } + resource "azurerm_public_ip" "test_standard" { name = "acctest-pubip-%d-standard" location = "${azurerm_resource_group.test.location}" @@ -3187,34 +3180,42 @@ resource "azurerm_public_ip" "test_standard" { sku = "Standard" allocation_method = "Static" } + resource "azurerm_application_gateway" "test" { name = "acctestag-%d" resource_group_name = "${azurerm_resource_group.test.name}" location = "${azurerm_resource_group.test.location}" + sku { name = "Standard_v2" tier = "Standard_v2" capacity = 1 } + ssl_policy { policy_name = "AppGwSslPolicy20170401S" policy_type = "Predefined" } + gateway_ip_configuration { name = "my-gateway-ip-configuration" subnet_id = "${azurerm_subnet.test.id}" } + frontend_port { name = "${local.frontend_port_name}" port = 80 } + frontend_ip_configuration { name = "${local.frontend_ip_configuration_name}" public_ip_address_id = "${azurerm_public_ip.test_standard.id}" } + backend_address_pool { name = "${local.backend_address_pool_name}" } + backend_http_settings { name = "${local.http_setting_name}" cookie_based_affinity = "Disabled" @@ -3222,12 +3223,14 @@ resource "azurerm_application_gateway" "test" { protocol = "Http" request_timeout = 1 } + http_listener { name = "${local.listener_name}" frontend_ip_configuration_name = "${local.frontend_ip_configuration_name}" frontend_port_name = "${local.frontend_port_name}" protocol = "Http" } + request_routing_rule { name = "${local.request_routing_rule_name}" rule_type = "Basic" @@ -3252,6 +3255,7 @@ locals { listener_name = "${azurerm_virtual_network.test.name}-httplstn" request_routing_rule_name = "${azurerm_virtual_network.test.name}-rqrt" } + resource "azurerm_public_ip" "test_standard" { name = "acctest-pubip-%d-standard" location = "${azurerm_resource_group.test.location}" @@ -3259,35 +3263,43 @@ resource "azurerm_public_ip" "test_standard" { sku = "Standard" allocation_method = "Static" } + resource "azurerm_application_gateway" "test" { name = "acctestag-%d" resource_group_name = "${azurerm_resource_group.test.name}" location = "${azurerm_resource_group.test.location}" + sku { name = "Standard_v2" tier = "Standard_v2" capacity = 1 } + ssl_policy { - policy_type = "Custom" + policy_type = "Custom" min_protocol_version = "TLSv1_1" - cipher_suites = ["TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", "TLS_RSA_WITH_AES_128_GCM_SHA256"] + cipher_suites = ["TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", "TLS_RSA_WITH_AES_128_GCM_SHA256"] } + gateway_ip_configuration { name = "my-gateway-ip-configuration" subnet_id = "${azurerm_subnet.test.id}" } + frontend_port { name = "${local.frontend_port_name}" port = 80 } + frontend_ip_configuration { name = "${local.frontend_ip_configuration_name}" public_ip_address_id = "${azurerm_public_ip.test_standard.id}" } + backend_address_pool { name = "${local.backend_address_pool_name}" } + backend_http_settings { name = "${local.http_setting_name}" cookie_based_affinity = "Disabled" @@ -3295,12 +3307,14 @@ resource "azurerm_application_gateway" "test" { protocol = "Http" request_timeout = 1 } + http_listener { name = "${local.listener_name}" frontend_ip_configuration_name = "${local.frontend_ip_configuration_name}" frontend_port_name = "${local.frontend_port_name}" protocol = "Http" } + request_routing_rule { name = "${local.request_routing_rule_name}" rule_type = "Basic" @@ -3325,6 +3339,7 @@ locals { listener_name = "${azurerm_virtual_network.test.name}-httplstn" request_routing_rule_name = "${azurerm_virtual_network.test.name}-rqrt" } + resource "azurerm_public_ip" "test_standard" { name = "acctest-pubip-%d-standard" location = "${azurerm_resource_group.test.location}" @@ -3332,33 +3347,41 @@ resource "azurerm_public_ip" "test_standard" { sku = "Standard" allocation_method = "Static" } + resource "azurerm_application_gateway" "test" { name = "acctestag-%d" resource_group_name = "${azurerm_resource_group.test.name}" location = "${azurerm_resource_group.test.location}" + sku { name = "Standard_v2" tier = "Standard_v2" capacity = 1 } + ssl_policy { disabled_protocols = ["TLSv1_0", "TLSv1_1"] } + gateway_ip_configuration { name = "my-gateway-ip-configuration" subnet_id = "${azurerm_subnet.test.id}" } + frontend_port { name = "${local.frontend_port_name}" port = 80 } + frontend_ip_configuration { name = "${local.frontend_ip_configuration_name}" public_ip_address_id = "${azurerm_public_ip.test_standard.id}" } + backend_address_pool { name = "${local.backend_address_pool_name}" } + backend_http_settings { name = "${local.http_setting_name}" cookie_based_affinity = "Disabled" @@ -3366,12 +3389,14 @@ resource "azurerm_application_gateway" "test" { protocol = "Http" request_timeout = 1 } + http_listener { name = "${local.listener_name}" frontend_ip_configuration_name = "${local.frontend_ip_configuration_name}" frontend_port_name = "${local.frontend_port_name}" protocol = "Http" } + request_routing_rule { name = "${local.request_routing_rule_name}" rule_type = "Basic" @@ -3396,6 +3421,7 @@ locals { listener_name = "${azurerm_virtual_network.test.name}-httplstn" request_routing_rule_name = "${azurerm_virtual_network.test.name}-rqrt" } + resource "azurerm_public_ip" "test_standard" { name = "acctest-pubip-%d-standard" location = "${azurerm_resource_group.test.location}" @@ -3403,31 +3429,39 @@ resource "azurerm_public_ip" "test_standard" { sku = "Standard" allocation_method = "Static" } + resource "azurerm_application_gateway" "test" { name = "acctestag-%d" resource_group_name = "${azurerm_resource_group.test.name}" location = "${azurerm_resource_group.test.location}" + sku { name = "Standard_v2" tier = "Standard_v2" capacity = 1 } + disabled_ssl_protocols = ["TLSv1_0", "TLSv1_1"] + gateway_ip_configuration { name = "my-gateway-ip-configuration" subnet_id = "${azurerm_subnet.test.id}" } + frontend_port { name = "${local.frontend_port_name}" port = 80 } + frontend_ip_configuration { name = "${local.frontend_ip_configuration_name}" public_ip_address_id = "${azurerm_public_ip.test_standard.id}" } + backend_address_pool { name = "${local.backend_address_pool_name}" } + backend_http_settings { name = "${local.http_setting_name}" cookie_based_affinity = "Disabled" @@ -3435,12 +3469,14 @@ resource "azurerm_application_gateway" "test" { protocol = "Http" request_timeout = 1 } + http_listener { name = "${local.listener_name}" frontend_ip_configuration_name = "${local.frontend_ip_configuration_name}" frontend_port_name = "${local.frontend_port_name}" protocol = "Http" } + request_routing_rule { name = "${local.request_routing_rule_name}" rule_type = "Basic" @@ -3542,10 +3578,12 @@ resource "azurerm_application_gateway" "test" { frontend_ip_configuration_name = "${local.frontend_ip_configuration_name}" frontend_port_name = "${local.frontend_port_name}" protocol = "Http" + custom_error_configuration { status_code = "HttpStatus403" custom_error_page_url = "http://azure.com/error403_listener.html" } + custom_error_configuration { status_code = "HttpStatus502" custom_error_page_url = "http://azure.com/error502_listener.html" @@ -3656,16 +3694,16 @@ resource "azurerm_application_gateway" "test" { name = "${local.rewrite_rule_set_name}" rewrite_rule { - name = "${local.rewrite_rule_name}" + name = "${local.rewrite_rule_name}" rule_sequence = 1 condition { variable = "var_http_status" - pattern = "502" + pattern = "502" } request_header_configuration { - header_name = "X-custom" + header_name = "X-custom" header_value = "customvalue" } } @@ -3771,16 +3809,16 @@ resource "azurerm_application_gateway" "test" { name = "${local.rewrite_rule_set_name}" rewrite_rule { - name = "${local.rewrite_rule_name}" + name = "${local.rewrite_rule_name}" rule_sequence = 1 condition { variable = "var_http_status" - pattern = "502" + pattern = "502" } request_header_configuration { - header_name = "X-custom" + header_name = "X-custom" header_value = "customvalue" } } @@ -3952,7 +3990,6 @@ resource "azurerm_subnet" "test1" { address_prefix = "10.0.1.0/24" } - # since these variables are re-used - a locals block makes this more maintainable locals { backend_address_pool_name = "${azurerm_virtual_network.test.name}-beap" diff --git a/azurerm/resource_arm_application_insights_webtests_test.go b/azurerm/resource_arm_application_insights_webtests_test.go index 30d3db0de7b6..e02ad7f9aa87 100644 --- a/azurerm/resource_arm_application_insights_webtests_test.go +++ b/azurerm/resource_arm_application_insights_webtests_test.go @@ -262,7 +262,7 @@ resource "azurerm_application_insights_web_test" "import" { resource_group_name = "${azurerm_application_insights_web_test.test.resource_group_name}" application_insights_id = "${azurerm_application_insights_web_test.test.application_insights_id}" kind = "${azurerm_application_insights_web_test.test.kind}" - configuration = "${azurerm_application_insights_web_test.test.configuration}" + configuration = "${azurerm_application_insights_web_test.test.configuration}" } `, template) } diff --git a/azurerm/resource_arm_batch_certificate_test.go b/azurerm/resource_arm_batch_certificate_test.go index 1f67b5e455d9..eeff78cc23f1 100644 --- a/azurerm/resource_arm_batch_certificate_test.go +++ b/azurerm/resource_arm_batch_certificate_test.go @@ -127,13 +127,13 @@ resource "azurerm_batch_account" "test" { } resource "azurerm_batch_certificate" "test" { - resource_group_name = "${azurerm_resource_group.test.name}" - account_name = "${azurerm_batch_account.test.name}" - certificate = "${filebase64("testdata/batch_certificate.pfx")}" - format = "Pfx" - password = "terraform" - thumbprint = "42C107874FD0E4A9583292A2F1098E8FE4B2EDDA" - thumbprint_algorithm = "SHA1" + resource_group_name = "${azurerm_resource_group.test.name}" + account_name = "${azurerm_batch_account.test.name}" + certificate = "${filebase64("testdata/batch_certificate.pfx")}" + format = "Pfx" + password = "terraform" + thumbprint = "42C107874FD0E4A9583292A2F1098E8FE4B2EDDA" + thumbprint_algorithm = "SHA1" } `, rInt, location, batchAccountSuffix) } @@ -153,12 +153,12 @@ resource "azurerm_batch_account" "test" { } resource "azurerm_batch_certificate" "test" { - resource_group_name = "${azurerm_resource_group.test.name}" - account_name = "${azurerm_batch_account.test.name}" - certificate = "${filebase64("testdata/batch_certificate.pfx")}" - format = "Pfx" - thumbprint = "42C107874FD0E4A9583292A2F1098E8FE4B2EDDA" - thumbprint_algorithm = "SHA1" + resource_group_name = "${azurerm_resource_group.test.name}" + account_name = "${azurerm_batch_account.test.name}" + certificate = "${filebase64("testdata/batch_certificate.pfx")}" + format = "Pfx" + thumbprint = "42C107874FD0E4A9583292A2F1098E8FE4B2EDDA" + thumbprint_algorithm = "SHA1" } `, rInt, location, batchAccountSuffix) } @@ -177,12 +177,12 @@ resource "azurerm_batch_account" "test" { } resource "azurerm_batch_certificate" "test" { - resource_group_name = "${azurerm_resource_group.test.name}" - account_name = "${azurerm_batch_account.test.name}" - certificate = "${filebase64("testdata/batch_certificate.cer")}" - format = "Cer" - thumbprint = "312D31A79FA0CEF49C00F769AFC2B73E9F4EDF34" - thumbprint_algorithm = "SHA1" + resource_group_name = "${azurerm_resource_group.test.name}" + account_name = "${azurerm_batch_account.test.name}" + certificate = "${filebase64("testdata/batch_certificate.cer")}" + format = "Cer" + thumbprint = "312D31A79FA0CEF49C00F769AFC2B73E9F4EDF34" + thumbprint_algorithm = "SHA1" } `, rInt, location, batchAccountSuffix) } @@ -201,13 +201,13 @@ resource "azurerm_batch_account" "test" { } resource "azurerm_batch_certificate" "test" { - resource_group_name = "${azurerm_resource_group.test.name}" - account_name = "${azurerm_batch_account.test.name}" - certificate = "${filebase64("testdata/batch_certificate.cer")}" - format = "Cer" - password = "should not have a password for Cer" - thumbprint = "312D31A79FA0CEF49C00F769AFC2B73E9F4EDF34" - thumbprint_algorithm = "SHA1" + resource_group_name = "${azurerm_resource_group.test.name}" + account_name = "${azurerm_batch_account.test.name}" + certificate = "${filebase64("testdata/batch_certificate.cer")}" + format = "Cer" + password = "should not have a password for Cer" + thumbprint = "312D31A79FA0CEF49C00F769AFC2B73E9F4EDF34" + thumbprint_algorithm = "SHA1" } `, rInt, location, batchAccountSuffix) } diff --git a/azurerm/resource_arm_batch_pool_test.go b/azurerm/resource_arm_batch_pool_test.go index 6b7ed79fee92..74c7fa620874 100644 --- a/azurerm/resource_arm_batch_pool_test.go +++ b/azurerm/resource_arm_batch_pool_test.go @@ -457,11 +457,11 @@ resource "azurerm_batch_pool" "test" { vm_size = "Standard_A1" max_tasks_per_node = 2 node_agent_sku_id = "batch.node.ubuntu 16.04" - + fixed_scale { target_dedicated_nodes = 2 } - + storage_image_reference { publisher = "Canonical" offer = "UbuntuServer" @@ -510,7 +510,8 @@ resource "azurerm_batch_pool" "test" { auto_scale { evaluation_interval = "PT15M" - formula = < \ No newline at end of file +--> diff --git a/website/docs/d/api_management_group.html.markdown b/website/docs/d/api_management_group.html.markdown index 5ca86744e677..da3c915eea54 100644 --- a/website/docs/d/api_management_group.html.markdown +++ b/website/docs/d/api_management_group.html.markdown @@ -42,4 +42,4 @@ output "group_type" { * `external_id` - The identifier of the external Group. -* `type` - The type of this API Management Group, such as `custom` or `external`. \ No newline at end of file +* `type` - The type of this API Management Group, such as `custom` or `external`. diff --git a/website/docs/d/api_management_user.html.markdown b/website/docs/d/api_management_user.html.markdown index 2cc134a96f86..5f4f689be320 100644 --- a/website/docs/d/api_management_user.html.markdown +++ b/website/docs/d/api_management_user.html.markdown @@ -44,4 +44,4 @@ output "notes" { * `note` - Any notes about this User. -* `state` - The current state of this User, for example `active`, `blocked` or `pending`. \ No newline at end of file +* `state` - The current state of this User, for example `active`, `blocked` or `pending`. diff --git a/website/docs/d/batch_account.html.markdown b/website/docs/d/batch_account.html.markdown index 917037879ab4..b5da67c8a2bb 100644 --- a/website/docs/d/batch_account.html.markdown +++ b/website/docs/d/batch_account.html.markdown @@ -52,4 +52,4 @@ The following attributes are exported: * `tags` - A map of tags assigned to the Batch account. -~> **NOTE:** Primary and secondary access keys are only available when `pool_allocation_mode` is set to `BatchService`. See [documentation](https://docs.microsoft.com/en-us/azure/batch/batch-api-basics) for more information. \ No newline at end of file +~> **NOTE:** Primary and secondary access keys are only available when `pool_allocation_mode` is set to `BatchService`. See [documentation](https://docs.microsoft.com/en-us/azure/batch/batch-api-basics) for more information. diff --git a/website/docs/d/batch_certificate.html.markdown b/website/docs/d/batch_certificate.html.markdown index ec8164689360..b45017b65e30 100644 --- a/website/docs/d/batch_certificate.html.markdown +++ b/website/docs/d/batch_certificate.html.markdown @@ -14,7 +14,6 @@ Use this data source to access information about an existing certificate in a Ba ## Example Usage ```hcl - data "azurerm_batch_certificate" "example" { name = "SHA1-42C107874FD0E4A9583292A2F1098E8FE4B2EDDA" account_name = "examplebatchaccount" @@ -46,4 +45,4 @@ The following attributes are exported: * `thumbprint` - The thumbprint of the certificate. -* `thumbprint_algorithm` - The algorithm of the certificate thumbprint. \ No newline at end of file +* `thumbprint_algorithm` - The algorithm of the certificate thumbprint. diff --git a/website/docs/d/express_route_circuit.html.markdown b/website/docs/d/express_route_circuit.html.markdown index bdaa225666e2..add01b0c6f4d 100644 --- a/website/docs/d/express_route_circuit.html.markdown +++ b/website/docs/d/express_route_circuit.html.markdown @@ -14,12 +14,12 @@ Use this data source to access information about an existing ExpressRoute circui ```hcl data "azurerm_express_route_circuit" test { - resource_group_name = "${azurerm_resource_group.test.name}" - name = "${azurerm_express_route_circuit.test.name}" + resource_group_name = "${azurerm_resource_group.test.name}" + name = "${azurerm_express_route_circuit.test.name}" } output "express_route_circuit_id" { - value = "${data.azurerm_express_route_circuit.test.id}" + value = "${data.azurerm_express_route_circuit.test.id}" } output "service_key" { @@ -70,4 +70,4 @@ output "service_key" { `sku` supports the following: * `tier` - The service tier. Possible values are `Standard` or `Premium`. -* `family` - The billing mode for bandwidth. Possible values are `MeteredData` or `UnlimitedData`. \ No newline at end of file +* `family` - The billing mode for bandwidth. Possible values are `MeteredData` or `UnlimitedData`. diff --git a/website/docs/d/firewall.html.markdown b/website/docs/d/firewall.html.markdown index 177921a512e7..960cbaca3af8 100644 --- a/website/docs/d/firewall.html.markdown +++ b/website/docs/d/firewall.html.markdown @@ -46,4 +46,4 @@ A `ip_configuration` block exports the following: * `private_ip_address` - The private IP address of the Azure Firewall. -* `public_ip_address_id`- The Resource ID of the public IP address of the Azure Firewall. \ No newline at end of file +* `public_ip_address_id`- The Resource ID of the public IP address of the Azure Firewall. diff --git a/website/docs/d/hdinsight_cluster.html.markdown b/website/docs/d/hdinsight_cluster.html.markdown index 21f4655be2d8..50a1c6a87376 100644 --- a/website/docs/d/hdinsight_cluster.html.markdown +++ b/website/docs/d/hdinsight_cluster.html.markdown @@ -60,4 +60,4 @@ A `gateway` block exports the following: * `username` - The username used for the Ambari Portal. -* `password` - The password used for the Ambari Portal. \ No newline at end of file +* `password` - The password used for the Ambari Portal. diff --git a/website/docs/d/key_vault_secret.html.markdown b/website/docs/d/key_vault_secret.html.markdown index dc5188aed22b..d02955d183f5 100644 --- a/website/docs/d/key_vault_secret.html.markdown +++ b/website/docs/d/key_vault_secret.html.markdown @@ -18,7 +18,7 @@ Use this data source to access information about an existing Key Vault Secret. ```hcl data "azurerm_key_vault_secret" "test" { - name = "secret-sauce" + name = "secret-sauce" key_vault_id = "${data.azurerm_key_vault.existing.id}" } diff --git a/website/docs/d/redis_cache.html.markdown b/website/docs/d/redis_cache.html.markdown index cb801d7c6840..cb24053a1a94 100644 --- a/website/docs/d/redis_cache.html.markdown +++ b/website/docs/d/redis_cache.html.markdown @@ -25,7 +25,6 @@ output "primary_access_key" { output "hostname" { value = "${data.azurerm_redis_cache.example.hostname}" } - ``` ## Argument Reference diff --git a/website/docs/d/role_definition.markdown b/website/docs/d/role_definition.markdown index e81f1aeff167..235dde67de56 100644 --- a/website/docs/d/role_definition.markdown +++ b/website/docs/d/role_definition.markdown @@ -25,7 +25,7 @@ resource "azurerm_role_definition" "custom" { data "azurerm_role_definition" "custom" { role_definition_id = "${azurerm_role_definition.custom.role_definition_id}" - scope = "${data.azurerm_subscription.primary.id}" # /subscriptions/00000000-0000-0000-0000-000000000000 + scope = "${data.azurerm_subscription.primary.id}" # /subscriptions/00000000-0000-0000-0000-000000000000 } data "azurerm_role_definition" "custom-byname" { @@ -40,6 +40,7 @@ data "azurerm_builtin_role_definition" "builtin" { output "custom_role_definition_id" { value = "${data.azurerm_role_definition.custom.id}" } + output "contributor_role_definition_id" { value = "${data.azurerm_role_definition.builtin.id}" } diff --git a/website/docs/d/sql_server.html.markdown b/website/docs/d/sql_server.html.markdown index 00f6297ca410..a3bfffc0f469 100644 --- a/website/docs/d/sql_server.html.markdown +++ b/website/docs/d/sql_server.html.markdown @@ -39,4 +39,4 @@ output "sql_server_id" { * `administrator_login` - The administrator username of the SQL Server. -* `tags` - A mapping of tags assigned to the resource. \ No newline at end of file +* `tags` - A mapping of tags assigned to the resource. diff --git a/website/docs/d/user_assigned_identity.html.markdown b/website/docs/d/user_assigned_identity.html.markdown index ddd6da471315..a5bdca7428e5 100644 --- a/website/docs/d/user_assigned_identity.html.markdown +++ b/website/docs/d/user_assigned_identity.html.markdown @@ -1,44 +1,44 @@ ---- -layout: "azurerm" -page_title: "Azure Resource Manager: azure_user_assigned_identity" -sidebar_current: "docs-azurerm-datasource-user-assigned-identity" -description: |- - Gets information about an existing User Assigned Identity. - ---- - -# Data Source: azurerm_user_assigned_identity - -Use this data source to access information about an existing User Assigned Identity. - -## Example Usage (reference an existing) - -```hcl -data "azurerm_user_assigned_identity" "example" { - name = "name_of_user_assigned_identity" - resource_group_name = "name_of_resource_group" -} - -output "uai_client_id" { - value = "${data.azurerm_user_assigned_identity.example.client_id}" -} - -output "uai_principal_id" { - value = "${data.azurerm_user_assigned_identity.example.principal_id}" -} -``` - -## Argument Reference - -* `name` - (Required) The name of the User Assigned Identity. -* `resource_group_name` - (Required) The name of the Resource Group in which the User Assigned Identity exists. - -## Attributes Reference - -The following attributes are exported: - -* `id` - The Resource ID of the User Assigned Identity. -* `location` - The Azure location where the User Assigned Identity exists. -* `principal_id` - The Service Principal ID of the User Assigned Identity. -* `client_id` - The Client ID of the User Assigned Identity. -* `tags` - A mapping of tags assigned to the User Assigned Identity. \ No newline at end of file +--- +layout: "azurerm" +page_title: "Azure Resource Manager: azure_user_assigned_identity" +sidebar_current: "docs-azurerm-datasource-user-assigned-identity" +description: |- + Gets information about an existing User Assigned Identity. + +--- + +# Data Source: azurerm_user_assigned_identity + +Use this data source to access information about an existing User Assigned Identity. + +## Example Usage (reference an existing) + +```hcl +data "azurerm_user_assigned_identity" "example" { + name = "name_of_user_assigned_identity" + resource_group_name = "name_of_resource_group" +} + +output "uai_client_id" { + value = "${data.azurerm_user_assigned_identity.example.client_id}" +} + +output "uai_principal_id" { + value = "${data.azurerm_user_assigned_identity.example.principal_id}" +} +``` + +## Argument Reference + +* `name` - (Required) The name of the User Assigned Identity. +* `resource_group_name` - (Required) The name of the Resource Group in which the User Assigned Identity exists. + +## Attributes Reference + +The following attributes are exported: + +* `id` - The Resource ID of the User Assigned Identity. +* `location` - The Azure location where the User Assigned Identity exists. +* `principal_id` - The Service Principal ID of the User Assigned Identity. +* `client_id` - The Client ID of the User Assigned Identity. +* `tags` - A mapping of tags assigned to the User Assigned Identity. diff --git a/website/docs/d/virtual_network_gateway_connection.html.markdown b/website/docs/d/virtual_network_gateway_connection.html.markdown index 3e05d23f0d45..117dd41fef9c 100644 --- a/website/docs/d/virtual_network_gateway_connection.html.markdown +++ b/website/docs/d/virtual_network_gateway_connection.html.markdown @@ -1,103 +1,103 @@ ---- -layout: "azurerm" -page_title: "Azure Resource Manager: azurerm_virtual_network_gateway_connection" -sidebar_current: "docs-azurerm-datasource-virtual-network-gateway-connection" -description: |- - Gets information about an existing Virtual Network Gateway Connection. ---- - -# Data Source: azurerm_virtual_network_gateway_connection - -Use this data source to access information about an existing Virtual Network Gateway Connection. - -## Example Usage - -```hcl -data "azurerm_virtual_network_gateway_connection" "test" { - name = "production" - resource_group_name = "networking" -} - -output "virtual_network_gateway_connection_id" { - value = "${data.azurerm_virtual_network_gateway_connection.test.id}" -} -``` - -## Argument Reference - -* `name` - (Required) Specifies the name of the Virtual Network Gateway Connection. -* `resource_group_name` - (Required) Specifies the name of the resource group the Virtual Network Gateway Connection is located in. - -## Attributes Reference - -* `id` - The ID of the Virtual Network Gateway Connection. - -* `location` - The location/region where the connection is - located. - -* `type` - The type of connection. Valid options are `IPsec` - (Site-to-Site), `ExpressRoute` (ExpressRoute), and `Vnet2Vnet` (VNet-to-VNet). - -* `virtual_network_gateway_id` - The ID of the Virtual Network Gateway - in which the connection is created. - -* `authorization_key` - The authorization key associated with the - Express Route Circuit. This field is present only if the type is an - ExpressRoute connection. - -* `express_route_circuit_id` - The ID of the Express Route Circuit - (i.e. when `type` is `ExpressRoute`). - -* `peer_virtual_network_gateway_id` - The ID of the peer virtual - network gateway when a VNet-to-VNet connection (i.e. when `type` - is `Vnet2Vnet`). - -* `local_network_gateway_id` - The ID of the local network gateway - when a Site-to-Site connection (i.e. when `type` is `IPsec`). - -* `routing_weight` - The routing weight. - -* `shared_key` - The shared IPSec key. - -* `enable_bgp` - If `true`, BGP (Border Gateway Protocol) is enabled - for this connection. - -* `express_route_gateway_bypass` - If `true`, data packets will bypass ExpressRoute Gateway for data forwarding. This is only valid for ExpressRoute connections. - -* `use_policy_based_traffic_selectors` - If `true`, policy-based traffic - selectors are enabled for this connection. Enabling policy-based traffic - selectors requires an `ipsec_policy` block. - -* `ipsec_policy` (Optional) A `ipsec_policy` block which is documented below. - Only a single policy can be defined for a connection. For details on - custom policies refer to [the relevant section in the Azure documentation](https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-ipsecikepolicy-rm-powershell). - -* `tags` - (Optional) A mapping of tags to assign to the resource. - -The `ipsec_policy` block supports: - -* `dh_group` - The DH group used in IKE phase 1 for initial SA. Valid - options are `DHGroup1`, `DHGroup14`, `DHGroup2`, `DHGroup2048`, `DHGroup24`, - `ECP256`, `ECP384`, or `None`. - -* `ike_encryption` - The IKE encryption algorithm. Valid - options are `AES128`, `AES192`, `AES256`, `DES`, or `DES3`. - -* `ike_integrity` - The IKE integrity algorithm. Valid - options are `MD5`, `SHA1`, `SHA256`, or `SHA384`. - -* `ipsec_encryption` - The IPSec encryption algorithm. Valid - options are `AES128`, `AES192`, `AES256`, `DES`, `DES3`, `GCMAES128`, `GCMAES192`, `GCMAES256`, or `None`. - -* `ipsec_integrity` - The IPSec integrity algorithm. Valid - options are `GCMAES128`, `GCMAES192`, `GCMAES256`, `MD5`, `SHA1`, or `SHA256`. - -* `pfs_group` - The DH group used in IKE phase 2 for new child SA. - Valid options are `ECP256`, `ECP384`, `PFS1`, `PFS2`, `PFS2048`, `PFS24`, - or `None`. - -* `sa_datasize` - The IPSec SA payload size in KB. Must be at least - `1024` KB. - -* `sa_lifetime` - The IPSec SA lifetime in seconds. Must be at least - `300` seconds. \ No newline at end of file +--- +layout: "azurerm" +page_title: "Azure Resource Manager: azurerm_virtual_network_gateway_connection" +sidebar_current: "docs-azurerm-datasource-virtual-network-gateway-connection" +description: |- + Gets information about an existing Virtual Network Gateway Connection. +--- + +# Data Source: azurerm_virtual_network_gateway_connection + +Use this data source to access information about an existing Virtual Network Gateway Connection. + +## Example Usage + +```hcl +data "azurerm_virtual_network_gateway_connection" "test" { + name = "production" + resource_group_name = "networking" +} + +output "virtual_network_gateway_connection_id" { + value = "${data.azurerm_virtual_network_gateway_connection.test.id}" +} +``` + +## Argument Reference + +* `name` - (Required) Specifies the name of the Virtual Network Gateway Connection. +* `resource_group_name` - (Required) Specifies the name of the resource group the Virtual Network Gateway Connection is located in. + +## Attributes Reference + +* `id` - The ID of the Virtual Network Gateway Connection. + +* `location` - The location/region where the connection is + located. + +* `type` - The type of connection. Valid options are `IPsec` + (Site-to-Site), `ExpressRoute` (ExpressRoute), and `Vnet2Vnet` (VNet-to-VNet). + +* `virtual_network_gateway_id` - The ID of the Virtual Network Gateway + in which the connection is created. + +* `authorization_key` - The authorization key associated with the + Express Route Circuit. This field is present only if the type is an + ExpressRoute connection. + +* `express_route_circuit_id` - The ID of the Express Route Circuit + (i.e. when `type` is `ExpressRoute`). + +* `peer_virtual_network_gateway_id` - The ID of the peer virtual + network gateway when a VNet-to-VNet connection (i.e. when `type` + is `Vnet2Vnet`). + +* `local_network_gateway_id` - The ID of the local network gateway + when a Site-to-Site connection (i.e. when `type` is `IPsec`). + +* `routing_weight` - The routing weight. + +* `shared_key` - The shared IPSec key. + +* `enable_bgp` - If `true`, BGP (Border Gateway Protocol) is enabled + for this connection. + +* `express_route_gateway_bypass` - If `true`, data packets will bypass ExpressRoute Gateway for data forwarding. This is only valid for ExpressRoute connections. + +* `use_policy_based_traffic_selectors` - If `true`, policy-based traffic + selectors are enabled for this connection. Enabling policy-based traffic + selectors requires an `ipsec_policy` block. + +* `ipsec_policy` (Optional) A `ipsec_policy` block which is documented below. + Only a single policy can be defined for a connection. For details on + custom policies refer to [the relevant section in the Azure documentation](https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-ipsecikepolicy-rm-powershell). + +* `tags` - (Optional) A mapping of tags to assign to the resource. + +The `ipsec_policy` block supports: + +* `dh_group` - The DH group used in IKE phase 1 for initial SA. Valid + options are `DHGroup1`, `DHGroup14`, `DHGroup2`, `DHGroup2048`, `DHGroup24`, + `ECP256`, `ECP384`, or `None`. + +* `ike_encryption` - The IKE encryption algorithm. Valid + options are `AES128`, `AES192`, `AES256`, `DES`, or `DES3`. + +* `ike_integrity` - The IKE integrity algorithm. Valid + options are `MD5`, `SHA1`, `SHA256`, or `SHA384`. + +* `ipsec_encryption` - The IPSec encryption algorithm. Valid + options are `AES128`, `AES192`, `AES256`, `DES`, `DES3`, `GCMAES128`, `GCMAES192`, `GCMAES256`, or `None`. + +* `ipsec_integrity` - The IPSec integrity algorithm. Valid + options are `GCMAES128`, `GCMAES192`, `GCMAES256`, `MD5`, `SHA1`, or `SHA256`. + +* `pfs_group` - The DH group used in IKE phase 2 for new child SA. + Valid options are `ECP256`, `ECP384`, `PFS1`, `PFS2`, `PFS2048`, `PFS24`, + or `None`. + +* `sa_datasize` - The IPSec SA payload size in KB. Must be at least + `1024` KB. + +* `sa_lifetime` - The IPSec SA lifetime in seconds. Must be at least + `300` seconds. diff --git a/website/docs/r/api_management_api_operation_policy.html.markdown b/website/docs/r/api_management_api_operation_policy.html.markdown index 98b0f7a8ac72..4f4b3bb6fb58 100644 --- a/website/docs/r/api_management_api_operation_policy.html.markdown +++ b/website/docs/r/api_management_api_operation_policy.html.markdown @@ -15,15 +15,16 @@ Manages an API Management API Operation Policy ```hcl resource "azurerm_api_management_api_operation" "example" { - ... + #... } resource "azurerm_api_management_api_operation_policy" "example" { - api_name = "${azurerm_api_management_api_operation.example.api_name}" - api_management_name = "${azurerm_api_management_api_operation.example.api_management_name}" - resource_group_name = "${azurerm_api_management_api_operation.example.resource_group_name}" - operation_id = "${azurerm_api_management_api_operation.example.operation_id}" - xml_content = < diff --git a/website/docs/r/api_management_api_policy.html.markdown b/website/docs/r/api_management_api_policy.html.markdown index 8d3788ba056b..86771c701359 100644 --- a/website/docs/r/api_management_api_policy.html.markdown +++ b/website/docs/r/api_management_api_policy.html.markdown @@ -21,10 +21,11 @@ data "azurerm_api_management_api" "example" { } resource "azurerm_api_management_api_policy" "example" { - api_name = "${data.azurerm_api_management_api.example.name}" - api_management_name = "${data.azurerm_api_management_api.example.api_management_name}" - resource_group_name = "${data.azurerm_api_management_api.example.resource_group_name}" - xml_content = < diff --git a/website/docs/r/api_management_api_schema.html.markdown b/website/docs/r/api_management_api_schema.html.markdown index 487730228330..a9fabcee63e0 100644 --- a/website/docs/r/api_management_api_schema.html.markdown +++ b/website/docs/r/api_management_api_schema.html.markdown @@ -28,7 +28,6 @@ resource "azurerm_api_management_api_schema" "example" { content_type = "application/vnd.ms-azure-apim.xsd+xml" value = "${file("api_management_api_schema.xml")}" } - ``` ## Argument Reference diff --git a/website/docs/r/api_management_authorization_server.html.markdown b/website/docs/r/api_management_authorization_server.html.markdown index 1feafdd5d863..8321d61a8562 100644 --- a/website/docs/r/api_management_authorization_server.html.markdown +++ b/website/docs/r/api_management_authorization_server.html.markdown @@ -29,8 +29,9 @@ resource "azurerm_api_management_authorization_server" "example" { authorization_endpoint = "https://example.mydomain.com/client/authorize" client_id = "42424242-4242-4242-4242-424242424242" client_registration_endpoint = "https://example.mydomain.com/client/register" + grant_types = [ - "authorizationCode", + "authorizationCode", ] } ``` diff --git a/website/docs/r/api_management_product_api.html.markdown b/website/docs/r/api_management_product_api.html.markdown index 6960745796b1..598b1703b8e6 100644 --- a/website/docs/r/api_management_product_api.html.markdown +++ b/website/docs/r/api_management_product_api.html.markdown @@ -18,13 +18,13 @@ data "azurerm_api_management" "example" { resource_group_name = "example-resources" } - data "azurerm_api_management_api" "example" { name = "search-api" api_management_name = "${data.azurerm_api_management.example.name}" resource_group_name = "${data.azurerm_api_management.example.resource_group_name}" revision = "2" } + data "azurerm_api_management_product" "test" { product_id = "my-product" api_management_name = "${data.azurerm_api_management.example.name}" diff --git a/website/docs/r/api_management_product_policy.html.markdown b/website/docs/r/api_management_product_policy.html.markdown index cca8d42900fd..3777ad771163 100644 --- a/website/docs/r/api_management_product_policy.html.markdown +++ b/website/docs/r/api_management_product_policy.html.markdown @@ -21,9 +21,10 @@ data "azurerm_api_management_product" "example" { } resource "azurerm_api_management_product_policy" "example" { - product_id = "${data.azurerm_api_management_product.example.product_id}" - api_management_name = "${data.azurerm_api_management_product.example.api_management_name}" - resource_group_name = "${data.azurerm_api_management_product.example.resource_group_name}" + product_id = "${data.azurerm_api_management_product.example.product_id}" + api_management_name = "${data.azurerm_api_management_product.example.api_management_name}" + resource_group_name = "${data.azurerm_api_management_product.example.resource_group_name}" + xml_content = < diff --git a/website/docs/r/api_management_user.html.markdown b/website/docs/r/api_management_user.html.markdown index 09c5a638e499..94d9663386bc 100644 --- a/website/docs/r/api_management_user.html.markdown +++ b/website/docs/r/api_management_user.html.markdown @@ -32,13 +32,13 @@ resource "azurerm_api_management" "test" { } resource "azurerm_api_management_user" "test" { - user_id = "5931a75ae4bbd512288c680b" - api_management_name = "${azurerm_api_management.test.name}" - resource_group_name = "${azurerm_resource_group.test.name}" - first_name = "Example" - last_name = "User" - email = "tom+tfdev@hashicorp.com" - state = "active" + user_id = "5931a75ae4bbd512288c680b" + api_management_name = "${azurerm_api_management.test.name}" + resource_group_name = "${azurerm_resource_group.test.name}" + first_name = "Example" + last_name = "User" + email = "tom+tfdev@hashicorp.com" + state = "active" } ``` diff --git a/website/docs/r/application_gateway.html.markdown b/website/docs/r/application_gateway.html.markdown index 6e666776bd02..dea5786e8fdd 100644 --- a/website/docs/r/application_gateway.html.markdown +++ b/website/docs/r/application_gateway.html.markdown @@ -90,7 +90,7 @@ resource "azurerm_application_gateway" "network" { backend_http_settings { name = "${local.http_setting_name}" cookie_based_affinity = "Disabled" - path = "/path1/" + path = "/path1/" port = 80 protocol = "Http" request_timeout = 1 @@ -104,11 +104,11 @@ resource "azurerm_application_gateway" "network" { } request_routing_rule { - name = "${local.request_routing_rule_name}" - rule_type = "Basic" - http_listener_name = "${local.listener_name}" - backend_address_pool_name = "${local.backend_address_pool_name}" - backend_http_settings_name = "${local.http_setting_name}" + name = "${local.request_routing_rule_name}" + rule_type = "Basic" + http_listener_name = "${local.listener_name}" + backend_address_pool_name = "${local.backend_address_pool_name}" + backend_http_settings_name = "${local.http_setting_name}" } } ``` diff --git a/website/docs/r/batch_account.html.markdown b/website/docs/r/batch_account.html.markdown index 62222dd3dc4e..668ea24551e7 100644 --- a/website/docs/r/batch_account.html.markdown +++ b/website/docs/r/batch_account.html.markdown @@ -70,4 +70,4 @@ The following attributes are exported: * `account_endpoint` - The account endpoint used to interact with the Batch service. -~> **NOTE:** Primary and secondary access keys are only available when `pool_allocation_mode` is set to `BatchService`. See [documentation](https://docs.microsoft.com/en-us/azure/batch/batch-api-basics) for more information. \ No newline at end of file +~> **NOTE:** Primary and secondary access keys are only available when `pool_allocation_mode` is set to `BatchService`. See [documentation](https://docs.microsoft.com/en-us/azure/batch/batch-api-basics) for more information. diff --git a/website/docs/r/batch_pool.html.markdown b/website/docs/r/batch_pool.html.markdown index 5c2ccc095be5..801aea3a3b05 100644 --- a/website/docs/r/batch_pool.html.markdown +++ b/website/docs/r/batch_pool.html.markdown @@ -58,7 +58,8 @@ resource "azurerm_batch_pool" "test" { auto_scale { evaluation_interval = "PT15M" - formula = <