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.
Description
The storage account module has the following output for blob endpoint:
2 issues with this:
blobServicesand the module blobContains blobContainers, then return empty string, else return the ref for the blob endpoint.contains(storageAccount_blobServices, 'blobContainers'))is also invalid, as it will never be true. The return of the module will only containnameandoutputs.