az datashare provider-share-subscription

Commands for providers to manage datashare share subscriptions.

Commands

az datashare provider-share-subscription list

List share subscriptions in a provider share.

az datashare provider-share-subscription reinstate

Reinstate a share subscription in a provider share.

az datashare provider-share-subscription revoke

Revoke a share subscription in a provider share.

az datashare provider-share-subscription show

Show a share subscription in a provider share.

az datashare provider-share-subscription wait

Place the CLI in a waiting state until a condition of the datashare provider share subscription is met.

az datashare provider-share-subscription list

List share subscriptions in a provider share.

az datashare provider-share-subscription list --account-name
                                              --resource-group
                                              --share-name

Examples

List share subscriptions

az datashare provider-share-subscription list --account-name MyAccount --resource-group MyResourceGroup --share-name MyShare

Required Parameters

--account-name

The name of the share account.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--share-name

The name of the share.

az datashare provider-share-subscription reinstate

Reinstate a share subscription in a provider share.

az datashare provider-share-subscription reinstate --account-name
                                                   --resource-group
                                                   --share-name
                                                   --share-subscription

Examples

Reinstate a share subscription

az datashare provider-share-subscription reinstate --account-name MyAccount --share-subscription 00000000-0000-0000-0000-000000000000 --resource-group MyResourceGroup --share-name MyShare

Required Parameters

--account-name

The name of the share account.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--share-name

The name of the share.

--share-subscription

To locate share subscription.

az datashare provider-share-subscription revoke

Revoke a share subscription in a provider share.

az datashare provider-share-subscription revoke --account-name
                                                --resource-group
                                                --share-name
                                                --share-subscription
                                                [--no-wait]

Examples

Revoke a share subscription

az datashare provider-share-subscription revoke --account-name MyAccount --share-subscription 00000000-0000-0000-0000-000000000000 --resource-group MyResourceGroup --share-name MyShare

Required Parameters

--account-name

The name of the share account.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--share-name

The name of the share.

--share-subscription

To locate share subscription.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

az datashare provider-share-subscription show

Show a share subscription in a provider share.

az datashare provider-share-subscription show --account-name
                                              --resource-group
                                              --share-name
                                              --share-subscription

Examples

Show a share subscription

az datashare provider-share-subscription show --account-name MyAccount --share-subscription 00000000-0000-0000-0000-000000000000 --resource-group MyResourceGroup --share-name MyShare

Required Parameters

--account-name

The name of the share account.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--share-name

The name of the share.

--share-subscription

To locate share subscription.

az datashare provider-share-subscription wait

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
                                              --resource-group
                                              --share-name
                                              --share-subscription
                                              [--created]
                                              [--custom]
                                              [--deleted]
                                              [--exists]
                                              [--interval]
                                              [--timeout]
                                              [--updated]

Examples

Pause executing next line of CLI script until the datashare provider share subscription is successfully provisioned.

az datashare provider-share-subscription wait --account-name MyAccount --share-subscription 00000000-0000-0000-0000-000000000000 --resource-group MyResourceGroup --share-name MyShare --created

Required Parameters

--account-name

The name of the share account.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--share-name

The name of the share.

--share-subscription

To locate share subscription.

Optional Parameters

--created

Wait until created with 'provisioningState' at 'Succeeded'.

--custom

Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].

--deleted

Wait until deleted.

--exists

Wait until the resource exists.

--interval

Polling interval in seconds.

default value: 30
--timeout

Maximum wait in seconds.

default value: 3600
--updated

Wait until updated with provisioningState at 'Succeeded'.