az storage share create misses --auth-mode login option
When trying to create a storage share without credentials, it works and shows big options. But this option is not implemented.
"There are no credentials provided in your command and environment, we will query for the account key inside your storage account.
Please provide --connection-string, --account-key or --sas-token as credentials, or use --auth-mode login if you have required RBAC roles in your command. For more information about RBAC roles in storage, visit https://docs.microsoft.com/en-us/azure/storage/common/storage-auth-aad-rbac-cli.
Setting the corresponding environment variables can avoid inputting credentials in your command. Please use --help to get more information."
[Enter feedback here]
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 9ae881ef-ad75-32e6-6e64-6b526a2d9a5d
- Version Independent ID: 99971e2e-9ff6-f865-07f7-61efbcb16021
- Content: az storage share
- Content Source: latest/docs-ref-autogen/storage/share.yml
- Service: storage
- GitHub Login: @rloutlaw
- Microsoft Alias: routlaw
Storage
Hi @Josefczak, it is by design that share service doesn't support --auth-mode login, which requires Azure AD credentials. So in this scenario, we will recommend you to use --account-key, --connection-string or --sas-token for authentication, as you can see in https://docs.microsoft.com/en-us/rest/api/storageservices/authorize-requests-to-azure-storage.
But we will refine the warning with right options.