az datashare share-subscription
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 share-subscription command. Learn more about extensions.
Command group 'datashare' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage share subscription with datashare.
Commands
Name | Description | Type | Status |
---|---|---|---|
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 share-subscription cancel-synchronization
Command group 'datashare' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Request to cancel a synchronization.
az datashare share-subscription cancel-synchronization --synchronization-id
[--account-name]
[--ids]
[--name]
[--no-wait]
[--resource-group]
[--subscription]
Examples
ShareSubscriptions_CancelSynchronization
az datashare share-subscription cancel-synchronization --account-name "Account1" --resource-group "SampleResourceGroup" --name "ShareSubscription1" --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"
Required Parameters
Synchronization id.
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 shareSubscription.
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
.
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 share-subscription create
Command group 'datashare' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Create a shareSubscription in an account.
az datashare share-subscription create --account-name
--invitation-id
--name
--resource-group
--source-share-location
[--expiration-date]
Examples
ShareSubscriptions_Create
az datashare share-subscription create --account-name "Account1" --resource-group "SampleResourceGroup" --expiration-date "2020-08-26T22:33:24.5785265Z" --invitation-id "12345678-1234-1234-12345678abd" --source-share-location "eastus2" --name "ShareSubscription1"
Required Parameters
The name of the share account.
The invitation id.
The name of the shareSubscription.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Source share location.
Optional Parameters
The expiration date of the share subscription.
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 share-subscription delete
Command group 'datashare' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Delete a shareSubscription in an account.
az datashare share-subscription delete [--account-name]
[--ids]
[--name]
[--no-wait]
[--resource-group]
[--subscription]
[--yes]
Examples
ShareSubscriptions_Delete
az datashare share-subscription delete --account-name "Account1" --resource-group "SampleResourceGroup" --name "ShareSubscription1"
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 shareSubscription.
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 share-subscription list
Command group 'datashare' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List share subscriptions in an account.
az datashare share-subscription list --account-name
--resource-group
[--filter]
[--orderby]
[--skip-token]
Examples
ShareSubscriptions_ListByAccount
az datashare share-subscription 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 share-subscription list-source-share-synchronization-setting
Command group 'datashare' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Get synchronization settings set on a share.
az datashare share-subscription list-source-share-synchronization-setting --account-name
--name
--resource-group
[--skip-token]
Examples
ShareSubscriptions_ListSourceShareSynchronizationSettings
az datashare share-subscription list-source-share-synchronization-setting --account-name "Account1" --resource-group "SampleResourceGroup" --name "ShareSub1"
Required Parameters
The name of the share account.
The name of the shareSubscription.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
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 share-subscription list-synchronization
Command group 'datashare' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List synchronizations of a share subscription.
az datashare share-subscription list-synchronization --account-name
--name
--resource-group
[--filter]
[--orderby]
[--skip-token]
Examples
ShareSubscriptions_ListSynchronizations
az datashare share-subscription list-synchronization --account-name "Account1" --resource-group "SampleResourceGroup" --name "ShareSub1"
Required Parameters
The name of the share account.
The name of the share subscription.
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 share-subscription 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 share-subscription list-synchronization-detail --account-name
--name
--resource-group
--synchronization-id
[--filter]
[--orderby]
[--skip-token]
Examples
ShareSubscriptions_ListSynchronizationDetails
az datashare share-subscription list-synchronization-detail --account-name "Account1" --resource-group "SampleResourceGroup" --name "ShareSub1" --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"
Required Parameters
The name of the share account.
The name of the share subscription.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Synchronization id.
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 share-subscription show
Command group 'datashare' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Get a shareSubscription in an account.
az datashare share-subscription show [--account-name]
[--ids]
[--name]
[--resource-group]
[--subscription]
Examples
ShareSubscriptions_Get
az datashare share-subscription show --account-name "Account1" --resource-group "SampleResourceGroup" --name "ShareSubscription1"
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 shareSubscription.
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 share-subscription synchronize
Command group 'datashare' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Initiate a copy.
az datashare share-subscription synchronize [--account-name]
[--ids]
[--name]
[--no-wait]
[--resource-group]
[--subscription]
[--synchronization-mode {FullSync, Incremental}]
Examples
ShareSubscriptions_Synchronize
az datashare share-subscription synchronize --account-name "Account1" --resource-group "SampleResourceGroup" --name "ShareSubscription1" --synchronization-mode "Incremental"
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 share subscription.
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
.
Mode of synchronization used in triggers and snapshot sync. Incremental by default.
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 share-subscription 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 share-subscription is met.
az datashare share-subscription 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 share-subscription is successfully deleted.
az datashare share-subscription wait --account-name "Account1" --resource-group "SampleResourceGroup" --name "ShareSubscription1" --deleted
Pause executing next line of CLI script until the datashare share-subscription is successfully created.
az datashare share-subscription wait --account-name "Account1" --resource-group "SampleResourceGroup" --name "ShareSubscription1" --created
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 shareSubscription.
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.