You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Start-AzureV2VM.ps1
+40-38
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
6
6
.DESCRIPTION
7
7
Uses PowerShell workflow to start all VMs in parallel. Includes a retry and wait cycle to display when VMs are started.
8
-
Workflow sessions require Azure authentication into each session so this script uses a splatting of parameters required for Login-AzureRmAccount that
8
+
Workflow sessions require Azure authentication into each session so this script uses a splatting of parameters required for Connect-AzureRmAccount that
9
9
can be passed to each session. Recommend using the New-AzureServicePrincipal script to create the required service principal and associated ApplicationId
10
10
and certificate thumbprint required to log into Azure with the -servicePrincipal flag
11
11
@@ -89,50 +89,56 @@ $loginParams = @{
89
89
90
90
$ProgressPreference='SilentlyContinue'
91
91
92
-
if ((Get-Module AzureRM.profile).Version -lt"2.1.0")
93
-
{
94
-
Write-warning"Old Version of Azure Modules $((Get-Module AzureRM.profile).Version.ToString()) detected. Minimum of 2.1.0 required. Run Update-AzureRM"
92
+
import-module AzureRM
93
+
94
+
if ((Get-Module AzureRM).Version -lt"5.5.0") {
95
+
Write-warning"Old version of Azure PowerShell module $((Get-Module AzureRM).Version.ToString()) detected. Minimum of 5.5.0 required. Run Update-Module AzureRM"
Copy file name to clipboardexpand all lines: Stop-AzureV2VM.ps1
+47-41
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
6
6
.DESCRIPTION
7
7
Uses PowerShell workflow to stop all VMs in parallel. Includes a retry and wait cycle to display when VMs are stopped. PowerShell
8
-
Workflow sessions require Azure authentication into each session so this script uses a splatting of parameters required for Login-AzureRmAccount that
8
+
Workflow sessions require Azure authentication into each session so this script uses a splatting of parameters required for Connect-AzureRmAccount that
9
9
can be passed to each session. Recommend using the New-AzureServicePrincipal script to create the required service principal and associated ApplicationId
10
10
and certificate thumbprint required to log into Azure with the -servicePrincipal flag
11
11
@@ -73,48 +73,61 @@ param(
73
73
74
74
$ProgressPreference='SilentlyContinue'
75
75
76
-
if ((Get-Module AzureRM.profile).Version -lt"2.1.0")
77
-
{
78
-
Write-warning"Old Version of Azure Modules $((Get-Module AzureRM.profile).Version.ToString()) detected. Minimum of 2.1.0 required. Run Update-AzureRM"
76
+
import-module AzureRM
77
+
78
+
if ((Get-Module AzureRM).Version -lt"5.5.0") {
79
+
Write-warning"Old version of Azure PowerShell module $((Get-Module AzureRM).Version.ToString()) detected. Minimum of 5.5.0 required. Run Update-Module AzureRM"
0 commit comments