-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
ComputeService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.feature-requestThis issue requires a new behavior in the product in order be resolved.This issue requires a new behavior in the product in order be resolved.
Description
Description of the new feature
GalleryIdentity is already part of the API spec as of 2025-03-03. Here is an example if it being used for CREATE and GET.
Its also part of the SDK
Az.Powershell cmdlets New-AzGallery, Get-AzGallery, Update-AzGallery cannot access or set this property as of now.
GalleryIdentity can be one of System Assigned or User Assigned identities and can be accessed with AZ Powershell. Additionally, GalleryIdentity can also contain a list of User Assigned Managed Identities.
Here are the changes proposed for each cmdlet
- New-AzGallery should include new optional parameter
[-UserAssignedIdentities <PSObject[]>]: should accept a list/collection of User Assigned Identity PSObject(s). It should map to gallery.identity.userAssignedIdentities as shown in the API example. Its PSObject type should be the same as Get-AzUserAssignedIdentity. - Get-AzGallery output should contain the "identity" field of type GalleryIdentiy as defined in the spec.
- Update-AzGallery needs no change in parameters, but should be able to correctly process -InputObject if it contains the "identity" field of type GalleryIdentiy
- PSObject that is the output of Get-AzGallery should also be able to be directly assigned the outputs of Get-AzUserAssignedIdentity. for example,
$uid1 = Get-AzUserAssignedIdentity -ResourceGroupName "myRGName" -Name "id1"
$uid2 = Get-AzUserAssignedIdentity -ResourceGroupName "myRGName" -Name "id2"
$uid3 = Get-AzUserAssignedIdentity -ResourceGroupName "myRGName" -Name "id3"
$gallery = Get-AzGallery -ResourceGroupName "myRGName" -Name "myGallery"
$gallery.identity.userAssignedIdentities = @($uid1, @uid2, @uid3)
Update-AzGallery -InputObject $gallery
Proposed implementation details (optional)
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ComputeService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.feature-requestThis issue requires a new behavior in the product in order be resolved.This issue requires a new behavior in the product in order be resolved.