Azure / Azure/azure-cli

Create storage share gives conflicting information

Open
#32,510 2 comments 0 reactions 2 assignees Claimed by @calvinhzy View on GitHub
act-codegen-extensibility-squad Auto-Assign Azure CLI Team question Storage
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

The issue is that when creating a storage NFS file share, it says that NFS is not supported, despite having enabled NFS.

Here's how to reproduce the error:

```
# Verify using latest version
az version -o table
Azure-cli Azure-cli-core Azure-cli-telemetry
----------- ---------------- ---------------------
2.81.0 2.81.0 1.1.0

# Create storage account with NFS V3 enabled
az storage account create -n ${STORAGE_ACCOUNT} -g ${RESOURCE_GROUP} \
--kind StorageV2 --sku Standard_LRS \
--enable-hierarchical-namespace -o none \
--allow-shared-key-access false \
--enable-nfs-v3 \
--default-action Deny

# Verify NFS is enabled:
az storage account show -n $STORAGE_ACCOUNT --resource-group $RESOURCE_GROUP | grep -i nfs
"enableNfsV3": true,

# Create NFS Share:
az storage share-rm create \
--resource-group $RESOURCE_GROUP \
--storage-account $STORAGE_ACCOUNT \
--name $SHARE_NAME \
--enabled-protocol NFS \
--quota 5
(FeatureNotSupportedForAccount) NfsFileShares is not supported for the account.
Code: FeatureNotSupportedForAccount
Message: NfsFileShares is not supported for the account.
```

### Related command

See above

### Errors

See above

### Issue script & Debug output

See above

### Expected behavior

I would expect it proceed with creating the share since NFS is enabled, or at least provide a more accureate error message.

### Environment Summary

az --version
azure-cli 2.81.0

core 2.81.0
telemetry 1.1.0

Extensions:
aks-preview 19.0.0b17
amg 2.8.1
application-insights 1.2.3
log-analytics 1.0.0b1

Dependencies:
msal 1.34.0b1
azure-mgmt-resource 23.3.0

Python location '/opt/homebrew/Cellar/azure-cli/2.81.0/libexec/bin/python'
Config directory '/Users/thfalgou/.azure'
Extensions directory '/Users/thfalgou/.azure/cliextensions'

Python (Darwin) 3.13.11 (main, Dec 5 2025, 16:06:33) [Clang 17.0.0 (clang-1700.4.4.1)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

### Additional context

_No response_

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.