From f737bff067b35cee5ddfacef64894c76c1f7b861 Mon Sep 17 00:00:00 2001 From: Matthew Garrett Date: Fri, 23 Jun 2023 21:44:41 -0700 Subject: [PATCH] Fixed error with Connect-MgGraph call in Deployment script --- deploy/deploy.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/deploy.ps1 b/deploy/deploy.ps1 index 2a96b67..4fd4f93 100644 --- a/deploy/deploy.ps1 +++ b/deploy/deploy.ps1 @@ -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) {