Skip to content

[Doc]: Update-AzGallery -Tenant has incorrect documentation #29302

@D1v38om83r

Description

@D1v38om83r

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 $tenantIds

works, 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageThis is a new issue that needs to be triaged to the appropriate team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions