Skip to content

Commit 3150255

Browse files
committed
fix more errors
1 parent 707e674 commit 3150255

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

Deployment/testFunctions/parts/linuxFunctionFlex.bicep

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ param language string
1818
@allowed(['8.0', '20'])
1919
param functionAppRuntimeVersion string
2020

21-
@allowed(['~4'])
22-
param runtimeVersion string
23-
2421
resource storageAccount 'Microsoft.Storage/storageAccounts@2021-04-01' = {
2522
name: '${functionName}stor'
2623
location: location
@@ -105,25 +102,13 @@ resource function 'Microsoft.Web/sites@2024-04-01' = {
105102
http20Enabled: true
106103
appSettings: [
107104
{
108-
name: 'AzureWebJobsStorage'
109-
value: 'DefaultEndpointsProtocol=https;AccountName=${storageAccount.name};EndpointSuffix=${environment().suffixes.storage};AccountKey=${storageAccount.listKeys().keys[0].value}'
110-
}
111-
{
112-
name: 'FUNCTIONS_WORKER_RUNTIME'
113-
value: workerRuntime
114-
}
115-
{
116-
name: 'FUNCTIONS_EXTENSION_VERSION'
117-
value: runtimeVersion
105+
name: 'AzureWebJobsStorage__accountName'
106+
value: storageAccount.name
118107
}
119108
{
120109
name: 'WEBSITE_USE_PLACEHOLDER_DOTNETISOLATED'
121110
value: useDotnetIsolated ? '1' : '0'
122111
}
123-
{
124-
name: 'WEBSITE_CONTENTAZUREFILECONNECTIONSTRING'
125-
value: 'DefaultEndpointsProtocol=https;AccountName=${storageAccount.name};EndpointSuffix=${environment().suffixes.storage};AccountKey=${storageAccount.listKeys().keys[0].value}'
126-
}
127112
]
128113
}
129114
}
@@ -155,7 +140,7 @@ resource storageRoleAssignment 'Microsoft.Authorization/roleAssignments@2020-04-
155140
scope: storageAccount
156141
properties: {
157142
roleDefinitionId: resourceId('Microsoft.Authorization/roleDefinitions', storageRoleDefinitionId)
158-
principalId: functionFarm.identity.principalId
143+
principalId: function.identity.principalId
159144
principalType: 'ServicePrincipal'
160145
}
161146
}

0 commit comments

Comments
 (0)