Skip to content

Commit

Permalink
Update Initialize-AzOpsEnvironment.ps1 (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljtill authored Apr 16, 2021
1 parent 8233958 commit c95e080
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/functions/Initialize-AzOpsEnvironment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
$rootPermissions = Get-AzRoleAssignment -ObjectId (Get-AzADServicePrincipal -ApplicationId $currentAzContext.Account.Id).Id -Scope "/" -ErrorAction SilentlyContinue
}
if (-not $rootPermissions) {
Write-PSFMessage -Level Warning -String 'Initialize-AzOpsEnvironment.ManagementGroup.NoRootPermissions' -StringValues $currentAzContext.Account.Id
Write-PSFMessage -String 'Initialize-AzOpsEnvironment.ManagementGroup.NoRootPermissions' -StringValues $currentAzContext.Account.Id
$PartialMgDiscovery = $true
}
#endregion Validate root '/' permissions
Expand Down Expand Up @@ -136,4 +136,4 @@
Write-PSFMessage -String 'Initialize-AzOpsEnvironment.Processing.Completed'
}

}
}

0 comments on commit c95e080

Please sign in to comment.