Azure / Azure/azure-rest-api-specs
Storage Account deployment fails when isHnsEnabled = false
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 424
Description
Setting `isHnsEnabled: false` throws an error:
`The property 'isHnsEnabled' was specified in the input, but it cannot be updated as it is read-only. For more information, see - https://aka.ms/storageaccountupdate`
When setting `isHnsEnabled: true`, you can successfully redeploy the storage account.
Tested when deploying and redeploying storage accounts via Bicep using 'Microsoft.Storage/storageAccounts@2021-08-01' against pre-existing non-Hns storage accounts (created with API v. 2021-04-01) and when creating an Hns storage account.
Also see other people reporting the same issue:
- [Stack Overflow](https://stackoverflow.com/questions/71115316/bicep-ishnsenabled-cannot-be-updated)
- [Azure Feedback](https://feedback.azure.com/d365community/idea/ada85cb0-40ac-ec11-a81c-0022484ee92d)
Contributor guide
Assessment
This issue has not been assessed yet.