azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

Bicep code - reference to storage account missing `.name`

Open jochenvw opened this issue 10 months ago • 1 comments

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.

jochenvw avatar Apr 25 '24 11:04 jochenvw

@jochenvw Thanks for your feedback! We will investigate and update as appropriate.

TPavanBalaji avatar Apr 25 '24 15:04 TPavanBalaji