Update-AzGallery
Update a gallery.
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
Syntax
Update-AzGallery
[-ResourceGroupName] <String>
[-Name] <String>
[-AsJob]
[-Description <String>]
[-Tag <Hashtable>]
[-Permission <String>]
[-Subscription <String[]>]
[-Tenant <String[]>]
[-RemoveSubscription <String[]>]
[-RemoveTenant <String[]>]
[-Share]
[-Reset]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzGallery
[-ResourceId] <String>
[-AsJob]
[-Description <String>]
[-Tag <Hashtable>]
[-Permission <String>]
[-Subscription <String[]>]
[-Tenant <String[]>]
[-RemoveSubscription <String[]>]
[-RemoveTenant <String[]>]
[-Share]
[-Reset]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzGallery
[-InputObject] <PSGallery>
[-AsJob]
[-Description <String>]
[-Tag <Hashtable>]
[-Permission <String>]
[-Subscription <String[]>]
[-Tenant <String[]>]
[-RemoveSubscription <String[]>]
[-RemoveTenant <String[]>]
[-Share]
[-Reset]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Update a gallery.
Examples
Example 1
Update-AzGallery -ResourceGroupName $rgname -Name $galleryName -Description $galleryDescription
Update a gallery.
Example 2
PS C:\> Update-AzGallery -ResourceGroupName $rgname -Name $galleryName -Permission Groups -Share -Tenant xxxxxxxx-xxx-xxxxxxx,zzzzzz-zzzzzzz-zzzzzz
Update a gallery to be shared and add two subscriptions it is to be shared with.
Parameters
Run cmdlet in the background
| Type: | SwitchParameter |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Prompts you for confirmation before running the cmdlet.
| Type: | SwitchParameter |
| Aliases: | cf |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The credentials, account, tenant, and subscription used for communication with Azure.
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The description of the gallery resource.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
The PS Gallery Object.
| Type: | PSGallery |
| Aliases: | Gallery |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
The name of the gallery.
| Type: | String |
| Aliases: | GalleryName |
| Position: | 1 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
This property allows you to specify the permission of the sharing gallery. Possible values are: 'Private' and 'Groups'.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
A list of subscription IDs the gallery will stop sharing to.
| Type: | String[] |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
A list of tenant IDs the gallery will stop sharing to.
| Type: | String[] |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Resets the sharing permission of the gallery to 'Private'.
| Type: | SwitchParameter |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
The name of the resource group.
| Type: | String |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
The resource Id for the gallery
| Type: | String |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Update sharing profile of the gallery.
| Type: | SwitchParameter |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
A list of subscription IDs the gallery is aimed to be shared to.
| Type: | String[] |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Resource tags
| Type: | Hashtable |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
A list of tenant IDs the gallery is aimed to be shared to.
| Type: | String[] |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
| Type: | SwitchParameter |
| Aliases: | wi |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |