Skip to content

Commit f0c0309

Browse files
author
BradleyBartlett
committed
Fix logic for confirming Azure environment
1 parent aa50245 commit f0c0309

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Registration/RegisterWithAzure.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,7 @@ function Get-AzureAccountInfo{
13401340
Tenant = $AzureContext.Tenant
13411341
}
13421342

1343-
if (($AzureContext.Environment.name -ne 'AzureChinaCloud') -or ($AzureContext.Environment.name -ne 'AzureUsGovernment'))
1343+
if (($AzureContext.Environment.name -ne 'AzureChinaCloud') -and ($AzureContext.Environment.name -ne 'AzureUsGovernment'))
13441344
{
13451345
if ($AzureContext.Environment.name -ne 'AzureCloud')
13461346
{

0 commit comments

Comments
 (0)