az datashare provider-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 provider-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 provider share subscription with datashare.
Commands
Name | Description | Type | Status |
---|---|---|---|
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 provider-share-subscription adjust
Command group 'datashare' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Adjust a share subscription's expiration date in a provider share.
az datashare provider-share-subscription adjust [--account-name]
[--expiration-date]
[--ids]
[--provider-share-subscription-id]
[--resource-group]
[--share-name]
[--subscription]
Examples
ProviderShareSubscriptions_Adjust
az datashare provider-share-subscription adjust --account-name "Account1" --expiration-date "2020-12-26T22:33:24.5785265Z" --provider-share-subscription-id "4256e2cf-0f82-4865-961b-12f83333f487" --resource-group "SampleResourceGroup" --share-name "Share1"
Optional Parameters
The name of the share account.
Expiration date of the share subscription in UTC format.
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.
To locate shareSubscription.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of the share.
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 provider-share-subscription list
Command group 'datashare' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List share subscriptions in a provider share.
az datashare provider-share-subscription list --account-name
--resource-group
--share-name
[--skip-token]
Examples
ProviderShareSubscriptions_ListByShare
az datashare provider-share-subscription list --account-name "Account1" --resource-group "SampleResourceGroup" --share-name "Share1"
Required Parameters
The name of the share account.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of the share.
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 provider-share-subscription reinstate
Command group 'datashare' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Reinstate share subscription in a provider share.
az datashare provider-share-subscription reinstate [--account-name]
[--expiration-date]
[--ids]
[--provider-share-subscription-id]
[--resource-group]
[--share-name]
[--subscription]
Examples
ProviderShareSubscriptions_Reinstate
az datashare provider-share-subscription reinstate --account-name "Account1" --expiration-date "2020-12-26T22:33:24.5785265Z" --provider-share-subscription-id "4256e2cf-0f82-4865-961b-12f83333f487" --resource-group "SampleResourceGroup" --share-name "Share1"
Optional Parameters
The name of the share account.
Expiration date of the share subscription in UTC format.
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.
To locate shareSubscription.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of the share.
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 provider-share-subscription revoke
Command group 'datashare' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Revoke share subscription in a provider share.
az datashare provider-share-subscription revoke [--account-name]
[--ids]
[--no-wait]
[--provider-share-subscription-id]
[--resource-group]
[--share-name]
[--subscription]
Examples
ProviderShareSubscriptions_Revoke
az datashare provider-share-subscription revoke --account-name "Account1" --provider-share-subscription-id "4256e2cf-0f82-4865-961b-12f83333f487" --resource-group "SampleResourceGroup" --share-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.
Do not wait for the long-running operation to finish.
To locate shareSubscription.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of the share.
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 provider-share-subscription show
Command group 'datashare' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Get share subscription in a provider share.
az datashare provider-share-subscription show [--account-name]
[--ids]
[--provider-share-subscription-id]
[--resource-group]
[--share-name]
[--subscription]
Examples
ProviderShareSubscriptions_GetByShare
az datashare provider-share-subscription show --account-name "Account1" --provider-share-subscription-id "4256e2cf-0f82-4865-961b-12f83333f487" --resource-group "SampleResourceGroup" --share-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.
To locate shareSubscription.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of the share.
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 provider-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 provider-share-subscription is met.
az datashare provider-share-subscription wait [--account-name]
[--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--provider-share-subscription-id]
[--resource-group]
[--share-name]
[--subscription]
[--timeout]
[--updated]
Examples
Pause executing next line of CLI script until the datashare provider-share-subscription is successfully created.
az datashare provider-share-subscription wait --account-name "Account1" --provider-share-subscription-id "4256e2cf-0f82-4865-961b-12f83333f487" --resource-group "SampleResourceGroup" --share-name "Share1" --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.
To locate shareSubscription.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of the share.
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.