Skip to content

Commit fd20e11

Browse files
author
Jeff Bowles
committed
change to connection
1 parent a4bbd16 commit fd20e11

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Archive-AzureRMvm.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,11 @@ if($OptionalEnvironment -and (Get-AzureRMEnvironment -Name $OptionalEnvironment)
236236
write-host "Enter credentials for the Azure Subscription..." -f Yellow
237237
if($OptionalEnvironment)
238238
{
239-
$login= Login-AzureRmAccount -EnvironmentName $OptionalEnvironment
239+
$login= Connect-AzureRmAccount -EnvironmentName $OptionalEnvironment
240240
}
241241
else
242242
{
243-
$login= Login-AzureRmAccount
243+
$login= Connect-AzureRmAccount
244244
}
245245

246246
$loginID = $login.context.account.id

Backup-AzureRMvm.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ function copy-azureBlob
159159

160160
# get Azure creds
161161
write-host "Enter credentials for your Azure Subscription..." -F Yellow
162-
$login= Login-AzureRmAccount -EnvironmentName $Environment
162+
$login= Connect-AzureRmAccount -EnvironmentName $Environment
163163
$loginID = $login.context.account.id
164164
$sub = Get-AzureRmSubscription
165165
$SubscriptionId = $sub.Id

Clone-AzureRMresourceGroup.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,11 @@ if($Environment -and (Get-AzureRMEnvironment -Name $Environment) -eq $null)
284284
write-host "Enter credentials for your Azure Subscription..." -f Yellow
285285
if($Environment)
286286
{
287-
$login= Login-AzureRmAccount -EnvironmentName $Environment
287+
$login= Connect-AzureRmAccount -EnvironmentName $Environment
288288
}
289289
else
290290
{
291-
$login= Login-AzureRmAccount
291+
$login= Connect-AzureRmAccount
292292
}
293293
$loginID = $login.context.account.id
294294
$sub = Get-AzureRmSubscription

Restore-AzureRMvm.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ function copy-azureBlob
167167

168168
# get Azure creds
169169
write-host "Enter credentials for your Azure Subscription..." -F Yellow
170-
$login= Login-AzureRmAccount -EnvironmentName $Environment
170+
$login= Connect-AzureRmAccount -EnvironmentName $Environment
171171
$loginID = $login.context.account.id
172172
$sub = Get-AzureRmSubscription
173173
$SubscriptionId = $sub.Id

0 commit comments

Comments
 (0)