Azure / Azure/azure-rest-api-specs

Storage Account deployment fails when isHnsEnabled = false

Open
#18,441 12 comments 0 reactions 2 assignees Claimed by @priyapansrp View on GitHub
customer-reported needs-triage question
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.