Azure / Azure/azure-cli

Creating storage account with hierarchical namespace results in error

Open
#25,748 2 comments 0 reactions 1 assignee Claimed by @evelyn-ys View on GitHub
act-codegen-extensibility-squad Auto-Assign Azure CLI Team customer-reported feature-request Storage
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

## Describe the bug

Parameter `--hns` or `--enable-hierarchical-namespace` fails the `az storage create` command.

**Command Name**
`az storage account create`

**Errors:**
```
(InvalidRequestPropertyValue) The value 'True' is not allowed for property isHnsEnabled. For more information, see - https://aka.ms/storageaccounthns
Code: InvalidRequestPropertyValue
```

## To Reproduce:

- `az storage account create -g {} -n {} --sku Premium_LRS --enable-hierarchical-namespace`

## Expected Behavior

The storage account is created.

## Environment Summary
```
Linux-5.15.0-1023-azure-x86_64-with-glibc2.31, Ubuntu 20.04.5 LTS
Python 3.10.10
Installer: DEB

azure-cli 2.46.0
```
## Additional Context

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.