az storage account local-user
Bemærk
This command group has commands that are defined in both Azure CLI and at least one extension. Install each extension to benefit from its extended capabilities. Learn more about extensions.
Manage storage account local users.
Name | Description | Type | Status |
---|---|---|---|
az storage account local-user create |
Create a local user for a given storage account. |
Core | GA |
az storage account local-user create (storage-preview extension) |
Create a local user for a given storage account. |
Extension | Preview |
az storage account local-user delete |
Delete a local user. |
Core | GA |
az storage account local-user delete (storage-preview extension) |
Delete a local user. |
Extension | Preview |
az storage account local-user list |
List local users for a storage account. |
Core | GA |
az storage account local-user list (storage-preview extension) |
List local users for a storage account. |
Extension | Preview |
az storage account local-user list-keys |
List sharedkeys and sshAuthorizedKeys for a local user. |
Core | GA |
az storage account local-user list-keys (storage-preview extension) |
List sharedkeys and sshAuthorizedKeys for a local user. |
Extension | Preview |
az storage account local-user regenerate-password |
Regenerate sshPassword for a local user. |
Core | GA |
az storage account local-user regenerate-password (storage-preview extension) |
Regenerate sshPassword for a local user. |
Extension | Preview |
az storage account local-user show |
Show info for a local user. |
Core | GA |
az storage account local-user show (storage-preview extension) |
Show info for a local user. |
Extension | Preview |
az storage account local-user update |
Update properties for a local user. |
Core | GA |
az storage account local-user update (storage-preview extension) |
Update properties for a local user. |
Extension | Preview |
Create a local user for a given storage account.
az storage account local-user create --account-name
--name
--resource-group
[--has-shared-key {false, true}]
[--has-ssh-key {false, true}]
[--has-ssh-password {false, true}]
[--home-directory]
[--permission-scope]
[--ssh-authorized-key]
Create a local-user with two permission scopes and an ssh-authorized-key
az storage account local-user create --account-name {account-name} -g {resource-group} -n {username} --home-directory home --permission-scope permissions=r service=blob resource-name=container1 --permission-scope permissions=rw service=file resource-name=share2 --ssh-authorized-key key="ssh-rsa a2V5" --has-ssh-key true --has-ssh-password --has-shared-key false
The storage account name.
The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Indicates whether shared key exists. Set it to false to remove existing shared key.
Indicates whether ssh key exists. Set it to false to remove existing SSH key.
Indicates whether ssh password exists. Set it to false to remove existing SSH password.
The home directory.
The permission scope argument list which includes the permissions, service, and resource_name.The permissions can be a combination of the below possible values: Read(r), Write (w), Delete (d), List (l), and Create (c). The service has possible values: blob, file. The resource-name is the container name or the file share name. Example: --permission-scope permissions=r service=blob resource-name=container1Can specify multiple permission scopes: --permission-scope permissions=rw service=blob resource-name=container1--permission-scope permissions=rwd service=file resource-name=share2.
SSH authorized keys for SFTP. Includes an optional description and key. The key is the base64 encoded SSH public key , with format: e.g. ssh-rsa AAAABBBB.Example: --ssh_authorized_key description=description key="ssh-rsa AAAABBBB"or --ssh_authorized_key key="ssh-rsa AAAABBBB".
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Command group 'storage account local-user' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Create a local user for a given storage account.
az storage account local-user create --account-name
--name
--resource-group
[--allow-acl-auth {false, true}]
[--extended-groups]
[--group-id]
[--has-shared-key {false, true}]
[--has-ssh-key {false, true}]
[--has-ssh-password {false, true}]
[--home-directory]
[--is-nfsv3-enabled {false, true}]
[--permission-scope]
[--ssh-authorized-key]
Create a local-user with two permission scopes and an ssh-authorized-key
az storage account local-user create --account-name {account-name} -g {resource-group} -n {username} --home-directory home --permission-scope permissions=r service=blob resource-name=container1 --permission-scope permissions=rw service=file resource-name=share2 --ssh-authorized-key key="ssh-rsa a2V5" --has-ssh-key true --has-ssh-password --has-shared-key false --group-id 1 --allow-acl-authorization true --extended-groups 3 4 --is-nfsv3-enabled true
The storage account name.
The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Indicate whether ACL authorization is allowed for this user. Set it to false to disallow using ACL authorization.
Supplementary group membership. Only applicable for local users enabled for NFSv3 access.
An identifier for associating a group of users.
Indicates whether shared key exists. Set it to false to remove existing shared key.
Indicates whether ssh key exists. Set it to false to remove existing SSH key.
Indicates whether ssh password exists. Set it to false to remove existing SSH password.
The home directory.
Indicate if the local user is enabled for access with NFSv3 protocol.
The permission scope argument list which includes the permissions, service, and resource_name.The permissions can be a combination of the below possible values: Read(r), Write (w), Delete (d), List (l), and Create (c). The service has possible values: blob, file. The resource-name is the container name or the file share name. Example: --permission-scope permissions=r service=blob resource-name=container1Can specify multiple permission scopes: --permission-scope permissions=rw service=blob resource-name=container1--permission-scope permissions=rwd service=file resource-name=share2.
SSH authorized keys for SFTP. Includes an optional description and key. The key is the base64 encoded SSH public key , with format: e.g. ssh-rsa AAAABBBB.Example: --ssh_authorized_key description=description key="ssh-rsa AAAABBBB"or --ssh_authorized_key key="ssh-rsa AAAABBBB".
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Delete a local user.
az storage account local-user delete --account-name
--name
--resource-group
Delete a local-user
az storage account local-user delete --account-name {account-name} -g {resource-group} -n {username}
The storage account name.
The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Command group 'storage account local-user' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Delete a local user.
az storage account local-user delete --account-name
--name
--resource-group
Delete a local-user
az storage account local-user delete --account-name {account-name} -g {resource-group} -n {username}
The storage account name.
The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
List local users for a storage account.
az storage account local-user list --account-name
--resource-group
[--filter]
[--include]
[--maxpagesize]
List local-user for a storage account
az storage account local-user list --account-name {account-name} -g {resource-group}
The storage account name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional. When specified, only local user names starting with the filter will be listed. Default value is None.
Optional, when specified, will list local users enabled for the specific protocol. Lists all users by default. "nfsv3" Default value is None.
Optional, specifies the maximum number of local users that will be included in the list response. Default value is None.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Command group 'storage account local-user' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List local users for a storage account.
az storage account local-user list --account-name
--resource-group
[--filter]
[--include]
[--maxpagesize]
List local-user for a storage account with name starting with test and only returning 3 results
az storage account local-user list --account-name {account-name} -g {resource-group} --filter "startswith(name, test)" --maxpagesize 3
The storage account name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional. When specified, only local user names starting with the filter will be listed. Default value is None.
Optional, when specified, will list local users enabled for the specific protocol. Lists all users by default. "nfsv3" Default value is None.
Optional, specifies the maximum number of local users that will be included in the list response. Default value is None.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
List sharedkeys and sshAuthorizedKeys for a local user.
az storage account local-user list-keys --account-name
--name
--resource-group
List sharedkeys and sshAuthorizedKeys for a local-user
az storage account local-user list-keys --account-name {account-name} -g {resource-group} -n {username}
The storage account name.
The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Command group 'storage account local-user' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List sharedkeys and sshAuthorizedKeys for a local user.
az storage account local-user list-keys --account-name
--name
--resource-group
List sharedkeys and sshAuthorizedKeys for a local-user
az storage account local-user list-keys --account-name {account-name} -g {resource-group} -n {username}
The storage account name.
The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Regenerate sshPassword for a local user.
az storage account local-user regenerate-password --account-name
--name
--resource-group
Regenerate sshPassword for a local-user
az storage account local-user regenerate-password --account-name {account-name} -g {resource-group} -n {username}
The storage account name.
The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Command group 'storage account local-user' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Regenerate sshPassword for a local user.
az storage account local-user regenerate-password --account-name
--name
--resource-group
Regenerate sshPassword for a local-user
az storage account local-user regenerate-password --account-name {account-name} -g {resource-group} -n {username}
The storage account name.
The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Show info for a local user.
az storage account local-user show --account-name
--name
--resource-group
Show info for a local-user
az storage account local-user show --account-name {account-name} -g {resource-group} -n {username}
The storage account name.
The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Command group 'storage account local-user' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Show info for a local user.
az storage account local-user show --account-name
--name
--resource-group
Show info for a local-user
az storage account local-user show --account-name {account-name} -g {resource-group} -n {username}
The storage account name.
The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Update properties for a local user.
az storage account local-user update --account-name
--name
--resource-group
[--has-shared-key {false, true}]
[--has-ssh-key {false, true}]
[--has-ssh-password {false, true}]
[--home-directory]
[--permission-scope]
[--ssh-authorized-key]
Update a local-user with one permission scopes and no ssh-key
az storage account local-user update --account-name {account-name} -g {resource-group} -n {username} --permission-scope permissions=rw service=file resource-name=share2 --has-ssh-key false
The storage account name.
The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Indicates whether shared key exists. Set it to false to remove existing shared key.
Indicates whether ssh key exists. Set it to false to remove existing SSH key.
Indicates whether ssh password exists. Set it to false to remove existing SSH password.
The home directory.
The permission scope argument list which includes the permissions, service, and resource_name.The permissions can be a combination of the below possible values: Read(r), Write (w), Delete (d), List (l), and Create (c). The service has possible values: blob, file. The resource-name is the container name or the file share name. Example: --permission-scope permissions=r service=blob resource-name=container1Can specify multiple permission scopes: --permission-scope permissions=rw service=blob resource-name=container1--permission-scope permissions=rwd service=file resource-name=share2.
SSH authorized keys for SFTP. Includes an optional description and key. The key is the base64 encoded SSH public key , with format: e.g. ssh-rsa AAAABBBB.Example: --ssh_authorized_key description=description key="ssh-rsa AAAABBBB"or --ssh_authorized_key key="ssh-rsa AAAABBBB".
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Command group 'storage account local-user' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Update properties for a local user.
az storage account local-user update --account-name
--name
--resource-group
[--allow-acl-auth {false, true}]
[--extended-groups]
[--group-id]
[--has-shared-key {false, true}]
[--has-ssh-key {false, true}]
[--has-ssh-password {false, true}]
[--home-directory]
[--permission-scope]
[--ssh-authorized-key]
Update a local-user with one permission scopes and no ssh-key
az storage account local-user update --account-name {account-name} -g {resource-group} -n {username} --permission-scope permissions=rw service=file resource-name=share2 --has-ssh-key false --group-id 2 --allow-acl-authorization false --extended-groups 3 4
The storage account name.
The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Indicate whether ACL authorization is allowed for this user. Set it to false to disallow using ACL authorization.
Supplementary group membership. Only applicable for local users enabled for NFSv3 access.
An identifier for associating a group of users.
Indicates whether shared key exists. Set it to false to remove existing shared key.
Indicates whether ssh key exists. Set it to false to remove existing SSH key.
Indicates whether ssh password exists. Set it to false to remove existing SSH password.
The home directory.
The permission scope argument list which includes the permissions, service, and resource_name.The permissions can be a combination of the below possible values: Read(r), Write (w), Delete (d), List (l), and Create (c). The service has possible values: blob, file. The resource-name is the container name or the file share name. Example: --permission-scope permissions=r service=blob resource-name=container1Can specify multiple permission scopes: --permission-scope permissions=rw service=blob resource-name=container1--permission-scope permissions=rwd service=file resource-name=share2.
SSH authorized keys for SFTP. Includes an optional description and key. The key is the base64 encoded SSH public key , with format: e.g. ssh-rsa AAAABBBB.Example: --ssh_authorized_key description=description key="ssh-rsa AAAABBBB"or --ssh_authorized_key key="ssh-rsa AAAABBBB".
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Azure CLI feedback
Azure CLI er et åben kildekode projekt. Vælg et link for at give feedback: