az sig share

Manage gallery sharing profile.

Commands

az sig share add

Share gallery with subscriptions and tenants.

az sig share enable-community

Allow to share gallery to the community.

az sig share remove

Stop sharing gallery with a subscription or tenant.

az sig share reset

Disable gallery from being shared with subscription or tenant.

az sig share wait

Place the CLI in a waiting state until a condition of a shared gallery is met.

az sig share add

Share gallery with subscriptions and tenants.

az sig share add [--gallery-name]
                 [--ids]
                 [--no-wait]
                 [--resource-group]
                 [--subscription]
                 [--subscription-ids]
                 [--tenant-ids]

Examples

Share entire gallery with all members of a subscription and/or tenant.

az sig share add --resource-group MyResourceGroup --gallery-name MyGallery \
--subscription-ids subId1 subId2 --tenant-ids tenantId1 tenantId2

Optional Parameters

--gallery-name -r

The name of the Shared Image Gallery.

--ids

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.

--no-wait

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

default value: False
--resource-group -g

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

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--subscription-ids

A list of subscription ids to share the gallery.

--tenant-ids

A list of tenant ids to share the gallery.

az sig share enable-community

Allow to share gallery to the community.

az sig share enable-community [--gallery-name]
                              [--ids]
                              [--no-wait]
                              [--resource-group]
                              [--subscription]
                              [--subscription-ids]
                              [--tenant-ids]

Examples

Allow to share gallery to the community

az sig share enable-community --resource-group MyResourceGroup --gallery-name MyGallery

Optional Parameters

--gallery-name -r

The name of the Shared Image Gallery.

--ids

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.

--no-wait

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

default value: False
--resource-group -g

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

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--subscription-ids

A list of subscription ids to share the gallery.

--tenant-ids

A list of tenant ids to share the gallery.

az sig share remove

Stop sharing gallery with a subscription or tenant.

az sig share remove [--gallery-name]
                    [--ids]
                    [--no-wait]
                    [--resource-group]
                    [--subscription]
                    [--subscription-ids]
                    [--tenant-ids]

Examples

Stop sharing with a subscription or tenant ID

az sig share remove --resource-group MyResourceGroup --gallery-name MyGallery \
--subscription-ids subId1 subId2 --tenant-ids tenantId1 tenantId2

Optional Parameters

--gallery-name -r

The name of the Shared Image Gallery.

--ids

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.

--no-wait

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

default value: False
--resource-group -g

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

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--subscription-ids

A list of subscription ids to share the gallery.

--tenant-ids

A list of tenant ids to share the gallery.

az sig share reset

Disable gallery from being shared with subscription or tenant.

az sig share reset [--gallery-name]
                   [--ids]
                   [--no-wait]
                   [--resource-group]
                   [--subscription]

Examples

Reset sharing profile of a gallery.

az sig share reset --resource-group MyResourceGroup --gallery-name MyGallery

Optional Parameters

--gallery-name -r

The name of the Shared Image Gallery.

--ids

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.

--no-wait

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

default value: False
--resource-group -g

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

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az sig share wait

Place the CLI in a waiting state until a condition of a shared gallery is met.

az sig share wait --gallery-name
                  --resource-group
                  [--created]
                  [--custom]
                  [--deleted]
                  [--exists]
                  [--interval]
                  [--timeout]
                  [--updated]

Examples

Place the CLI in a waiting state until the gallery sharing object is updated.

az sig share wait --updated --resource-group MyResourceGroup --gallery-name Gallery

Required Parameters

--gallery-name -r

Gallery name.

--resource-group -g

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

Optional Parameters

--created

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

default value: False
--custom

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

--deleted

Wait until deleted.

default value: False
--exists

Wait until the resource exists.

default value: False
--interval

Polling interval in seconds.

default value: 30
--timeout

Maximum wait in seconds.

default value: 3600
--updated

Wait until updated with provisioningState at 'Succeeded'.

default value: False