From 31502555d46bd5de1267bfad02dd55462969d0ff Mon Sep 17 00:00:00 2001 From: Martin Ligtenberg Date: Mon, 9 Dec 2024 11:43:40 +0100 Subject: [PATCH] fix more errors --- .../parts/linuxFunctionFlex.bicep | 21 +++---------------- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/Deployment/testFunctions/parts/linuxFunctionFlex.bicep b/Deployment/testFunctions/parts/linuxFunctionFlex.bicep index 73aad36..108f0de 100644 --- a/Deployment/testFunctions/parts/linuxFunctionFlex.bicep +++ b/Deployment/testFunctions/parts/linuxFunctionFlex.bicep @@ -18,9 +18,6 @@ param language string @allowed(['8.0', '20']) param functionAppRuntimeVersion string -@allowed(['~4']) -param runtimeVersion string - resource storageAccount 'Microsoft.Storage/storageAccounts@2021-04-01' = { name: '${functionName}stor' location: location @@ -105,25 +102,13 @@ resource function 'Microsoft.Web/sites@2024-04-01' = { http20Enabled: true appSettings: [ { - name: 'AzureWebJobsStorage' - value: 'DefaultEndpointsProtocol=https;AccountName=${storageAccount.name};EndpointSuffix=${environment().suffixes.storage};AccountKey=${storageAccount.listKeys().keys[0].value}' - } - { - name: 'FUNCTIONS_WORKER_RUNTIME' - value: workerRuntime - } - { - name: 'FUNCTIONS_EXTENSION_VERSION' - value: runtimeVersion + name: 'AzureWebJobsStorage__accountName' + value: storageAccount.name } { name: 'WEBSITE_USE_PLACEHOLDER_DOTNETISOLATED' value: useDotnetIsolated ? '1' : '0' } - { - name: 'WEBSITE_CONTENTAZUREFILECONNECTIONSTRING' - value: 'DefaultEndpointsProtocol=https;AccountName=${storageAccount.name};EndpointSuffix=${environment().suffixes.storage};AccountKey=${storageAccount.listKeys().keys[0].value}' - } ] } } @@ -155,7 +140,7 @@ resource storageRoleAssignment 'Microsoft.Authorization/roleAssignments@2020-04- scope: storageAccount properties: { roleDefinitionId: resourceId('Microsoft.Authorization/roleDefinitions', storageRoleDefinitionId) - principalId: functionFarm.identity.principalId + principalId: function.identity.principalId principalType: 'ServicePrincipal' } }