Fixed error with Connect-MgGraph call in Deployment script

This commit is contained in:
Matthew Garrett 2023-06-23 21:44:41 -07:00
Родитель ef16291ae9
Коммит f737bff067
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -517,7 +517,7 @@ process {
# Connect to Microsoft Graph
Write-Host "INFO: Logging in to Microsoft Graph" -ForegroundColor Green
Write-Verbose -Message "Logging in to Microsoft Graph"
Connect-MgGraph -Environment $msGraphMap[$AzureCloud].Endpoint -AccessToken $accesstoken | Out-Null
Connect-MgGraph -Environment $msGraphMap[$AzureCloud].Environment -AccessToken $accesstoken | Out-Null
# Fetch Azure IPAM UI Service Principal (If not deployed as Function App)
if (-not $AsFunction) {