diff --git a/rg_add_eventgrid.bicep b/rg_add_eventgrid.bicep index 7c2f679..4183e1f 100644 --- a/rg_add_eventgrid.bicep +++ b/rg_add_eventgrid.bicep @@ -31,7 +31,7 @@ resource packageContainer 'Microsoft.Storage/storageAccounts/blobServices/contai parent: defBlobServices name: package_container_name } -resource functionApp 'Microsoft.Web/sites@2023-01-01' existing = { +resource functionApp 'Microsoft.Web/sites@2024-11-01' existing = { name: appName } diff --git a/rg_funcapp.bicep b/rg_funcapp.bicep index 06747af..cd177fe 100644 --- a/rg_funcapp.bicep +++ b/rg_funcapp.bicep @@ -141,7 +141,7 @@ var app_settings = use_shared_keys ? concat(common_settings, [ ]) // Create the function app. -resource functionApp 'Microsoft.Web/sites@2023-01-01' = { +resource functionApp 'Microsoft.Web/sites@2024-11-01' = { name: functionAppName dependsOn: [storageBlobDataContributorRoleAssignment] location: location