We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9eb4bd commit 50d5225Copy full SHA for 50d5225
1 file changed
samples/manage/azure-sql-db-managed-instance/prepare-subnet/prepareSubnet.ps1
@@ -12,7 +12,7 @@ function Ensure-Login ()
12
If($context.Subscription -eq $null)
13
{
14
Write-Host "Loging in ..."
15
- If((Login-AzureRmAccount -ErrorAction SilentlyContinue -ErrorVariable $error) -eq $null)
+ If((Login-AzureRmAccount -ErrorAction SilentlyContinue) -eq $null)
16
17
Write-Host "Login failed: $error" -ForegroundColor Red
18
Exit
0 commit comments