Skip to content

Create storage share gives conflicting information #32510

@lastcoolnameleft

Description

@lastcoolnameleft

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

Metadata

Metadata

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamStorageaz storageact-codegen-extensibility-squadquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions