azure-docs
azure-docs copied to clipboard
Bicep code - reference to storage account missing `.name`
I think this:
{
name: 'AzureWebJobsStorage'
value: 'DefaultEndpointsProtocol=https;AccountName=${storageAccountName};EndpointSuffix=${environment().suffixes.storage};AccountKey=${storageAccount.listKeys().keys[0].value}'
}
{
name: 'WEBSITE_CONTENTAZUREFILECONNECTIONSTRING'
value: 'DefaultEndpointsProtocol=https;AccountName=${storageAccountName};EndpointSuffix=${environment().suffixes.storage};AccountKey=${storageAccount.listKeys().keys[0].value}'
}
Needs to be this
{
name: 'AzureWebJobsStorage'
value: 'DefaultEndpointsProtocol=https;AccountName=${storageAccountName.name};EndpointSuffix=${environment().suffixes.storage};AccountKey=${storageAccount.listKeys().keys[0].value}'
}
{
name: 'WEBSITE_CONTENTAZUREFILECONNECTIONSTRING'
value: 'DefaultEndpointsProtocol=https;AccountName=${storageAccountName.name};EndpointSuffix=${environment().suffixes.storage};AccountKey=${storageAccount.listKeys().keys[0].value}'
}
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 5342810d-f9ee-fd3f-ce3b-621a185c5411
- Version Independent ID: 95440025-2c89-ab52-2383-38048b8c61f5
- Content: Create your function app resources in Azure using Bicep
- Content Source: articles/azure-functions/functions-create-first-function-bicep.md
- Service: azure-functions
- GitHub Login: @mijacobs
- Microsoft Alias: mijacobs
@jochenvw Thanks for your feedback! We will investigate and update as appropriate.