Skip to content

Loop though multiples tenants with Connect-AzAccount #28421

Discussion options

You must be logged in to vote

Why don't you connect once and use Select-AzSubscription -Tenant $sub.TenantId -Subscription $sub.SubscriptionId in your loop ? If your account has permissions to all tenant, then you don't need to log in every time .

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mfortin
Comment options

@maxime-tosolini-apsia
Comment options

Answer selected by maxime-tosolini-apsia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants