From 9b2ca84ea1bae2c1b807dcbc058f36e3daa0afd3 Mon Sep 17 00:00:00 2001 From: Pierre Audonnet Date: Fri, 7 Jun 2024 14:09:44 -0400 Subject: [PATCH] Update GrantPermissions.ps1 --- Deploy/GrantPermissions.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Deploy/GrantPermissions.ps1 b/Deploy/GrantPermissions.ps1 index e2b2ff0..c528c19 100644 --- a/Deploy/GrantPermissions.ps1 +++ b/Deploy/GrantPermissions.ps1 @@ -80,7 +80,7 @@ Write-Host "[+] Connecting to to the Azure subscription: $AzureSubscriptionId" try { if ( $DeviceCodeFlow -eq $true ) { - Connect-AzAccount -Subscription $AzureSubscriptionId -Tenant $TenantId -ErrorAction Stop -UseDeviceAuthentication + Connect-AzAccount -Subscription $AzureSubscriptionId -Tenant $TenantId -ErrorAction Stop -UseDeviceAuthentication | Out-Null } else { Login-AzAccount -Subscription $AzureSubscriptionId -Tenant $TenantId -ErrorAction Stop | Out-Null }