az datashare account
Note
This reference is part of the datashare extension for the Azure CLI (version 2.15.0 or higher). The extension will automatically install the first time you run an az datashare account command. Learn more about extensions.
Manage account with datashare.
Commands
| az datashare account create |
Create an account. |
| az datashare account delete |
DeleteAccount. |
| az datashare account list |
List Accounts in ResourceGroup And List Accounts in Subscription. |
| az datashare account show |
Get an account. |
| az datashare account update |
Patch an account. |
| az datashare account wait |
Place the CLI in a waiting state until a condition of the datashare account is met. |
az datashare account create
Create an account.
az datashare account create --account-name
--resource-group
[--location]
[--no-wait]
[--tags]
Examples
Accounts_Create
az datashare account create --location "West US 2" --tags tag1="Red" tag2="White" --name "Account1" --resource-group "SampleResourceGroup"
Required Parameters
The name of the share account.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.
Do not wait for the long-running operation to finish.
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
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.
az datashare account delete
DeleteAccount.
az datashare account delete --account-name
--resource-group
[--no-wait]
[--yes]
Examples
Accounts_Delete
az datashare account delete --name "Account1" --resource-group "SampleResourceGroup"
Required Parameters
The name of the share account.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
Do not wait for the long-running operation to finish.
Do not prompt for confirmation.
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.
az datashare account list
List Accounts in ResourceGroup And List Accounts in Subscription.
az datashare account list [--resource-group]
[--skip-token]
Examples
Accounts_ListByResourceGroup
az datashare account list --resource-group "SampleResourceGroup"
Accounts_ListBySubscription
az datashare account list
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Continuation token.
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.
az datashare account show
Get an account.
az datashare account show --account-name
--resource-group
Examples
Accounts_Get
az datashare account show --name "Account1" --resource-group "SampleResourceGroup"
Required Parameters
The name of the share account.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
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.
az datashare account update
Patch an account.
az datashare account update --account-name
--resource-group
[--tags]
Examples
Accounts_Update
az datashare account update --name "Account1" --tags tag1="Red" tag2="White" --resource-group "SampleResourceGroup"
Required Parameters
The name of the share account.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
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.
az datashare account wait
Place the CLI in a waiting state until a condition of the datashare account is met.
az datashare account wait --account-name
--resource-group
[--created]
[--custom]
[--deleted]
[--exists]
[--interval]
[--timeout]
[--updated]
Examples
Pause executing next line of CLI script until the datashare account is successfully created.
az datashare account wait --name "Account1" --resource-group "SampleResourceGroup" --created
Pause executing next line of CLI script until the datashare account is successfully deleted.
az datashare account wait --name "Account1" --resource-group "SampleResourceGroup" --deleted
Required Parameters
The name of the share account.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
Wait until created with 'provisioningState' at 'Succeeded'.
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Wait until deleted.
Wait until the resource exists.
Polling interval in seconds.
Maximum wait in seconds.
Wait until updated with provisioningState at 'Succeeded'.
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.
الملاحظات
إرسال الملاحظات وعرضها المتعلقة بـ