az datashare
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 command. Learn more about extensions.
This command group is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage Data Share.
Commands
Name | Description | Type | Status |
---|---|---|---|
az datashare account |
Manage account with datashare. |
Extension | Experimental |
az datashare account create |
Create an account. |
Extension | Experimental |
az datashare account delete |
DeleteAccount. |
Extension | Experimental |
az datashare account list |
List Accounts in ResourceGroup And List Accounts in Subscription. |
Extension | Experimental |
az datashare account show |
Get an account. |
Extension | Experimental |
az datashare account update |
Patch an account. |
Extension | Experimental |
az datashare account wait |
Place the CLI in a waiting state until a condition of the datashare account is met. |
Extension | Experimental |
az datashare consumer-invitation |
Manage consumer invitation with datashare. |
Extension | Experimental |
az datashare consumer-invitation list-invitation |
Lists invitations. |
Extension | Experimental |
az datashare consumer-invitation reject-invitation |
Reject an invitation. |
Extension | Experimental |
az datashare consumer-invitation show |
Get an invitation. |
Extension | Experimental |
az datashare consumer-source-data-set |
Manage consumer source data set with datashare. |
Extension | Experimental |
az datashare consumer-source-data-set list |
Get source dataSets of a shareSubscription. |
Extension | Experimental |
az datashare create |
Create a share. |
Extension | Experimental |
az datashare data-set |
Manage data set with datashare. |
Extension | Experimental |
az datashare data-set-mapping |
Manage data set mapping with datashare. |
Extension | Experimental |
az datashare data-set-mapping create |
Create a DataSetMapping. |
Extension | Experimental |
az datashare data-set-mapping delete |
Delete a DataSetMapping in a shareSubscription. |
Extension | Experimental |
az datashare data-set-mapping list |
List DataSetMappings in a share subscription. |
Extension | Experimental |
az datashare data-set-mapping show |
Get a DataSetMapping in a shareSubscription. |
Extension | Experimental |
az datashare data-set create |
Create a DataSet. |
Extension | Experimental |
az datashare data-set delete |
Delete a DataSet in a share. |
Extension | Experimental |
az datashare data-set list |
List DataSets in a share. |
Extension | Experimental |
az datashare data-set show |
Get a DataSet in a share. |
Extension | Experimental |
az datashare data-set wait |
Place the CLI in a waiting state until a condition of the datashare data-set is met. |
Extension | Experimental |
az datashare delete |
Delete a share. |
Extension | Experimental |
az datashare email-registration |
Manage email registration with datashare. |
Extension | Experimental |
az datashare email-registration activate-email |
Activate the email registration for the current tenant. |
Extension | Experimental |
az datashare email-registration register-email |
Register an email for the current tenant. |
Extension | Experimental |
az datashare invitation |
Manage invitation with datashare. |
Extension | Experimental |
az datashare invitation create |
Create an invitation. |
Extension | Experimental |
az datashare invitation delete |
Delete an invitation in a share. |
Extension | Experimental |
az datashare invitation list |
List invitations in a share. |
Extension | Experimental |
az datashare invitation show |
Get an invitation in a share. |
Extension | Experimental |
az datashare list |
List shares in an account. |
Extension | Experimental |
az datashare list-synchronization |
List synchronizations of a share. |
Extension | Experimental |
az datashare list-synchronization-detail |
List synchronization details. |
Extension | Experimental |
az datashare provider-share-subscription |
Manage provider share subscription with datashare. |
Extension | Experimental |
az datashare provider-share-subscription adjust |
Adjust a share subscription's expiration date in a provider share. |
Extension | Experimental |
az datashare provider-share-subscription list |
List share subscriptions in a provider share. |
Extension | Experimental |
az datashare provider-share-subscription reinstate |
Reinstate share subscription in a provider share. |
Extension | Experimental |
az datashare provider-share-subscription revoke |
Revoke share subscription in a provider share. |
Extension | Experimental |
az datashare provider-share-subscription show |
Get share subscription in a provider share. |
Extension | Experimental |
az datashare provider-share-subscription wait |
Place the CLI in a waiting state until a condition of the datashare provider-share-subscription is met. |
Extension | Experimental |
az datashare share-subscription |
Manage share subscription with datashare. |
Extension | Experimental |
az datashare share-subscription cancel-synchronization |
Request to cancel a synchronization. |
Extension | Experimental |
az datashare share-subscription create |
Create a shareSubscription in an account. |
Extension | Experimental |
az datashare share-subscription delete |
Delete a shareSubscription in an account. |
Extension | Experimental |
az datashare share-subscription list |
List share subscriptions in an account. |
Extension | Experimental |
az datashare share-subscription list-source-share-synchronization-setting |
Get synchronization settings set on a share. |
Extension | Experimental |
az datashare share-subscription list-synchronization |
List synchronizations of a share subscription. |
Extension | Experimental |
az datashare share-subscription list-synchronization-detail |
List synchronization details. |
Extension | Experimental |
az datashare share-subscription show |
Get a shareSubscription in an account. |
Extension | Experimental |
az datashare share-subscription synchronize |
Initiate a copy. |
Extension | Experimental |
az datashare share-subscription wait |
Place the CLI in a waiting state until a condition of the datashare share-subscription is met. |
Extension | Experimental |
az datashare show |
Get a share. |
Extension | Experimental |
az datashare synchronization-setting |
Manage synchronization setting with datashare. |
Extension | Experimental |
az datashare synchronization-setting create |
Create a synchronizationSetting. |
Extension | Experimental |
az datashare synchronization-setting delete |
Delete a synchronizationSetting in a share. |
Extension | Experimental |
az datashare synchronization-setting list |
List synchronizationSettings in a share. |
Extension | Experimental |
az datashare synchronization-setting show |
Get a synchronizationSetting in a share. |
Extension | Experimental |
az datashare synchronization-setting wait |
Place the CLI in a waiting state until a condition of the datashare synchronization-setting is met. |
Extension | Experimental |
az datashare trigger |
Manage trigger with datashare. |
Extension | Experimental |
az datashare trigger create |
Create a Trigger. |
Extension | Experimental |
az datashare trigger delete |
Delete a Trigger in a shareSubscription. |
Extension | Experimental |
az datashare trigger list |
List Triggers in a share subscription. |
Extension | Experimental |
az datashare trigger show |
Get a Trigger in a shareSubscription. |
Extension | Experimental |
az datashare trigger wait |
Place the CLI in a waiting state until a condition of the datashare trigger is met. |
Extension | Experimental |
az datashare wait |
Place the CLI in a waiting state until a condition of the datashare is met. |
Extension | Experimental |
az datashare create
Command group 'datashare' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Create a share.
az datashare create --account-name
--name
--resource-group
[--description]
[--share-kind {CopyBased, InPlace}]
[--terms]
Examples
Shares_Create
az datashare create --account-name "Account1" --resource-group "SampleResourceGroup" --description "share description" --share-kind "CopyBased" --terms "Confidential" --name "Share1"
Required Parameters
The name of the share account.
The name of the share.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Share description.
Share kind.
Share terms.
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.
az datashare delete
Command group 'datashare' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Delete a share.
az datashare delete [--account-name]
[--ids]
[--name]
[--no-wait]
[--resource-group]
[--subscription]
[--yes]
Examples
Shares_Delete
az datashare delete --account-name "Account1" --resource-group "SampleResourceGroup" --name "Share1"
Optional Parameters
The name of the share account.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
The name of the share.
Do not wait for the long-running operation to finish.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Do not prompt for confirmation.
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.
az datashare list
Command group 'datashare' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List shares in an account.
az datashare list --account-name
--resource-group
[--filter]
[--orderby]
[--skip-token]
Examples
Shares_ListByAccount
az datashare list --account-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
Filters the results using OData syntax.
Sorts the results using OData syntax.
Continuation Token.
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.
az datashare list-synchronization
Command group 'datashare' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List synchronizations of a share.
az datashare list-synchronization --account-name
--name
--resource-group
[--filter]
[--orderby]
[--skip-token]
Examples
Shares_ListSynchronizations
az datashare list-synchronization --account-name "Account1" --resource-group "SampleResourceGroup" --name "Share1"
Required Parameters
The name of the share account.
The name of the share.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Filters the results using OData syntax.
Sorts the results using OData syntax.
Continuation token.
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.
az datashare list-synchronization-detail
Command group 'datashare' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List synchronization details.
az datashare list-synchronization-detail --account-name
--name
--resource-group
[--consumer-email]
[--consumer-name]
[--consumer-tenant-name]
[--duration-ms]
[--end-time]
[--filter]
[--message]
[--orderby]
[--skip-token]
[--start-time]
[--status]
[--synchronization-id]
Examples
Shares_ListSynchronizationDetails
az datashare list-synchronization-detail --account-name "Account1" --resource-group "SampleResourceGroup" --name "Share1" --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"
Required Parameters
The name of the share account.
The name of the share.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Email of the user who created the synchronization.
Name of the user who created the synchronization.
Tenant name of the consumer who created the synchronization.
Synchronization duration.
End time of synchronization.
Filters the results using OData syntax.
Message of synchronization.
Sorts the results using OData syntax.
Continuation token.
Start time of synchronization.
Raw Status.
Synchronization id.
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.
az datashare show
Command group 'datashare' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Get a share.
az datashare show [--account-name]
[--ids]
[--name]
[--resource-group]
[--subscription]
Examples
Shares_Get
az datashare show --account-name "Account1" --resource-group "SampleResourceGroup" --name "Share1"
Optional Parameters
The name of the share account.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
The name of the share to retrieve.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.
az datashare wait
Command group 'datashare' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Place the CLI in a waiting state until a condition of the datashare is met.
az datashare wait [--account-name]
[--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--name]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
Examples
Pause executing next line of CLI script until the datashare is successfully deleted.
az datashare wait --account-name "Account1" --resource-group "SampleResourceGroup" --name "Share1" --deleted
Optional Parameters
The name of the share account.
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.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Polling interval in seconds.
The name of the share to retrieve.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Maximum wait in seconds.
Wait until updated with provisioningState at 'Succeeded'.
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