Skip to content

Commit 50d5225

Browse files
fix
1 parent e9eb4bd commit 50d5225

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

samples/manage/azure-sql-db-managed-instance/prepare-subnet/prepareSubnet.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function Ensure-Login ()
1212
If($context.Subscription -eq $null)
1313
{
1414
Write-Host "Loging in ..."
15-
If((Login-AzureRmAccount -ErrorAction SilentlyContinue -ErrorVariable $error) -eq $null)
15+
If((Login-AzureRmAccount -ErrorAction SilentlyContinue) -eq $null)
1616
{
1717
Write-Host "Login failed: $error" -ForegroundColor Red
1818
Exit

0 commit comments

Comments
 (0)