-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Open
Labels
needs-triageThis is a new issue that needs to be triaged to the appropriate team.This is a new issue that needs to be triaged to the appropriate team.
Description
Type of issue
Code doesn't work
Feedback
https://learn.microsoft.com/en-us/powershell/module/az.compute/update-azgallery?view=azps-15.4.0
this example shows
Update-AzGallery -ResourceGroupName $rgname -Name $galleryName -Permission Groups -Share -Tenant xxxxxxxx-xxx-xxxxxxx,zzzzzz-zzzzzzz-zzzzzz
that tenantIds should be comma separated values, but it doesn't work like it shows
I have got it to work by passing a string[]
for example
$tenantIds = @( 'xxxxxxxx-xxx-xxxxxxx'; 'zzzzzz-zzzzzzz-zzzzzz')
Update-AzGallery -ResourceGroupName $rgname -Name $galleryName -Permission Groups -Share -Tenant $tenantIdsworks, but
$tenantIds = @( 'xxxxxxxx-xxx-xxxxxxx'; 'zzzzzz-zzzzzzz-zzzzzz')
Update-AzGallery -ResourceGroupName $rgname -Name $galleryName -Permission Groups -Share -Tenant $($tenantIds -join ',')doesn't work
Page URL
https://learn.microsoft.com/en-us/powershell/module/az.compute/update-azgallery?view=azps-15.4.0
Content source URL
No response
Author
No response
Document Id
No response
Platform Id
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
needs-triageThis is a new issue that needs to be triaged to the appropriate team.This is a new issue that needs to be triaged to the appropriate team.