Skip to content

Storage account - output issue for blob endpoint #860

@MariusStorhaug

Description

@MariusStorhaug

Description

The storage account module has the following output for blob endpoint:

@description('The primary blob endpoint reference if blob services are deployed.')
output storageAccountPrimaryBlobEndpoint string = (!empty(blobServices) && '' : contains(storageAccount_blobServices, 'blobContainers')) ? reference('Microsoft.Storage/storageAccounts/${storageAccount.name}', '2019-04-01').primaryEndpoints.blob

2 issues with this:

  • This the logic seems to be incorrect. Current logic in words, if we have blobServices and the module blobContains blobContainers, then return empty string, else return the ref for the blob endpoint.
  • The contains(storageAccount_blobServices, 'blobContainers')) is also invalid, as it will never be true. The return of the module will only contain name and outputs.

Metadata

Metadata

Labels

[cat] modulescategory: modulesbugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions