diff --git a/internal/services/batch/batch_pool_resource_test.go b/internal/services/batch/batch_pool_resource_test.go index 0da5ab7babd0..3f8d52104561 100644 --- a/internal/services/batch/batch_pool_resource_test.go +++ b/internal/services/batch/batch_pool_resource_test.go @@ -1303,7 +1303,7 @@ resource "azurerm_storage_account" "test" { account_tier = "Standard" account_replication_type = "LRS" - allow_blob_public_access = true + allow_nested_items_to_be_public = true tags = { environment = "Dev" diff --git a/internal/services/compute/image_data_source_test.go b/internal/services/compute/image_data_source_test.go index e41d7d85d89b..8f57ea5fce8b 100644 --- a/internal/services/compute/image_data_source_test.go +++ b/internal/services/compute/image_data_source_test.go @@ -107,12 +107,12 @@ resource "azurerm_network_interface" "testsource" { } resource "azurerm_storage_account" "test" { - name = "acctestsa%s" - resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - account_tier = "Standard" - account_replication_type = "LRS" - allow_blob_public_access = true + name = "acctestsa%s" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + account_tier = "Standard" + account_replication_type = "LRS" + allow_nested_items_to_be_public = true tags = { environment = "Dev" @@ -240,12 +240,12 @@ resource "azurerm_network_interface" "testsource" { } resource "azurerm_storage_account" "test" { - name = "acctestsa%s" - resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - account_tier = "Standard" - account_replication_type = "LRS" - allow_blob_public_access = true + name = "acctestsa%s" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + account_tier = "Standard" + account_replication_type = "LRS" + allow_nested_items_to_be_public = true tags = { environment = "Dev" diff --git a/internal/services/compute/image_resource_test.go b/internal/services/compute/image_resource_test.go index 5b547260d9b1..cd511d88746b 100644 --- a/internal/services/compute/image_resource_test.go +++ b/internal/services/compute/image_resource_test.go @@ -423,7 +423,8 @@ resource "azurerm_storage_account" "test" { location = azurerm_resource_group.test.location account_tier = "Standard" account_replication_type = "%s" - allow_blob_public_access = true + + allow_nested_items_to_be_public = true } resource "azurerm_storage_container" "test" { diff --git a/internal/services/compute/linux_virtual_machine_scale_set_images_resource_test.go b/internal/services/compute/linux_virtual_machine_scale_set_images_resource_test.go index f581af5ac0e2..ef527166b9df 100644 --- a/internal/services/compute/linux_virtual_machine_scale_set_images_resource_test.go +++ b/internal/services/compute/linux_virtual_machine_scale_set_images_resource_test.go @@ -363,12 +363,12 @@ resource "azurerm_network_interface" "source" { } resource "azurerm_storage_account" "test" { - name = "accsa%s" - resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - account_tier = "Standard" - account_replication_type = "LRS" - allow_blob_public_access = true + name = "accsa%s" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + account_tier = "Standard" + account_replication_type = "LRS" + allow_nested_items_to_be_public = true } resource "azurerm_storage_container" "test" { diff --git a/internal/services/compute/windows_virtual_machine_scale_set_images_resource_test.go b/internal/services/compute/windows_virtual_machine_scale_set_images_resource_test.go index 65dde4f07f0e..65ab03509689 100644 --- a/internal/services/compute/windows_virtual_machine_scale_set_images_resource_test.go +++ b/internal/services/compute/windows_virtual_machine_scale_set_images_resource_test.go @@ -373,12 +373,12 @@ resource "azurerm_network_interface" "source" { } resource "azurerm_storage_account" "test" { - name = "accsa%s" - resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - account_tier = "Standard" - account_replication_type = "LRS" - allow_blob_public_access = true + name = "accsa%s" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + account_tier = "Standard" + account_replication_type = "LRS" + allow_nested_items_to_be_public = true } resource "azurerm_storage_container" "test" { diff --git a/internal/services/logic/logic_app_integration_account_assembly_resource_test.go b/internal/services/logic/logic_app_integration_account_assembly_resource_test.go index 6c521c4cbbaf..a87ca1a75384 100644 --- a/internal/services/logic/logic_app_integration_account_assembly_resource_test.go +++ b/internal/services/logic/logic_app_integration_account_assembly_resource_test.go @@ -172,12 +172,12 @@ func (r LogicAppIntegrationAccountAssemblyResource) update(data acceptance.TestD %s resource "azurerm_storage_account" "test" { - name = "acctestsa%s" - resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - account_tier = "Standard" - account_replication_type = "LRS" - allow_blob_public_access = true + name = "acctestsa%s" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + account_tier = "Standard" + account_replication_type = "LRS" + allow_nested_items_to_be_public = true } resource "azurerm_storage_container" "test" { diff --git a/internal/services/storage/storage_account_resource_test.go b/internal/services/storage/storage_account_resource_test.go index 5302c62422e3..2d68309d6119 100644 --- a/internal/services/storage/storage_account_resource_test.go +++ b/internal/services/storage/storage_account_resource_test.go @@ -229,7 +229,7 @@ func TestAccStorageAccount_allowBlobPublicAccess(t *testing.T) { Config: r.basic(data), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("allow_blob_public_access").HasValue("false"), + check.That(data.ResourceName).Key("allow_nested_items_to_be_public").HasValue("false"), ), }, data.ImportStep(), @@ -237,7 +237,7 @@ func TestAccStorageAccount_allowBlobPublicAccess(t *testing.T) { Config: r.allowBlobPublicAccess(data), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("allow_blob_public_access").HasValue("true"), + check.That(data.ResourceName).Key("allow_nested_items_to_be_public").HasValue("true"), ), }, data.ImportStep(), @@ -245,7 +245,7 @@ func TestAccStorageAccount_allowBlobPublicAccess(t *testing.T) { Config: r.disallowBlobPublicAccess(data), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("allow_blob_public_access").HasValue("false"), + check.That(data.ResourceName).Key("allow_nested_items_to_be_public").HasValue("false"), ), }, }) @@ -1436,10 +1436,10 @@ resource "azurerm_storage_account" "test" { name = "unlikely23exst2acct%s" resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - account_tier = "Standard" - account_replication_type = "LRS" - allow_blob_public_access = true + location = azurerm_resource_group.test.location + account_tier = "Standard" + account_replication_type = "LRS" + allow_nested_items_to_be_public = true tags = { environment = "production" @@ -1464,10 +1464,10 @@ resource "azurerm_storage_account" "test" { name = "unlikely23exst2acct%s" resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - account_tier = "Standard" - account_replication_type = "LRS" - allow_blob_public_access = false + location = azurerm_resource_group.test.location + account_tier = "Standard" + account_replication_type = "LRS" + allow_nested_items_to_be_public = false tags = { environment = "production" @@ -2436,11 +2436,11 @@ resource "azurerm_storage_account" "test" { name = "unlikely23exst2acct%s" resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - account_tier = "Standard" - account_replication_type = "LRS" - enable_https_traffic_only = true - allow_blob_public_access = true + location = azurerm_resource_group.test.location + account_tier = "Standard" + account_replication_type = "LRS" + enable_https_traffic_only = true + allow_nested_items_to_be_public = true blob_properties { cors_rule { diff --git a/internal/services/storage/storage_blob_resource_test.go b/internal/services/storage/storage_blob_resource_test.go index 6311957f5cc3..e13d2c6f3c4a 100644 --- a/internal/services/storage/storage_blob_resource_test.go +++ b/internal/services/storage/storage_blob_resource_test.go @@ -1038,12 +1038,12 @@ resource "azurerm_resource_group" "test" { } resource "azurerm_storage_account" "test" { - name = "acctestacc%s" - resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - account_tier = "Standard" - account_replication_type = "LRS" - allow_blob_public_access = true + name = "acctestacc%s" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + account_tier = "Standard" + account_replication_type = "LRS" + allow_nested_items_to_be_public = true } resource "azurerm_storage_container" "test" { @@ -1062,13 +1062,13 @@ resource "azurerm_resource_group" "test" { } resource "azurerm_storage_account" "test" { - name = "acctestacc%s" - resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - account_kind = "StorageV2" - account_tier = "Standard" - account_replication_type = "LRS" - allow_blob_public_access = true + name = "acctestacc%s" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + account_kind = "StorageV2" + account_tier = "Standard" + account_replication_type = "LRS" + allow_nested_items_to_be_public = true } resource "azurerm_storage_container" "test" { @@ -1087,12 +1087,12 @@ resource "azurerm_resource_group" "test" { } resource "azurerm_storage_account" "test" { - name = "acctestacc%s" - resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - account_tier = "Premium" - account_replication_type = "LRS" - allow_blob_public_access = true + name = "acctestacc%s" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + account_tier = "Premium" + account_replication_type = "LRS" + allow_nested_items_to_be_public = true } resource "azurerm_storage_container" "test" { diff --git a/internal/services/storage/storage_container_resource_test.go b/internal/services/storage/storage_container_resource_test.go index 9cdad510a31b..b73a06c9b537 100644 --- a/internal/services/storage/storage_container_resource_test.go +++ b/internal/services/storage/storage_container_resource_test.go @@ -388,12 +388,12 @@ resource "azurerm_resource_group" "test" { } resource "azurerm_storage_account" "test" { - name = "acctestacc%s" - resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - account_tier = "Standard" - account_replication_type = "LRS" - allow_blob_public_access = true + name = "acctestacc%s" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + account_tier = "Standard" + account_replication_type = "LRS" + allow_nested_items_to_be_public = true tags = { environment = "staging"