diff --git a/rg.bicep b/rg.bicep index 4970606..3cc9bdb 100644 --- a/rg.bicep +++ b/rg.bicep @@ -42,7 +42,7 @@ var common_storage_properties = { var storage_properties = use_shared_keys ? common_storage_properties : union(common_storage_properties, { allowSharedKeyAccess: false }) -resource storageAccount 'Microsoft.Storage/storageAccounts@2023-01-01' = { +resource storageAccount 'Microsoft.Storage/storageAccounts@2024-01-01' = { name: storage_account_name location: location kind: 'StorageV2' diff --git a/rg_add_eventgrid.bicep b/rg_add_eventgrid.bicep index 7c2f679..16afc08 100644 --- a/rg_add_eventgrid.bicep +++ b/rg_add_eventgrid.bicep @@ -20,7 +20,7 @@ param storage_account_name string = 'debianrepo${suffix}' var package_container_name = 'packages' // Define all existing resources -resource storageAccount 'Microsoft.Storage/storageAccounts@2023-01-01' existing = { +resource storageAccount 'Microsoft.Storage/storageAccounts@2024-01-01' existing = { name: storage_account_name } resource defBlobServices 'Microsoft.Storage/storageAccounts/blobServices@2023-01-01' existing = { diff --git a/rg_funcapp.bicep b/rg_funcapp.bicep index 06747af..fa09105 100644 --- a/rg_funcapp.bicep +++ b/rg_funcapp.bicep @@ -39,7 +39,7 @@ var applicationInsightsName = appName resource uami 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-01-31' existing = { name: 'uami${suffix}' } -resource storageAccount 'Microsoft.Storage/storageAccounts@2023-01-01' existing = { +resource storageAccount 'Microsoft.Storage/storageAccounts@2024-01-01' existing = { name: storage_account_name } resource defBlobServices 'Microsoft.Storage/storageAccounts/blobServices@2023-01-01' existing = {