Skip to content

Commit

Permalink
WhatIf false for Set-AzContext (#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
daltondhcp authored Jul 29, 2021
1 parent 52a82b1 commit 799b47a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/functions/Set-AzOpsContext.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

if ($context.Subscription.Id -ne $ScopeObject.Subscription) {
Write-PSFMessage -String 'Set-AzOpsContext.Change' -StringValues $context.Subscription.Name, $ScopeObject.SubscriptionDisplayName, $ScopeObject.Subscription
Set-AzContext -SubscriptionId $scopeObject.Subscription
Set-AzContext -SubscriptionId $scopeObject.Subscription -WhatIf:$false
}
}
}

0 comments on commit 799b47a

Please sign in to comment.