diff --git a/src/internal/functions/Set-AzOpsContext.ps1 b/src/internal/functions/Set-AzOpsContext.ps1 index 29013f55..12b4b0ee 100644 --- a/src/internal/functions/Set-AzOpsContext.ps1 +++ b/src/internal/functions/Set-AzOpsContext.ps1 @@ -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 } } } \ No newline at end of file