diff --git a/AzurePowershell.Test.targets b/AzurePowershell.Test.targets
index 5c14f4877bd2..934eb39a61c1 100644
--- a/AzurePowershell.Test.targets
+++ b/AzurePowershell.Test.targets
@@ -42,34 +42,7 @@
100000000
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -79,11 +52,48 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Timeout="$(TestTimeout)" ContinueOnError="false" Condition=" @(XUnitTests) != '' "/>
@@ -101,7 +111,6 @@
-
diff --git a/build.proj b/build.proj
index aa9c8ced86ea..61bcfb20d4ea 100644
--- a/build.proj
+++ b/build.proj
@@ -36,10 +36,11 @@
$(PublishDirectory)\Setup$(PublishDirectory)\TestResultstrue
+ http://psget/PSGallery/api/v2/
-
-
+
+
@@ -63,28 +64,19 @@
-
-
-
+
+ ContinueOnError="false"
+ Condition=" '$(Scope)' == '' "/>
@@ -115,6 +107,7 @@
$(MSBuildProjectDirectory)\src\.nuget\NuGet.exe$(MSBuildProjectDirectory)\restore.config-ConfigFile "$(NuGetRestoreConfigFile)"
+ C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
-
-
+
+
+
@@ -151,15 +148,11 @@
-
+ BuildInParallel="$(BuildInParallel)"
+ ContinueOnError="false" />
@@ -168,14 +161,18 @@
Projects="@(SetupPowershellGetSln)"
Targets="Build"
Properties="Configuration=$(Configuration);Platform=Any CPU"
- ContinueOnError="false" />
+ ContinueOnError="false"
+ Condition=" '$(Scope)' == '' "/>
+
+ ContinueOnError="false"
+ Condition=" '$(Scope)' == '' "/>
-
+
@@ -285,6 +282,14 @@
+
+
+
+
+
+
+
+ false
@@ -295,7 +300,7 @@
-
+
diff --git a/setup-powershellget/Setup/ShortcutStartup.ps1 b/setup-powershellget/Setup/ShortcutStartup.ps1
index ba35b2cc15c0..c8dafd9404e9 100644
--- a/setup-powershellget/Setup/ShortcutStartup.ps1
+++ b/setup-powershellget/Setup/ShortcutStartup.ps1
@@ -17,11 +17,41 @@ Param(
[switch]$Install
)
-cd c:\
-$welcomeMessage = @"
+$error.clear()
+try {
+ if ($Install.IsPresent) {
+ Write-Output @"
+
+Finalizing installation of Azure PowerShell.
+Installing Azure Modules from PowerShell Gallery.
+This may take some time...
+"@
+ $env:PSModulePath = "$env:HOME\Documents\WindowsPowerShell\Modules;$env:ProgramFiles\WindowsPowerShell\Modules;$env:SystemRoot\system32\WindowsPowerShell\v1.0\Modules\"
+
+ Import-Module PackageManagement
+
+ $result = Get-PackageProvider -Name NuGet -ForceBootstrap
+
+ Import-Module PowerShellGet
+
+ Install-Module AzureRM
+ Write-Output "AzureRM $((Get-InstalledModule -Name AzureRM)[0].Version) installed..."
+ Update-AzureRM
+ } else {
+ cd c:\
+ $welcomeMessage = @"
For a list of all Azure cmdlets type 'help azure'.
For a list of Azure Pack cmdlets type 'Get-Command *wapack*'.
+
+To use Azure Service Management cmdlets please execute the following cmdlet:
+ Install-Module Azure
"@
-Write-Output $welcomeMessage
+ Write-Output $welcomeMessage
-$VerbosePreference = "Continue"
\ No newline at end of file
+ $VerbosePreference = "Continue"
+ }
+}
+catch { Write-Output $error }
+if ($error) {
+ Read-Host -Prompt "An error occured during installation. Press any key..."
+}
\ No newline at end of file
diff --git a/setup-powershellget/azurecmd.wxs b/setup-powershellget/azurecmd.wxs
index 8680059fc809..fc9f5f12c862 100644
--- a/setup-powershellget/azurecmd.wxs
+++ b/setup-powershellget/azurecmd.wxs
@@ -102,7 +102,7 @@
-
+ NOT Installed
diff --git a/setup/azurecmdfiles.wxi b/setup/azurecmdfiles.wxi
index 672cd10e5031..92a0385042c3 100644
--- a/setup/azurecmdfiles.wxi
+++ b/setup/azurecmdfiles.wxi
@@ -68,6 +68,9 @@
+
+
+
@@ -193,6 +196,9 @@
+
+
+
@@ -276,6 +282,12 @@
+
+
+
+
+
+
@@ -344,6 +356,9 @@
+
+
+
@@ -406,15 +421,6 @@
-
-
-
-
-
-
-
-
-
@@ -436,6 +442,9 @@
+
+
+
@@ -486,6 +495,9 @@
+
+
+
@@ -612,6 +624,9 @@
+
+
+
@@ -621,6 +636,9 @@
+
+
+
@@ -716,6 +734,9 @@
+
+
+
@@ -781,15 +802,6 @@
-
-
-
-
-
-
-
-
-
@@ -805,6 +817,12 @@
+
+
+
+
+
+
@@ -814,9 +832,6 @@
-
-
-
@@ -888,9 +903,15 @@
+
+
+
+
+
+
@@ -935,15 +956,6 @@
-
-
-
-
-
-
-
-
-
@@ -956,18 +968,24 @@
+
+
+
+
+
+
+
+
+
-
-
-
@@ -1045,15 +1063,6 @@
-
-
-
-
-
-
-
-
-
@@ -1075,6 +1084,9 @@
+
+
+
@@ -1206,6 +1218,12 @@
+
+
+
+
+
+
@@ -1283,6 +1301,9 @@
+
+
+
@@ -1300,6 +1321,9 @@
+
+
+
@@ -1351,6 +1375,9 @@
+
+
+
@@ -1422,6 +1449,9 @@
+
+
+
@@ -1517,6 +1547,9 @@
+
+
+
@@ -1591,6 +1624,12 @@
+
+
+
+
+
+
@@ -1713,6 +1752,9 @@
+
+
+
@@ -1838,6 +1880,12 @@
+
+
+
+
+
+
@@ -1912,6 +1960,9 @@
+
+
+
@@ -1986,6 +2037,9 @@
+
+
+
@@ -2054,6 +2108,15 @@
+
+
+
+
+
+
+
+
+
@@ -2116,6 +2179,12 @@
+
+
+
+
+
+
@@ -2184,6 +2253,9 @@
+
+
+
@@ -2256,6 +2328,9 @@
+
+
+
@@ -2336,6 +2411,9 @@
+
+
+
@@ -2410,6 +2488,9 @@
+
+
+
@@ -2467,6 +2548,9 @@
+
+
+
@@ -2625,6 +2709,9 @@
+
+
+
@@ -2666,15 +2753,6 @@
-
-
-
-
-
-
-
-
-
@@ -2711,6 +2789,9 @@
+
+
+
@@ -2744,9 +2825,6 @@
-
-
-
@@ -2782,15 +2860,6 @@
-
-
-
-
-
-
-
-
-
@@ -2836,6 +2905,9 @@
+
+
+
@@ -2899,9 +2971,6 @@
-
-
-
@@ -2976,6 +3045,9 @@
+
+
+
@@ -3329,6 +3401,9 @@
+
+
+
@@ -3417,6 +3492,9 @@
+
+
+
@@ -3545,6 +3623,9 @@
+
+
+
@@ -3916,6 +3997,9 @@
+
+
+
@@ -4056,6 +4140,9 @@
+
+
+
@@ -4109,15 +4196,6 @@
-
-
-
-
-
-
-
-
-
@@ -4142,6 +4220,9 @@
+
+
+
@@ -4169,9 +4250,6 @@
-
-
-
@@ -4200,6 +4278,7 @@
+
@@ -4241,6 +4320,7 @@
+
@@ -4268,6 +4348,8 @@
+
+
@@ -4290,6 +4372,7 @@
+
@@ -4310,9 +4393,6 @@
-
-
-
@@ -4320,6 +4400,7 @@
+
@@ -4336,6 +4417,7 @@
+
@@ -4378,9 +4460,11 @@
+
+
@@ -4412,6 +4496,7 @@
+
@@ -4433,18 +4518,16 @@
-
-
-
+
+
-
@@ -4468,7 +4551,9 @@
+
+
@@ -4483,17 +4568,16 @@
-
-
-
+
+
+
-
@@ -4519,9 +4603,6 @@
-
-
-
@@ -4529,6 +4610,7 @@
+
@@ -4572,6 +4654,8 @@
+
+
@@ -4597,11 +4681,13 @@
+
+
@@ -4619,6 +4705,7 @@
+
@@ -4642,6 +4729,7 @@
+
@@ -4673,6 +4761,7 @@
+
@@ -4697,6 +4786,8 @@
+
+
@@ -4737,6 +4828,7 @@
+
@@ -4778,6 +4870,8 @@
+
+
@@ -4802,6 +4896,7 @@
+
@@ -4826,6 +4921,7 @@
+
@@ -4848,6 +4944,9 @@
+
+
+
@@ -4868,6 +4967,8 @@
+
+
@@ -4890,6 +4991,7 @@
+
@@ -4912,6 +5014,7 @@
+
@@ -4938,6 +5041,7 @@
+
@@ -4962,6 +5066,7 @@
+
@@ -4981,6 +5086,7 @@
+
@@ -5033,6 +5139,7 @@
+
@@ -5046,9 +5153,6 @@
-
-
-
@@ -5061,6 +5165,7 @@
+
@@ -5072,7 +5177,6 @@
-
@@ -5084,9 +5188,6 @@
-
-
-
@@ -5102,6 +5203,7 @@
+
@@ -5123,7 +5225,6 @@
-
@@ -5148,6 +5249,7 @@
+
@@ -5255,6 +5357,7 @@
+
@@ -5283,6 +5386,7 @@
+
@@ -5325,6 +5429,7 @@
+
@@ -5438,6 +5543,7 @@
+
@@ -5484,6 +5590,7 @@
+
@@ -5501,9 +5608,6 @@
-
-
-
@@ -5512,6 +5616,7 @@
+
@@ -5521,7 +5626,6 @@
-
diff --git a/src/ApiManagement.sln b/src/ApiManagement.sln
new file mode 100644
index 000000000000..be68573940b5
--- /dev/null
+++ b/src/ApiManagement.sln
@@ -0,0 +1,100 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2013
+VisualStudioVersion = 12.0.31101.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{95C16AED-FD57-42A0-86C3-2CF4300A4817}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ResourceManager.Common", "ResourceManager\Common\Commands.ResourceManager.Common\Commands.ResourceManager.Common.csproj", "{3819D8A7-C62C-4C47-8DDD-0332D9CE1252}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ApiManagement", "ResourceManager\ApiManagement\Commands.ApiManagement\Commands.ApiManagement.csproj", "{DC0A9742-DF36-48C9-BD2F-68D01AED6257}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Common.Storage", "Common\Commands.Common.Storage\Commands.Common.Storage.csproj", "{65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ApiManagement.Test", "ResourceManager\ApiManagement\Commands.ApiManagement.Test\Commands.ApiManagement.Test.csproj", "{BEC9ECE9-A3D6-4B24-A682-1FA890647D9D}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ApiManagement.ServiceManagement", "ResourceManager\ApiManagement\Commands.ApiManagement.ServiceManagement\Commands.ApiManagement.ServiceManagement.csproj", "{ED8BA708-AF42-4C08-9F4E-DAA1037797D5}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ApiManagement.ServiceManagement.Test", "ResourceManager\ApiManagement\Commands.SMAPI.Test\Commands.ApiManagement.ServiceManagement.Test.csproj", "{6448E795-3D02-4BDD-B0C7-AD0A2AFE3C8B}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ScenarioTests.ResourceManager.Common", "ResourceManager\Common\Commands.ScenarioTests.ResourceManager.Common\Commands.ScenarioTests.ResourceManager.Common.csproj", "{3436A126-EDC9-4060-8952-9A1BE34CDD95}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Profile", "ResourceManager\Profile\Commands.Profile\Commands.Profile.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Resources", "ResourceManager\Resources\Commands.Resources\Commands.Resources.csproj", "{E1F5201D-6067-430E-B303-4E367652991B}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Management.Storage", "ResourceManager\Storage\Commands.Management.Storage\Commands.Management.Storage.csproj", "{A50AB133-5C04-4A17-9054-F8343683EC23}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Resources.Rest", "ResourceManager\Resources\Commands.ResourceManager\Cmdlets\Commands.Resources.Rest.csproj", "{8058D403-06E3-4BED-8924-D166CE303961}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Storage", "Common\Storage\Commands.Storage\Commands.Storage.csproj", "{08CF7DA7-0392-4A19-B79B-E1FF67CDB81A}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Common", "Common\Commands.Common\Commands.Common.csproj", "{5EE72C53-1720-4309-B54B-5FB79703195F}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.Build.0 = Release|Any CPU
+ {DC0A9742-DF36-48C9-BD2F-68D01AED6257}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {DC0A9742-DF36-48C9-BD2F-68D01AED6257}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {DC0A9742-DF36-48C9-BD2F-68D01AED6257}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {DC0A9742-DF36-48C9-BD2F-68D01AED6257}.Release|Any CPU.Build.0 = Release|Any CPU
+ {65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}.Release|Any CPU.Build.0 = Release|Any CPU
+ {BEC9ECE9-A3D6-4B24-A682-1FA890647D9D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {BEC9ECE9-A3D6-4B24-A682-1FA890647D9D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {BEC9ECE9-A3D6-4B24-A682-1FA890647D9D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {BEC9ECE9-A3D6-4B24-A682-1FA890647D9D}.Release|Any CPU.Build.0 = Release|Any CPU
+ {ED8BA708-AF42-4C08-9F4E-DAA1037797D5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {ED8BA708-AF42-4C08-9F4E-DAA1037797D5}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {ED8BA708-AF42-4C08-9F4E-DAA1037797D5}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {ED8BA708-AF42-4C08-9F4E-DAA1037797D5}.Release|Any CPU.Build.0 = Release|Any CPU
+ {6448E795-3D02-4BDD-B0C7-AD0A2AFE3C8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {6448E795-3D02-4BDD-B0C7-AD0A2AFE3C8B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {6448E795-3D02-4BDD-B0C7-AD0A2AFE3C8B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {6448E795-3D02-4BDD-B0C7-AD0A2AFE3C8B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.Build.0 = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A50AB133-5C04-4A17-9054-F8343683EC23}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A50AB133-5C04-4A17-9054-F8343683EC23}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A50AB133-5C04-4A17-9054-F8343683EC23}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A50AB133-5C04-4A17-9054-F8343683EC23}.Release|Any CPU.Build.0 = Release|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Release|Any CPU.Build.0 = Release|Any CPU
+ {08CF7DA7-0392-4A19-B79B-E1FF67CDB81A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {08CF7DA7-0392-4A19-B79B-E1FF67CDB81A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {08CF7DA7-0392-4A19-B79B-E1FF67CDB81A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {08CF7DA7-0392-4A19-B79B-E1FF67CDB81A}.Release|Any CPU.Build.0 = Release|Any CPU
+ {5EE72C53-1720-4309-B54B-5FB79703195F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {5EE72C53-1720-4309-B54B-5FB79703195F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {5EE72C53-1720-4309-B54B-5FB79703195F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {5EE72C53-1720-4309-B54B-5FB79703195F}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {BEC9ECE9-A3D6-4B24-A682-1FA890647D9D} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ {6448E795-3D02-4BDD-B0C7-AD0A2AFE3C8B} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ EndGlobalSection
+EndGlobal
diff --git a/src/Automation.sln b/src/Automation.sln
new file mode 100644
index 000000000000..6e6cf24e8397
--- /dev/null
+++ b/src/Automation.sln
@@ -0,0 +1,51 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2013
+VisualStudioVersion = 12.0.31101.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{95C16AED-FD57-42A0-86C3-2CF4300A4817}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ResourceManager.Common", "ResourceManager\Common\Commands.ResourceManager.Common\Commands.ResourceManager.Common.csproj", "{3819D8A7-C62C-4C47-8DDD-0332D9CE1252}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Automation", "ResourceManager\Automation\Commands.Automation\Commands.Automation.csproj", "{90DEF35A-F7FF-40D0-B008-F489A4C092DB}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Automation.Test", "ResourceManager\Automation\Commands.Automation.Test\Commands.Automation.Test.csproj", "{59D1B5DC-9175-43EC-90C6-CBA601B3565F}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Profile", "ResourceManager\Profile\Commands.Profile\Commands.Profile.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ScenarioTests.ResourceManager.Common", "ResourceManager\Common\Commands.ScenarioTests.ResourceManager.Common\Commands.ScenarioTests.ResourceManager.Common.csproj", "{3436A126-EDC9-4060-8952-9A1BE34CDD95}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.Build.0 = Release|Any CPU
+ {90DEF35A-F7FF-40D0-B008-F489A4C092DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {90DEF35A-F7FF-40D0-B008-F489A4C092DB}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {90DEF35A-F7FF-40D0-B008-F489A4C092DB}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {90DEF35A-F7FF-40D0-B008-F489A4C092DB}.Release|Any CPU.Build.0 = Release|Any CPU
+ {59D1B5DC-9175-43EC-90C6-CBA601B3565F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {59D1B5DC-9175-43EC-90C6-CBA601B3565F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {59D1B5DC-9175-43EC-90C6-CBA601B3565F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {59D1B5DC-9175-43EC-90C6-CBA601B3565F}.Release|Any CPU.Build.0 = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {59D1B5DC-9175-43EC-90C6-CBA601B3565F} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ EndGlobalSection
+EndGlobal
diff --git a/src/AzureBackup.sln b/src/AzureBackup.sln
new file mode 100644
index 000000000000..7c593ef130c5
--- /dev/null
+++ b/src/AzureBackup.sln
@@ -0,0 +1,51 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2013
+VisualStudioVersion = 12.0.31101.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{95C16AED-FD57-42A0-86C3-2CF4300A4817}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ResourceManager.Common", "ResourceManager\Common\Commands.ResourceManager.Common\Commands.ResourceManager.Common.csproj", "{3819D8A7-C62C-4C47-8DDD-0332D9CE1252}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.AzureBackup", "ResourceManager\AzureBackup\Commands.AzureBackup\Commands.AzureBackup.csproj", "{6C8D2337-C9D1-4F52-94B3-AB63A19F3453}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.AzureBackup.Test", "ResourceManager\AzureBackup\Commands.AzureBackup.Test\Commands.AzureBackup.Test.csproj", "{678AE95D-2364-47D7-888C-3FFA6D412CC8}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ScenarioTests.ResourceManager.Common", "ResourceManager\Common\Commands.ScenarioTests.ResourceManager.Common\Commands.ScenarioTests.ResourceManager.Common.csproj", "{3436A126-EDC9-4060-8952-9A1BE34CDD95}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Profile", "ResourceManager\Profile\Commands.Profile\Commands.Profile.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.Build.0 = Release|Any CPU
+ {6C8D2337-C9D1-4F52-94B3-AB63A19F3453}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {6C8D2337-C9D1-4F52-94B3-AB63A19F3453}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {6C8D2337-C9D1-4F52-94B3-AB63A19F3453}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {6C8D2337-C9D1-4F52-94B3-AB63A19F3453}.Release|Any CPU.Build.0 = Release|Any CPU
+ {678AE95D-2364-47D7-888C-3FFA6D412CC8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {678AE95D-2364-47D7-888C-3FFA6D412CC8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {678AE95D-2364-47D7-888C-3FFA6D412CC8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {678AE95D-2364-47D7-888C-3FFA6D412CC8}.Release|Any CPU.Build.0 = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.Build.0 = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {678AE95D-2364-47D7-888C-3FFA6D412CC8} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ EndGlobalSection
+EndGlobal
diff --git a/src/AzureBatch.sln b/src/AzureBatch.sln
new file mode 100644
index 000000000000..d4cc8563ec07
--- /dev/null
+++ b/src/AzureBatch.sln
@@ -0,0 +1,63 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2013
+VisualStudioVersion = 12.0.31101.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{95C16AED-FD57-42A0-86C3-2CF4300A4817}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ResourceManager.Common", "ResourceManager\Common\Commands.ResourceManager.Common\Commands.ResourceManager.Common.csproj", "{3819D8A7-C62C-4C47-8DDD-0332D9CE1252}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Batch", "ResourceManager\AzureBatch\Commands.Batch\Commands.Batch.csproj", "{D470E50A-9607-48D6-A924-4F9F86502704}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Batch.Test", "ResourceManager\AzureBatch\Commands.Batch.Test\Commands.Batch.Test.csproj", "{F4ABAD68-64A5-4B23-B09C-42559A7524DE}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Profile", "ResourceManager\Profile\Commands.Profile\Commands.Profile.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ScenarioTests.ResourceManager.Common", "ResourceManager\Common\Commands.ScenarioTests.ResourceManager.Common\Commands.ScenarioTests.ResourceManager.Common.csproj", "{3436A126-EDC9-4060-8952-9A1BE34CDD95}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Resources", "ResourceManager\Resources\Commands.Resources\Commands.Resources.csproj", "{E1F5201D-6067-430E-B303-4E367652991B}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Resources.Rest", "ResourceManager\Resources\Commands.ResourceManager\Cmdlets\Commands.Resources.Rest.csproj", "{8058D403-06E3-4BED-8924-D166CE303961}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.Build.0 = Release|Any CPU
+ {D470E50A-9607-48D6-A924-4F9F86502704}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {D470E50A-9607-48D6-A924-4F9F86502704}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {D470E50A-9607-48D6-A924-4F9F86502704}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {D470E50A-9607-48D6-A924-4F9F86502704}.Release|Any CPU.Build.0 = Release|Any CPU
+ {F4ABAD68-64A5-4B23-B09C-42559A7524DE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F4ABAD68-64A5-4B23-B09C-42559A7524DE}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F4ABAD68-64A5-4B23-B09C-42559A7524DE}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F4ABAD68-64A5-4B23-B09C-42559A7524DE}.Release|Any CPU.Build.0 = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {F4ABAD68-64A5-4B23-B09C-42559A7524DE} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ EndGlobalSection
+EndGlobal
diff --git a/src/Common/Commands.Common.Storage/Commands.Common.Storage.csproj b/src/Common/Commands.Common.Storage/Commands.Common.Storage.csproj
index 44f3ed04871c..26d213dda1e5 100644
--- a/src/Common/Commands.Common.Storage/Commands.Common.Storage.csproj
+++ b/src/Common/Commands.Common.Storage/Commands.Common.Storage.csproj
@@ -57,7 +57,7 @@
..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.dll
- ..\..\packages\Microsoft.Azure.Common.Authentication.1.3.0-preview\lib\net45\Microsoft.Azure.Common.Authentication.dll
+ ..\..\packages\Microsoft.Azure.Common.Authentication.1.3.1-preview\lib\net45\Microsoft.Azure.Common.Authentication.dllTrue
diff --git a/src/Common/Commands.Common.Storage/packages.config b/src/Common/Commands.Common.Storage/packages.config
index dad781bcb501..bc1a6455a430 100644
--- a/src/Common/Commands.Common.Storage/packages.config
+++ b/src/Common/Commands.Common.Storage/packages.config
@@ -2,7 +2,7 @@
-
+
diff --git a/src/Common/AzurePSCmdlet.cs b/src/Common/Commands.Common/AzurePSCmdlet.cs
similarity index 100%
rename from src/Common/AzurePSCmdlet.cs
rename to src/Common/Commands.Common/AzurePSCmdlet.cs
diff --git a/src/Common/Commands.Common/Commands.Common.csproj b/src/Common/Commands.Common/Commands.Common.csproj
index cdc01e00f5a1..15ed1d0a8028 100644
--- a/src/Common/Commands.Common/Commands.Common.csproj
+++ b/src/Common/Commands.Common/Commands.Common.csproj
@@ -64,7 +64,7 @@
..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.dll
- ..\..\packages\Microsoft.Azure.Common.Authentication.1.3.0-preview\lib\net45\Microsoft.Azure.Common.Authentication.dll
+ ..\..\packages\Microsoft.Azure.Common.Authentication.1.3.1-preview\lib\net45\Microsoft.Azure.Common.Authentication.dllTrue
@@ -143,12 +143,9 @@
-
- AzurePSCmdlet.cs
-
+
-
@@ -157,8 +154,6 @@
Resources.resx
-
-
@@ -167,25 +162,9 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/Common/Commands.Common/ProfileClient.cs b/src/Common/Commands.Common/ProfileClient.cs
index b0bff4a9d6b8..528674fc4352 100644
--- a/src/Common/Commands.Common/ProfileClient.cs
+++ b/src/Common/Commands.Common/ProfileClient.cs
@@ -22,7 +22,7 @@
using Hyak.Common;
using Microsoft.Azure.Common.Authentication.Factories;
using Microsoft.Azure.Common.Authentication.Models;
-using Microsoft.Azure.Common.Authentication.Properties;
+using Microsoft.WindowsAzure.Commands.Common.Properties;
using Microsoft.WindowsAzure.Subscriptions;
namespace Microsoft.Azure.Common.Authentication
diff --git a/src/Common/Commands.Common/Properties/Resources.Designer.cs b/src/Common/Commands.Common/Properties/Resources.Designer.cs
index 14275289ba96..f6602baf5d1d 100644
--- a/src/Common/Commands.Common/Properties/Resources.Designer.cs
+++ b/src/Common/Commands.Common/Properties/Resources.Designer.cs
@@ -1,17 +1,17 @@
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
-// Runtime Version:4.0.30319.0
+// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
-namespace Microsoft.WindowsAzure.Commands.Common.Properties
-{
-
-
+namespace Microsoft.WindowsAzure.Commands.Common.Properties {
+ using System;
+
+
///
/// A strongly-typed resource class, for looking up localized strings, etc.
///
@@ -231,6 +231,15 @@ public static string AddTrafficManagerEndpointFailed {
}
}
+ ///
+ /// Looks up a localized string similar to [Common.Authentication]: Authenticating for account {0} with single tenant {1}..
+ ///
+ public static string AuthenticatingForSingleTenant {
+ get {
+ return ResourceManager.GetString("AuthenticatingForSingleTenant", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Windows Azure Powershell\.
///
@@ -564,6 +573,15 @@ public static string ChangeSettingsElementMessage {
}
}
+ ///
+ /// Looks up a localized string similar to Changing public environment is not supported..
+ ///
+ public static string ChangingDefaultEnvironmentNotSupported {
+ get {
+ return ResourceManager.GetString("ChangingDefaultEnvironmentNotSupported", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Choose which publish settings file to use:.
///
@@ -945,6 +963,33 @@ public static string EnvironmentNameDoesntMatchSubscription {
}
}
+ ///
+ /// Looks up a localized string similar to Environment name needs to be specified..
+ ///
+ public static string EnvironmentNameNeedsToBeSpecified {
+ get {
+ return ResourceManager.GetString("EnvironmentNameNeedsToBeSpecified", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Environment needs to be specified..
+ ///
+ public static string EnvironmentNeedsToBeSpecified {
+ get {
+ return ResourceManager.GetString("EnvironmentNeedsToBeSpecified", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to The environment name '{0}' is not found..
+ ///
+ public static string EnvironmentNotFound {
+ get {
+ return ResourceManager.GetString("EnvironmentNotFound", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to environments.xml.
///
@@ -990,6 +1035,15 @@ public static string FailedJobErrorMessage {
}
}
+ ///
+ /// Looks up a localized string similar to File path is not valid..
+ ///
+ public static string FilePathIsNotValid {
+ get {
+ return ResourceManager.GetString("FilePathIsNotValid", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to The HTTP request was forbidden with client authentication scheme 'Anonymous'..
///
@@ -1472,6 +1526,15 @@ public static string InvalidSubscriptionId {
}
}
+ ///
+ /// Looks up a localized string similar to Must specify a non-null subscription name..
+ ///
+ public static string InvalidSubscriptionName {
+ get {
+ return ResourceManager.GetString("InvalidSubscriptionName", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to A valid subscription name is required. This can be provided using the -Subscription parameter or by setting the subscription via the Set-AzureSubscription cmdlet.
///
@@ -2702,6 +2765,15 @@ public static string RemoveAzureServiceWaitMessage {
}
}
+ ///
+ /// Looks up a localized string similar to The default subscription is being removed. Use Select-AzureSubscription -Default <subscriptionName> to select a new default subscription..
+ ///
+ public static string RemoveDefaultSubscription {
+ get {
+ return ResourceManager.GetString("RemoveDefaultSubscription", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Removing {0} deployment for {1} service.
///
@@ -2954,6 +3026,15 @@ public static string RemoveWebsiteWarning {
}
}
+ ///
+ /// Looks up a localized string similar to Removing public environment is not supported..
+ ///
+ public static string RemovingDefaultEnvironmentsNotSupported {
+ get {
+ return ResourceManager.GetString("RemovingDefaultEnvironmentsNotSupported", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Deleting namespace.
///
@@ -3693,6 +3774,15 @@ public static string SubscriptionDataFileNotFound {
}
}
+ ///
+ /// Looks up a localized string similar to The subscription id {0} doesn't exist..
+ ///
+ public static string SubscriptionIdNotFoundMessage {
+ get {
+ return ResourceManager.GetString("SubscriptionIdNotFoundMessage", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Subscription must not be null.
///
@@ -3702,6 +3792,33 @@ public static string SubscriptionMustNotBeNull {
}
}
+ ///
+ /// Looks up a localized string similar to Subscription name needs to be specified..
+ ///
+ public static string SubscriptionNameNeedsToBeSpecified {
+ get {
+ return ResourceManager.GetString("SubscriptionNameNeedsToBeSpecified", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to The subscription name {0} doesn't exist..
+ ///
+ public static string SubscriptionNameNotFoundMessage {
+ get {
+ return ResourceManager.GetString("SubscriptionNameNotFoundMessage", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Subscription needs to be specified..
+ ///
+ public static string SubscriptionNeedsToBeSpecified {
+ get {
+ return ResourceManager.GetString("SubscriptionNeedsToBeSpecified", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Suspend.
///
@@ -3774,6 +3891,24 @@ public static string UpdatedSettings {
}
}
+ ///
+ /// Looks up a localized string similar to User name is not valid..
+ ///
+ public static string UserNameIsNotValid {
+ get {
+ return ResourceManager.GetString("UserNameIsNotValid", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to User name needs to be specified..
+ ///
+ public static string UserNameNeedsToBeSpecified {
+ get {
+ return ResourceManager.GetString("UserNameNeedsToBeSpecified", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to A value for the VLan Id has to be provided..
///
diff --git a/src/Common/Commands.Common/Properties/Resources.resx b/src/Common/Commands.Common/Properties/Resources.resx
index 98ebeec2c58d..33e5c44cf6f7 100644
--- a/src/Common/Commands.Common/Properties/Resources.resx
+++ b/src/Common/Commands.Common/Properties/Resources.resx
@@ -1496,4 +1496,49 @@ Select Y to enable data collection [Y/N]:
The setting profile has been saved to the following path '{0}'.
+
+ [Common.Authentication]: Authenticating for account {0} with single tenant {1}.
+
+
+ Changing public environment is not supported.
+
+
+ Environment name needs to be specified.
+
+
+ Environment needs to be specified.
+
+
+ The environment name '{0}' is not found.
+
+
+ File path is not valid.
+
+
+ Must specify a non-null subscription name.
+
+
+ The default subscription is being removed. Use Select-AzureSubscription -Default <subscriptionName> to select a new default subscription.
+
+
+ Removing public environment is not supported.
+
+
+ The subscription id {0} doesn't exist.
+
+
+ Subscription name needs to be specified.
+
+
+ The subscription name {0} doesn't exist.
+
+
+ Subscription needs to be specified.
+
+
+ User name is not valid.
+
+
+ User name needs to be specified.
+
\ No newline at end of file
diff --git a/src/Common/Commands.Common/packages.config b/src/Common/Commands.Common/packages.config
index 8b3394fd6012..357c4f26f18d 100644
--- a/src/Common/Commands.Common/packages.config
+++ b/src/Common/Commands.Common/packages.config
@@ -4,7 +4,7 @@
-
+
diff --git a/src/Common/Commands.ScenarioTests.Common/Commands.ScenarioTests.Common.csproj b/src/Common/Commands.ScenarioTests.Common/Commands.ScenarioTests.Common.csproj
index 7e37ef305660..4c3a1031c308 100644
--- a/src/Common/Commands.ScenarioTests.Common/Commands.ScenarioTests.Common.csproj
+++ b/src/Common/Commands.ScenarioTests.Common/Commands.ScenarioTests.Common.csproj
@@ -155,6 +155,10 @@
+
+ {cff09e81-1e31-444e-b4d4-a21e946c29e2}
+ Commands.ServiceManagement.Common
+ {5ee72c53-1720-4309-b54b-5fb79703195f}Commands.Common
diff --git a/src/Common/Storage/Azure.Storage.psd1 b/src/Common/Storage/Azure.Storage.psd1
index d8088f9b1a3f..54f4e2bea750 100644
--- a/src/Common/Storage/Azure.Storage.psd1
+++ b/src/Common/Storage/Azure.Storage.psd1
@@ -79,7 +79,7 @@ VariablesToExport = '*'
# Aliases to export from this module
AliasesToExport = @(
- 'Get-AzureRMStorageContainerAcl',
+ 'Get-AzureStorageContainerAcl',
'Start-CopyAzureStorageBlob',
'Stop-CopyAzureStorageBlob'
)
diff --git a/src/Common/Storage/Commands.Storage.Test/Commands.Storage.Test.csproj b/src/Common/Storage/Commands.Storage.Test/Commands.Storage.Test.csproj
index d1c662acd1c2..babc25b7ce84 100644
--- a/src/Common/Storage/Commands.Storage.Test/Commands.Storage.Test.csproj
+++ b/src/Common/Storage/Commands.Storage.Test/Commands.Storage.Test.csproj
@@ -239,6 +239,10 @@
{c1bda476-a5cc-4394-914d-48b0ec31a710}Commands.ScenarioTests.Common
+
+ {cff09e81-1e31-444e-b4d4-a21e946c29e2}
+ Commands.ServiceManagement.Common
+ {08cf7da7-0392-4a19-b79b-e1ff67cdb81a}Commands.Storage
@@ -278,7 +282,7 @@
-
+ This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
diff --git a/src/Common/Storage/Commands.Storage/Commands.Storage.csproj b/src/Common/Storage/Commands.Storage/Commands.Storage.csproj
index 1f96ef72944b..ee2f7bdc4667 100644
--- a/src/Common/Storage/Commands.Storage/Commands.Storage.csproj
+++ b/src/Common/Storage/Commands.Storage/Commands.Storage.csproj
@@ -50,7 +50,7 @@
..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.dll
- ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.3.0-preview\lib\net45\Microsoft.Azure.Common.Authentication.dll
+ ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.3.1-preview\lib\net45\Microsoft.Azure.Common.Authentication.dllTrue
@@ -280,6 +280,10 @@
{5ee72c53-1720-4309-b54b-5fb79703195f}Commands.Common
+
+ {cff09e81-1e31-444e-b4d4-a21e946c29e2}
+ Commands.ServiceManagement.Common
+
@@ -316,7 +320,7 @@
-
+ powershell.exe -ExecutionPolicy Unrestricted -File "$(ProjectDir)\PostBuild.ps1" "..\..\..\ResourceManager\AzureResourceManager"
\ No newline at end of file
diff --git a/src/Common/Storage/Commands.Storage/Common/StorageNouns.cs b/src/Common/Storage/Commands.Storage/Common/StorageNouns.cs
index 396734e23e02..1c7bb28e2ed7 100644
--- a/src/Common/Storage/Commands.Storage/Common/StorageNouns.cs
+++ b/src/Common/Storage/Commands.Storage/Common/StorageNouns.cs
@@ -22,27 +22,27 @@ public static class StorageNouns
///
/// Blob cmdlet name
///
- public const string Blob = "AzureRMStorageBlob";
+ public const string Blob = "AzureStorageBlob";
///
/// Blobcontent cmdlet name
///
- public const string BlobContent = "AzureRMStorageBlobContent";
+ public const string BlobContent = "AzureStorageBlobContent";
///
/// blob snapshot cmdlet name
///
- public const string BlobSnapshot = "AzureRMStorageBlobSnapshot";
+ public const string BlobSnapshot = "AzureStorageBlobSnapshot";
///
/// Container cmdlet name
///
- public const string Container = "AzureRMStorageContainer";
+ public const string Container = "AzureStorageContainer";
///
/// Container acl cmdlet name
///
- public const string ContainerAcl = "AzureRMStorageContainerAcl";
+ public const string ContainerAcl = "AzureStorageContainerAcl";
///
/// Http protocol
@@ -57,12 +57,12 @@ public static class StorageNouns
///
/// Queue cmdlet name
///
- public const string Queue = "AzureRMStorageQueue";
+ public const string Queue = "AzureStorageQueue";
///
/// Storage context cmdlet name
///
- public const string StorageContext = "AzureRMStorageContext";
+ public const string StorageContext = "AzureStorageContext";
///
/// Storage account name
@@ -72,12 +72,12 @@ public static class StorageNouns
///
/// Table cmdlet name
///
- public const string Table = "AzureRMStorageTable";
+ public const string Table = "AzureStorageTable";
///
/// Copy azure storage blob
///
- public const string CopyBlob = "AzureRMStorageBlobCopy";
+ public const string CopyBlob = "AzureStorageBlobCopy";
///
/// Copy azure storage blob deprecated name
@@ -87,78 +87,78 @@ public static class StorageNouns
///
/// Copy status for azure storage blob
///
- public const string CopyBlobStatus = "AzureRMStorageBlobCopyState";
+ public const string CopyBlobStatus = "AzureStorageBlobCopyState";
///
/// Azure storage service hour metrics
///
- public const string StorageServiceMetrics = "AzureRMStorageServiceMetricsProperty";
+ public const string StorageServiceMetrics = "AzureStorageServiceMetricsProperty";
///
/// Azure storage service logging
///
- public const string StorageServiceLogging = "AzureRMStorageServiceLoggingProperty";
+ public const string StorageServiceLogging = "AzureStorageServiceLoggingProperty";
///
/// Azure storage CORS rule
///
- public const string StorageCORSRule = "AzureRMStorageCORSRule";
+ public const string StorageCORSRule = "AzureStorageCORSRule";
///
/// Azure storage container sas
///
- public const string ContainerSas = "AzureRMStorageContainerSASToken";
+ public const string ContainerSas = "AzureStorageContainerSASToken";
///
/// Azure storage blob sas
///
- public const string BlobSas = "AzureRMStorageBlobSASToken";
+ public const string BlobSas = "AzureStorageBlobSASToken";
///
/// Azure storage file share sas
///
- public const string ShareSas = "AzureRMStorageShareSASToken";
+ public const string ShareSas = "AzureStorageShareSASToken";
///
/// Azure storage file sas
///
- public const string FileSas = "AzureRMStorageFileSASToken";
+ public const string FileSas = "AzureStorageFileSASToken";
///
/// Azure storage table sas
///
- public const string TableSas = "AzureRMStorageTableSASToken";
+ public const string TableSas = "AzureStorageTableSASToken";
///
/// Azure storage queue sas
///
- public const string QueueSas = "AzureRMStorageQueueSASToken";
+ public const string QueueSas = "AzureStorageQueueSASToken";
///
/// Azure storage table stored access policy
///
- public const string TableStoredAccessPolicy = "AzureRMStorageTableStoredAccessPolicy";
+ public const string TableStoredAccessPolicy = "AzureStorageTableStoredAccessPolicy";
///
/// Azure storage share stored access policy
///
- public const string ShareStoredAccessPolicy = "AzureRMStorageShareStoredAccessPolicy";
+ public const string ShareStoredAccessPolicy = "AzureStorageShareStoredAccessPolicy";
///
/// Azure storage container stored access policy
///
- public const string ContainerStoredAccessPolicy = "AzureRMStorageContainerStoredAccessPolicy";
+ public const string ContainerStoredAccessPolicy = "AzureStorageContainerStoredAccessPolicy";
///
/// Azure storage container stored access policy
///
- public const string QueueStoredAccessPolicy = "AzureRMStorageQueueStoredAccessPolicy";
+ public const string QueueStoredAccessPolicy = "AzureStorageQueueStoredAccessPolicy";
///
/// Azure storage share quota
///
- public const string ShareQuota = "AzureRMStorageShareQuota";
+ public const string ShareQuota = "AzureStorageShareQuota";
///
/// Default service metrics version
diff --git a/src/Common/Storage/Commands.Storage/File/Constants.cs b/src/Common/Storage/Commands.Storage/File/Constants.cs
index 200595ced7a5..f7e3b8e67a43 100644
--- a/src/Common/Storage/Commands.Storage/File/Constants.cs
+++ b/src/Common/Storage/Commands.Storage/File/Constants.cs
@@ -34,37 +34,37 @@ internal static class Constants
///
/// Cmdlet name for storage context.
///
- public const string StorageContextCmdletName = "AzureRMStorageContext";
+ public const string StorageContextCmdletName = "AzureStorageContext";
///
/// Cmdlet name for file share.
///
- public const string ShareCmdletName = "AzureRMStorageShare";
+ public const string ShareCmdletName = "AzureStorageShare";
///
/// Cmdlet name for file directory.
///
- public const string FileDirectoryCmdletName = "AzureRMStorageDirectory";
+ public const string FileDirectoryCmdletName = "AzureStorageDirectory";
///
/// Cmdlet name for file.
///
- public const string FileCmdletName = "AzureRMStorageFile";
+ public const string FileCmdletName = "AzureStorageFile";
///
/// Cmdlet name for file content.
///
- public const string FileContentCmdletName = "AzureRMStorageFileContent";
+ public const string FileContentCmdletName = "AzureStorageFileContent";
///
/// Cmdlet name for file copy.
///
- public const string FileCopyCmdletName = "AzureRMStorageFileCopy";
+ public const string FileCopyCmdletName = "AzureStorageFileCopy";
///
/// Cmdlet name for file copy state.
///
- public const string FileCopyCmdletStateName = "AzureRMStorageFileCopyState";
+ public const string FileCopyCmdletStateName = "AzureStorageFileCopyState";
///
/// Stores the default endpoint suffix for storage accounts.
diff --git a/src/Common/Storage/Commands.Storage/packages.config b/src/Common/Storage/Commands.Storage/packages.config
index 12121d290ef4..0274f35be288 100644
--- a/src/Common/Storage/Commands.Storage/packages.config
+++ b/src/Common/Storage/Commands.Storage/packages.config
@@ -2,7 +2,7 @@
-
+
diff --git a/src/Compute.sln b/src/Compute.sln
new file mode 100644
index 000000000000..9fab8df1d17b
--- /dev/null
+++ b/src/Compute.sln
@@ -0,0 +1,111 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2013
+VisualStudioVersion = 12.0.31101.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{95C16AED-FD57-42A0-86C3-2CF4300A4817}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ResourceManager.Common", "ResourceManager\Common\Commands.ResourceManager.Common\Commands.ResourceManager.Common.csproj", "{3819D8A7-C62C-4C47-8DDD-0332D9CE1252}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Resources", "ResourceManager\Resources\Commands.Resources\Commands.Resources.csproj", "{E1F5201D-6067-430E-B303-4E367652991B}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Tags", "ResourceManager\Tags\Commands.Tags\Commands.Tags.csproj", "{2493A8F7-1949-4F29-8D53-9D459046C3B8}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Compute", "ResourceManager\Compute\Commands.Compute\Commands.Compute.csproj", "{52643BD5-6378-49BD-9F6E-DAC9DD8A867B}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Network", "ResourceManager\Network\Commands.Network\Commands.Network.csproj", "{98CFD96B-A6BC-4F15-AE2C-603FC2B58981}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Management.Storage", "ResourceManager\Storage\Commands.Management.Storage\Commands.Management.Storage.csproj", "{A50AB133-5C04-4A17-9054-F8343683EC23}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Common.Storage", "Common\Commands.Common.Storage\Commands.Common.Storage.csproj", "{65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sync", "ServiceManagement\Compute\Sync\Sync.csproj", "{73820CBC-F4EB-4C5E-B4F0-CC4A93FBF157}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VhdManagement", "ServiceManagement\Compute\VhdManagement\VhdManagement.csproj", "{80496B7B-068A-4A1E-B0BB-4B1FFF3FA616}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Compute.Test", "ResourceManager\Compute\Commands.Compute.Test\Commands.Compute.Test.csproj", "{37C44181-3F1B-4ABD-8089-26DFAB4B6BA8}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Profile", "ResourceManager\Profile\Commands.Profile\Commands.Profile.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ScenarioTests.ResourceManager.Common", "ResourceManager\Common\Commands.ScenarioTests.ResourceManager.Common\Commands.ScenarioTests.ResourceManager.Common.csproj", "{3436A126-EDC9-4060-8952-9A1BE34CDD95}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Common", "Common\Commands.Common\Commands.Common.csproj", "{5EE72C53-1720-4309-B54B-5FB79703195F}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Resources.Rest", "ResourceManager\Resources\Commands.ResourceManager\Cmdlets\Commands.Resources.Rest.csproj", "{8058D403-06E3-4BED-8924-D166CE303961}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Storage", "Common\Storage\Commands.Storage\Commands.Storage.csproj", "{08CF7DA7-0392-4A19-B79B-E1FF67CDB81A}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Release|Any CPU.Build.0 = Release|Any CPU
+ {52643BD5-6378-49BD-9F6E-DAC9DD8A867B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {52643BD5-6378-49BD-9F6E-DAC9DD8A867B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {52643BD5-6378-49BD-9F6E-DAC9DD8A867B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {52643BD5-6378-49BD-9F6E-DAC9DD8A867B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {98CFD96B-A6BC-4F15-AE2C-603FC2B58981}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {98CFD96B-A6BC-4F15-AE2C-603FC2B58981}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {98CFD96B-A6BC-4F15-AE2C-603FC2B58981}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {98CFD96B-A6BC-4F15-AE2C-603FC2B58981}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A50AB133-5C04-4A17-9054-F8343683EC23}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A50AB133-5C04-4A17-9054-F8343683EC23}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A50AB133-5C04-4A17-9054-F8343683EC23}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A50AB133-5C04-4A17-9054-F8343683EC23}.Release|Any CPU.Build.0 = Release|Any CPU
+ {65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}.Release|Any CPU.Build.0 = Release|Any CPU
+ {73820CBC-F4EB-4C5E-B4F0-CC4A93FBF157}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {73820CBC-F4EB-4C5E-B4F0-CC4A93FBF157}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {73820CBC-F4EB-4C5E-B4F0-CC4A93FBF157}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {73820CBC-F4EB-4C5E-B4F0-CC4A93FBF157}.Release|Any CPU.Build.0 = Release|Any CPU
+ {80496B7B-068A-4A1E-B0BB-4B1FFF3FA616}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {80496B7B-068A-4A1E-B0BB-4B1FFF3FA616}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {80496B7B-068A-4A1E-B0BB-4B1FFF3FA616}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {80496B7B-068A-4A1E-B0BB-4B1FFF3FA616}.Release|Any CPU.Build.0 = Release|Any CPU
+ {37C44181-3F1B-4ABD-8089-26DFAB4B6BA8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {37C44181-3F1B-4ABD-8089-26DFAB4B6BA8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {37C44181-3F1B-4ABD-8089-26DFAB4B6BA8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {37C44181-3F1B-4ABD-8089-26DFAB4B6BA8}.Release|Any CPU.Build.0 = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.Build.0 = Release|Any CPU
+ {5EE72C53-1720-4309-B54B-5FB79703195F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {5EE72C53-1720-4309-B54B-5FB79703195F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {5EE72C53-1720-4309-B54B-5FB79703195F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {5EE72C53-1720-4309-B54B-5FB79703195F}.Release|Any CPU.Build.0 = Release|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Release|Any CPU.Build.0 = Release|Any CPU
+ {08CF7DA7-0392-4A19-B79B-E1FF67CDB81A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {08CF7DA7-0392-4A19-B79B-E1FF67CDB81A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {08CF7DA7-0392-4A19-B79B-E1FF67CDB81A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {08CF7DA7-0392-4A19-B79B-E1FF67CDB81A}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {37C44181-3F1B-4ABD-8089-26DFAB4B6BA8} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ EndGlobalSection
+EndGlobal
diff --git a/src/DataFactories.sln b/src/DataFactories.sln
new file mode 100644
index 000000000000..6b40aa941673
--- /dev/null
+++ b/src/DataFactories.sln
@@ -0,0 +1,75 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2013
+VisualStudioVersion = 12.0.31101.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{95C16AED-FD57-42A0-86C3-2CF4300A4817}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ResourceManager.Common", "ResourceManager\Common\Commands.ResourceManager.Common\Commands.ResourceManager.Common.csproj", "{3819D8A7-C62C-4C47-8DDD-0332D9CE1252}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.DataFactories", "ResourceManager\DataFactories\Commands.DataFactories\Commands.DataFactories.csproj", "{9577252E-0A6B-4D61-86E8-95F7F309A987}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.DataFactories.Test", "ResourceManager\DataFactories\Commands.DataFactories.Test\Commands.DataFactories.Test.csproj", "{D4EDAD6F-6A1D-4295-9A88-CD3F69EAD42B}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Profile", "ResourceManager\Profile\Commands.Profile\Commands.Profile.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ScenarioTests.ResourceManager.Common", "ResourceManager\Common\Commands.ScenarioTests.ResourceManager.Common\Commands.ScenarioTests.ResourceManager.Common.csproj", "{3436A126-EDC9-4060-8952-9A1BE34CDD95}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Common.Storage", "Common\Commands.Common.Storage\Commands.Common.Storage.csproj", "{65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Common", "Common\Commands.Common\Commands.Common.csproj", "{5EE72C53-1720-4309-B54B-5FB79703195F}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Resources", "ResourceManager\Resources\Commands.Resources\Commands.Resources.csproj", "{E1F5201D-6067-430E-B303-4E367652991B}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Resources.Rest", "ResourceManager\Resources\Commands.ResourceManager\Cmdlets\Commands.Resources.Rest.csproj", "{8058D403-06E3-4BED-8924-D166CE303961}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.Build.0 = Release|Any CPU
+ {9577252E-0A6B-4D61-86E8-95F7F309A987}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {9577252E-0A6B-4D61-86E8-95F7F309A987}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {9577252E-0A6B-4D61-86E8-95F7F309A987}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {9577252E-0A6B-4D61-86E8-95F7F309A987}.Release|Any CPU.Build.0 = Release|Any CPU
+ {D4EDAD6F-6A1D-4295-9A88-CD3F69EAD42B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {D4EDAD6F-6A1D-4295-9A88-CD3F69EAD42B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {D4EDAD6F-6A1D-4295-9A88-CD3F69EAD42B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {D4EDAD6F-6A1D-4295-9A88-CD3F69EAD42B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.Build.0 = Release|Any CPU
+ {65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}.Release|Any CPU.Build.0 = Release|Any CPU
+ {5EE72C53-1720-4309-B54B-5FB79703195F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {5EE72C53-1720-4309-B54B-5FB79703195F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {5EE72C53-1720-4309-B54B-5FB79703195F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {5EE72C53-1720-4309-B54B-5FB79703195F}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {D4EDAD6F-6A1D-4295-9A88-CD3F69EAD42B} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ EndGlobalSection
+EndGlobal
diff --git a/src/Dns.sln b/src/Dns.sln
new file mode 100644
index 000000000000..47da3b7227dd
--- /dev/null
+++ b/src/Dns.sln
@@ -0,0 +1,69 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2013
+VisualStudioVersion = 12.0.31101.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{95C16AED-FD57-42A0-86C3-2CF4300A4817}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ResourceManager.Common", "ResourceManager\Common\Commands.ResourceManager.Common\Commands.ResourceManager.Common.csproj", "{3819D8A7-C62C-4C47-8DDD-0332D9CE1252}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Resources", "ResourceManager\Resources\Commands.Resources\Commands.Resources.csproj", "{E1F5201D-6067-430E-B303-4E367652991B}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Resources.Rest", "ResourceManager\Resources\Commands.ResourceManager\Cmdlets\Commands.Resources.Rest.csproj", "{8058D403-06E3-4BED-8924-D166CE303961}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Dns", "ResourceManager\Dns\Commands.Dns\Commands.Dns.csproj", "{3CAE1B57-FFEC-4945-A6C5-6E5E8DEA4BA9}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Profile", "ResourceManager\Profile\Commands.Profile\Commands.Profile.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ScenarioTests.ResourceManager.Common", "ResourceManager\Common\Commands.ScenarioTests.ResourceManager.Common\Commands.ScenarioTests.ResourceManager.Common.csproj", "{3436A126-EDC9-4060-8952-9A1BE34CDD95}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Tags", "ResourceManager\Tags\Commands.Tags\Commands.Tags.csproj", "{2493A8F7-1949-4F29-8D53-9D459046C3B8}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Dns.Test", "ResourceManager\Dns\Commands.Dns.Test\Commands.Dns.Test.csproj", "{133561EC-99AF-4ADC-AF41-39C4D3AD323B}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Release|Any CPU.Build.0 = Release|Any CPU
+ {3CAE1B57-FFEC-4945-A6C5-6E5E8DEA4BA9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3CAE1B57-FFEC-4945-A6C5-6E5E8DEA4BA9}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3CAE1B57-FFEC-4945-A6C5-6E5E8DEA4BA9}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3CAE1B57-FFEC-4945-A6C5-6E5E8DEA4BA9}.Release|Any CPU.Build.0 = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.Build.0 = Release|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Release|Any CPU.Build.0 = Release|Any CPU
+ {133561EC-99AF-4ADC-AF41-39C4D3AD323B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {133561EC-99AF-4ADC-AF41-39C4D3AD323B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {133561EC-99AF-4ADC-AF41-39C4D3AD323B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {133561EC-99AF-4ADC-AF41-39C4D3AD323B}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ {133561EC-99AF-4ADC-AF41-39C4D3AD323B} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ EndGlobalSection
+EndGlobal
diff --git a/src/HDInsight.sln b/src/HDInsight.sln
new file mode 100644
index 000000000000..56fc6042e7cd
--- /dev/null
+++ b/src/HDInsight.sln
@@ -0,0 +1,69 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2013
+VisualStudioVersion = 12.0.31101.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{95C16AED-FD57-42A0-86C3-2CF4300A4817}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ResourceManager.Common", "ResourceManager\Common\Commands.ResourceManager.Common\Commands.ResourceManager.Common.csproj", "{3819D8A7-C62C-4C47-8DDD-0332D9CE1252}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Resources", "ResourceManager\Resources\Commands.Resources\Commands.Resources.csproj", "{E1F5201D-6067-430E-B303-4E367652991B}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Resources.Rest", "ResourceManager\Resources\Commands.ResourceManager\Cmdlets\Commands.Resources.Rest.csproj", "{8058D403-06E3-4BED-8924-D166CE303961}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.HDInsight", "ResourceManager\HDInsight\Commands.HDInsight\Commands.HDInsight.csproj", "{6B7540C5-8AB3-4011-864B-0BE76F282F9E}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.HDInsight.Test", "ResourceManager\HDInsight\Commands.HDInsight.Test\Commands.HDInsight.Test.csproj", "{5FBB9D19-B365-4C97-BEFF-BBD5506A6D25}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Profile", "ResourceManager\Profile\Commands.Profile\Commands.Profile.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ScenarioTests.ResourceManager.Common", "ResourceManager\Common\Commands.ScenarioTests.ResourceManager.Common\Commands.ScenarioTests.ResourceManager.Common.csproj", "{3436A126-EDC9-4060-8952-9A1BE34CDD95}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Tags", "ResourceManager\Tags\Commands.Tags\Commands.Tags.csproj", "{2493A8F7-1949-4F29-8D53-9D459046C3B8}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Release|Any CPU.Build.0 = Release|Any CPU
+ {6B7540C5-8AB3-4011-864B-0BE76F282F9E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {6B7540C5-8AB3-4011-864B-0BE76F282F9E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {6B7540C5-8AB3-4011-864B-0BE76F282F9E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {6B7540C5-8AB3-4011-864B-0BE76F282F9E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {5FBB9D19-B365-4C97-BEFF-BBD5506A6D25}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {5FBB9D19-B365-4C97-BEFF-BBD5506A6D25}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {5FBB9D19-B365-4C97-BEFF-BBD5506A6D25}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {5FBB9D19-B365-4C97-BEFF-BBD5506A6D25}.Release|Any CPU.Build.0 = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.Build.0 = Release|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {5FBB9D19-B365-4C97-BEFF-BBD5506A6D25} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ EndGlobalSection
+EndGlobal
diff --git a/src/Insights.sln b/src/Insights.sln
new file mode 100644
index 000000000000..33905fa0cc6b
--- /dev/null
+++ b/src/Insights.sln
@@ -0,0 +1,51 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2013
+VisualStudioVersion = 12.0.31101.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{95C16AED-FD57-42A0-86C3-2CF4300A4817}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ResourceManager.Common", "ResourceManager\Common\Commands.ResourceManager.Common\Commands.ResourceManager.Common.csproj", "{3819D8A7-C62C-4C47-8DDD-0332D9CE1252}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Insights", "ResourceManager\Insights\Commands.Insights\Commands.Insights.csproj", "{DEA446A1-84E2-46CC-B780-EB4AFDE2460E}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Insights.Test", "ResourceManager\Insights\Commands.Insights.Test\Commands.Insights.Test.csproj", "{469F20E0-9D40-41AD-94C3-B47AD15A4C00}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ScenarioTests.ResourceManager.Common", "ResourceManager\Common\Commands.ScenarioTests.ResourceManager.Common\Commands.ScenarioTests.ResourceManager.Common.csproj", "{3436A126-EDC9-4060-8952-9A1BE34CDD95}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Profile", "ResourceManager\Profile\Commands.Profile\Commands.Profile.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.Build.0 = Release|Any CPU
+ {DEA446A1-84E2-46CC-B780-EB4AFDE2460E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {DEA446A1-84E2-46CC-B780-EB4AFDE2460E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {DEA446A1-84E2-46CC-B780-EB4AFDE2460E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {DEA446A1-84E2-46CC-B780-EB4AFDE2460E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {469F20E0-9D40-41AD-94C3-B47AD15A4C00}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {469F20E0-9D40-41AD-94C3-B47AD15A4C00}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {469F20E0-9D40-41AD-94C3-B47AD15A4C00}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {469F20E0-9D40-41AD-94C3-B47AD15A4C00}.Release|Any CPU.Build.0 = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.Build.0 = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {469F20E0-9D40-41AD-94C3-B47AD15A4C00} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ EndGlobalSection
+EndGlobal
diff --git a/src/KeyVault.sln b/src/KeyVault.sln
new file mode 100644
index 000000000000..56986c5efa7d
--- /dev/null
+++ b/src/KeyVault.sln
@@ -0,0 +1,69 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2013
+VisualStudioVersion = 12.0.31101.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{95C16AED-FD57-42A0-86C3-2CF4300A4817}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ResourceManager.Common", "ResourceManager\Common\Commands.ResourceManager.Common\Commands.ResourceManager.Common.csproj", "{3819D8A7-C62C-4C47-8DDD-0332D9CE1252}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Resources", "ResourceManager\Resources\Commands.Resources\Commands.Resources.csproj", "{E1F5201D-6067-430E-B303-4E367652991B}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Tags", "ResourceManager\Tags\Commands.Tags\Commands.Tags.csproj", "{2493A8F7-1949-4F29-8D53-9D459046C3B8}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Resources.Rest", "ResourceManager\Resources\Commands.ResourceManager\Cmdlets\Commands.Resources.Rest.csproj", "{8058D403-06E3-4BED-8924-D166CE303961}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.KeyVault", "ResourceManager\KeyVault\Commands.KeyVault\Commands.KeyVault.csproj", "{9FFC40CC-A341-4D0C-A25D-DC6B78EF6C94}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.KeyVault.Test", "ResourceManager\KeyVault\Commands.KeyVault.Test\Commands.KeyVault.Test.csproj", "{080B0477-7E52-4455-90AB-23BD13D1B1CE}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ScenarioTests.ResourceManager.Common", "ResourceManager\Common\Commands.ScenarioTests.ResourceManager.Common\Commands.ScenarioTests.ResourceManager.Common.csproj", "{3436A126-EDC9-4060-8952-9A1BE34CDD95}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Profile", "ResourceManager\Profile\Commands.Profile\Commands.Profile.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Release|Any CPU.Build.0 = Release|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Release|Any CPU.Build.0 = Release|Any CPU
+ {9FFC40CC-A341-4D0C-A25D-DC6B78EF6C94}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {9FFC40CC-A341-4D0C-A25D-DC6B78EF6C94}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {9FFC40CC-A341-4D0C-A25D-DC6B78EF6C94}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {9FFC40CC-A341-4D0C-A25D-DC6B78EF6C94}.Release|Any CPU.Build.0 = Release|Any CPU
+ {080B0477-7E52-4455-90AB-23BD13D1B1CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {080B0477-7E52-4455-90AB-23BD13D1B1CE}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {080B0477-7E52-4455-90AB-23BD13D1B1CE}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {080B0477-7E52-4455-90AB-23BD13D1B1CE}.Release|Any CPU.Build.0 = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.Build.0 = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {080B0477-7E52-4455-90AB-23BD13D1B1CE} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ EndGlobalSection
+EndGlobal
diff --git a/src/Network.sln b/src/Network.sln
new file mode 100644
index 000000000000..54d52f8a27fa
--- /dev/null
+++ b/src/Network.sln
@@ -0,0 +1,75 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2013
+VisualStudioVersion = 12.0.31101.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{95C16AED-FD57-42A0-86C3-2CF4300A4817}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ResourceManager.Common", "ResourceManager\Common\Commands.ResourceManager.Common\Commands.ResourceManager.Common.csproj", "{3819D8A7-C62C-4C47-8DDD-0332D9CE1252}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Resources", "ResourceManager\Resources\Commands.Resources\Commands.Resources.csproj", "{E1F5201D-6067-430E-B303-4E367652991B}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Tags", "ResourceManager\Tags\Commands.Tags\Commands.Tags.csproj", "{2493A8F7-1949-4F29-8D53-9D459046C3B8}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Network", "ResourceManager\Network\Commands.Network\Commands.Network.csproj", "{98CFD96B-A6BC-4F15-AE2C-603FC2B58981}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Common.Storage", "Common\Commands.Common.Storage\Commands.Common.Storage.csproj", "{65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Network.Test", "ResourceManager\Network\Commands.Network.Test\Commands.Network.Test.csproj", "{A2DF4FE5-46EE-43E2-B246-E5CDDD47B752}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ScenarioTests.ResourceManager.Common", "ResourceManager\Common\Commands.ScenarioTests.ResourceManager.Common\Commands.ScenarioTests.ResourceManager.Common.csproj", "{3436A126-EDC9-4060-8952-9A1BE34CDD95}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Resources.Rest", "ResourceManager\Resources\Commands.ResourceManager\Cmdlets\Commands.Resources.Rest.csproj", "{8058D403-06E3-4BED-8924-D166CE303961}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Profile", "ResourceManager\Profile\Commands.Profile\Commands.Profile.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Release|Any CPU.Build.0 = Release|Any CPU
+ {98CFD96B-A6BC-4F15-AE2C-603FC2B58981}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {98CFD96B-A6BC-4F15-AE2C-603FC2B58981}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {98CFD96B-A6BC-4F15-AE2C-603FC2B58981}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {98CFD96B-A6BC-4F15-AE2C-603FC2B58981}.Release|Any CPU.Build.0 = Release|Any CPU
+ {65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A2DF4FE5-46EE-43E2-B246-E5CDDD47B752}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A2DF4FE5-46EE-43E2-B246-E5CDDD47B752}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A2DF4FE5-46EE-43E2-B246-E5CDDD47B752}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A2DF4FE5-46EE-43E2-B246-E5CDDD47B752}.Release|Any CPU.Build.0 = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.Build.0 = Release|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Release|Any CPU.Build.0 = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {A2DF4FE5-46EE-43E2-B246-E5CDDD47B752} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ EndGlobalSection
+EndGlobal
diff --git a/src/OperationalInsights.sln b/src/OperationalInsights.sln
new file mode 100644
index 000000000000..1943abbed997
--- /dev/null
+++ b/src/OperationalInsights.sln
@@ -0,0 +1,69 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2013
+VisualStudioVersion = 12.0.31101.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{95C16AED-FD57-42A0-86C3-2CF4300A4817}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ResourceManager.Common", "ResourceManager\Common\Commands.ResourceManager.Common\Commands.ResourceManager.Common.csproj", "{3819D8A7-C62C-4C47-8DDD-0332D9CE1252}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.OperationalInsights", "ResourceManager\OperationalInsights\Commands.OperationalInsights\Commands.OperationalInsights.csproj", "{5BE35A94-C20F-4659-AA29-9B9AEBCFAF36}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.OperationalInsights.Test", "ResourceManager\OperationalInsights\Commands.OperationalInsights.Test\Commands.OperationalInsights.Test.csproj", "{11387E0A-4DB6-49B8-BDBC-EE020D85D10F}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Profile", "ResourceManager\Profile\Commands.Profile\Commands.Profile.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ScenarioTests.ResourceManager.Common", "ResourceManager\Common\Commands.ScenarioTests.ResourceManager.Common\Commands.ScenarioTests.ResourceManager.Common.csproj", "{3436A126-EDC9-4060-8952-9A1BE34CDD95}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Resources", "ResourceManager\Resources\Commands.Resources\Commands.Resources.csproj", "{E1F5201D-6067-430E-B303-4E367652991B}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Resources.Rest", "ResourceManager\Resources\Commands.ResourceManager\Cmdlets\Commands.Resources.Rest.csproj", "{8058D403-06E3-4BED-8924-D166CE303961}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Tags", "ResourceManager\Tags\Commands.Tags\Commands.Tags.csproj", "{2493A8F7-1949-4F29-8D53-9D459046C3B8}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.Build.0 = Release|Any CPU
+ {5BE35A94-C20F-4659-AA29-9B9AEBCFAF36}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {5BE35A94-C20F-4659-AA29-9B9AEBCFAF36}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {5BE35A94-C20F-4659-AA29-9B9AEBCFAF36}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {5BE35A94-C20F-4659-AA29-9B9AEBCFAF36}.Release|Any CPU.Build.0 = Release|Any CPU
+ {11387E0A-4DB6-49B8-BDBC-EE020D85D10F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {11387E0A-4DB6-49B8-BDBC-EE020D85D10F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {11387E0A-4DB6-49B8-BDBC-EE020D85D10F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {11387E0A-4DB6-49B8-BDBC-EE020D85D10F}.Release|Any CPU.Build.0 = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E1F5201D-6067-430E-B303-4E367652991B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8058D403-06E3-4BED-8924-D166CE303961}.Release|Any CPU.Build.0 = Release|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {11387E0A-4DB6-49B8-BDBC-EE020D85D10F} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ EndGlobalSection
+EndGlobal
diff --git a/src/Profile.sln b/src/Profile.sln
new file mode 100644
index 000000000000..7c1543848a65
--- /dev/null
+++ b/src/Profile.sln
@@ -0,0 +1,45 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2013
+VisualStudioVersion = 12.0.31101.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{95C16AED-FD57-42A0-86C3-2CF4300A4817}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ResourceManager.Common", "ResourceManager\Common\Commands.ResourceManager.Common\Commands.ResourceManager.Common.csproj", "{3819D8A7-C62C-4C47-8DDD-0332D9CE1252}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Profile", "ResourceManager\Profile\Commands.Profile\Commands.Profile.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Profile.Test", "ResourceManager\Profile\Commands.Profile.Test\Commands.Profile.Test.csproj", "{152D78F0-A642-4D0E-B3A8-2FC64FFA9714}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ScenarioTests.ResourceManager.Common", "ResourceManager\Common\Commands.ScenarioTests.ResourceManager.Common\Commands.ScenarioTests.ResourceManager.Common.csproj", "{3436A126-EDC9-4060-8952-9A1BE34CDD95}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.Build.0 = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {152D78F0-A642-4D0E-B3A8-2FC64FFA9714}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {152D78F0-A642-4D0E-B3A8-2FC64FFA9714}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {152D78F0-A642-4D0E-B3A8-2FC64FFA9714}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {152D78F0-A642-4D0E-B3A8-2FC64FFA9714}.Release|Any CPU.Build.0 = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {152D78F0-A642-4D0E-B3A8-2FC64FFA9714} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ EndGlobalSection
+EndGlobal
diff --git a/src/RedisCache.sln b/src/RedisCache.sln
new file mode 100644
index 000000000000..202892ddad4e
--- /dev/null
+++ b/src/RedisCache.sln
@@ -0,0 +1,51 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2013
+VisualStudioVersion = 12.0.40629.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{95C16AED-FD57-42A0-86C3-2CF4300A4817}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ResourceManager.Common", "ResourceManager\Common\Commands.ResourceManager.Common\Commands.ResourceManager.Common.csproj", "{3819D8A7-C62C-4C47-8DDD-0332D9CE1252}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.RedisCache", "ResourceManager\RedisCache\Commands.RedisCache\Commands.RedisCache.csproj", "{C972E3EF-4461-4758-BA31-93E0947B1253}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.RedisCache.Test", "ResourceManager\RedisCache\Commands.RedisCache.Test\Commands.RedisCache.Test.csproj", "{4AE5705F-62CF-461D-B72E-DD9DCD9B3609}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Profile", "ResourceManager\Profile\Commands.Profile\Commands.Profile.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ScenarioTests.ResourceManager.Common", "ResourceManager\Common\Commands.ScenarioTests.ResourceManager.Common\Commands.ScenarioTests.ResourceManager.Common.csproj", "{3436A126-EDC9-4060-8952-9A1BE34CDD95}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.Build.0 = Release|Any CPU
+ {C972E3EF-4461-4758-BA31-93E0947B1253}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C972E3EF-4461-4758-BA31-93E0947B1253}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C972E3EF-4461-4758-BA31-93E0947B1253}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C972E3EF-4461-4758-BA31-93E0947B1253}.Release|Any CPU.Build.0 = Release|Any CPU
+ {4AE5705F-62CF-461D-B72E-DD9DCD9B3609}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {4AE5705F-62CF-461D-B72E-DD9DCD9B3609}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {4AE5705F-62CF-461D-B72E-DD9DCD9B3609}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {4AE5705F-62CF-461D-B72E-DD9DCD9B3609}.Release|Any CPU.Build.0 = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {4AE5705F-62CF-461D-B72E-DD9DCD9B3609} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ {3436A126-EDC9-4060-8952-9A1BE34CDD95} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ EndGlobalSection
+EndGlobal
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands.ApiManagement.ServiceManagement.csproj b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands.ApiManagement.ServiceManagement.csproj
index adcb747e2c1f..a531e579a018 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands.ApiManagement.ServiceManagement.csproj
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands.ApiManagement.ServiceManagement.csproj
@@ -60,7 +60,7 @@
..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.dll
- ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.3.0-preview\lib\net45\Microsoft.Azure.Common.Authentication.dll
+ ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.3.1-preview\lib\net45\Microsoft.Azure.Common.Authentication.dllTrue
@@ -237,6 +237,10 @@
{65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}Commands.Common.Storage
+
+ {5ee72c53-1720-4309-b54b-5fb79703195f}
+ Commands.Common
+ {3819d8a7-c62c-4c47-8ddd-0332d9ce1252}Commands.ResourceManager.Common
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/AddAzureApiManagementApiToProduct.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/AddAzureApiManagementApiToProduct.cs
index bdad99e70da2..2d3335dad986 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/AddAzureApiManagementApiToProduct.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/AddAzureApiManagementApiToProduct.cs
@@ -1 +1 @@
-//
// Copyright (c) Microsoft. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
{
using System;
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
[Cmdlet(VerbsCommon.Add, "AzureRMApiManagementApiToProduct")]
[OutputType(typeof(bool))]
public class AddAzureApiManagementApiToProduct : AzureApiManagementCmdletBase
{
[Parameter(
ValueFromPipelineByPropertyName = true,
Mandatory = true,
HelpMessage = "Instance of PsApiManagementContext. This parameter is required.")]
[ValidateNotNullOrEmpty]
public PsApiManagementContext Context { get; set; }
[Parameter(
ValueFromPipelineByPropertyName = true,
Mandatory = true,
HelpMessage = "Identifier of existing Product to add API to. This parameter is required.")]
[ValidateNotNullOrEmpty]
public String ProductId { get; set; }
[Parameter(
ValueFromPipelineByPropertyName = true,
Mandatory = true,
HelpMessage = "Identifier of existing APIs to be added to the product. This parameter is required.")]
[ValidateNotNullOrEmpty]
public String ApiId { get; set; }
[Parameter(
ValueFromPipelineByPropertyName = true,
Mandatory = false,
HelpMessage = "If specified will write true in case operation succeeds. This parameter is optional. Default value is false.")]
public SwitchParameter PassThru { get; set; }
public override void ExecuteApiManagementCmdlet()
{
Client.ApiAddToProduct(Context, ProductId, ApiId);
if (PassThru)
{
WriteObject(true);
}
}
}
}
\ No newline at end of file
+//
// Copyright (c) Microsoft. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
{
using System;
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
[Cmdlet(VerbsCommon.Add, "AzureRmApiManagementApiToProduct")]
[OutputType(typeof(bool))]
public class AddAzureApiManagementApiToProduct : AzureApiManagementCmdletBase
{
[Parameter(
ValueFromPipelineByPropertyName = true,
Mandatory = true,
HelpMessage = "Instance of PsApiManagementContext. This parameter is required.")]
[ValidateNotNullOrEmpty]
public PsApiManagementContext Context { get; set; }
[Parameter(
ValueFromPipelineByPropertyName = true,
Mandatory = true,
HelpMessage = "Identifier of existing Product to add API to. This parameter is required.")]
[ValidateNotNullOrEmpty]
public String ProductId { get; set; }
[Parameter(
ValueFromPipelineByPropertyName = true,
Mandatory = true,
HelpMessage = "Identifier of existing APIs to be added to the product. This parameter is required.")]
[ValidateNotNullOrEmpty]
public String ApiId { get; set; }
[Parameter(
ValueFromPipelineByPropertyName = true,
Mandatory = false,
HelpMessage = "If specified will write true in case operation succeeds. This parameter is optional. Default value is false.")]
public SwitchParameter PassThru { get; set; }
public override void ExecuteApiManagementCmdlet()
{
Client.ApiAddToProduct(Context, ProductId, ApiId);
if (PassThru)
{
WriteObject(true);
}
}
}
}
\ No newline at end of file
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/AddAzureApiManagementProductToGroup.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/AddAzureApiManagementProductToGroup.cs
index 2a45edeabb0f..ab3daca3319e 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/AddAzureApiManagementProductToGroup.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/AddAzureApiManagementProductToGroup.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.Add, "AzureRMApiManagementProductToGroup")]
+ [Cmdlet(VerbsCommon.Add, "AzureRmApiManagementProductToGroup")]
[OutputType(typeof(bool))]
public class AddAzureApiManagementProductToGroup : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/AddAzureApiManagementUserToGroup.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/AddAzureApiManagementUserToGroup.cs
index f4cc021fd688..b5593fd9c6a6 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/AddAzureApiManagementUserToGroup.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/AddAzureApiManagementUserToGroup.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.Add, "AzureRMApiManagementUserToGroup")]
+ [Cmdlet(VerbsCommon.Add, "AzureRmApiManagementUserToGroup")]
[OutputType(typeof(bool))]
public class AddAzureApiManagementUserToGroup : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/ExportAzureApiManagementApi.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/ExportAzureApiManagementApi.cs
index c0202bbedd9b..2308dcfaf433 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/ExportAzureApiManagementApi.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/ExportAzureApiManagementApi.cs
@@ -22,7 +22,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Properties;
- [Cmdlet(VerbsData.Export, "AzureRMApiManagementApi", DefaultParameterSetName = ExportContentToPipeline)]
+ [Cmdlet(VerbsData.Export, "AzureRmApiManagementApi", DefaultParameterSetName = ExportContentToPipeline)]
[OutputType(typeof(string))]
public class ExportAzureApiManagementApi : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementApi.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementApi.cs
index 1eaacf365c29..ac670fbe0765 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementApi.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementApi.cs
@@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.Get, "AzureRMApiManagementApi", DefaultParameterSetName = AllApis)]
+ [Cmdlet(VerbsCommon.Get, "AzureRmApiManagementApi", DefaultParameterSetName = AllApis)]
[OutputType(typeof(IList))]
public class GetAzureApiManagementApi : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementAuthorizationServer.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementAuthorizationServer.cs
index 612037af97fa..b4018fc9840e 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementAuthorizationServer.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementAuthorizationServer.cs
@@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.Get, "AzureRMApiManagementAuthorizationServer")]
+ [Cmdlet(VerbsCommon.Get, "AzureRmApiManagementAuthorizationServer")]
[OutputType(typeof(IList))]
public class GetAzureApiManagementAuthorizationServer : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementCertificate.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementCertificate.cs
index 59deca31d848..1d2e89ee3645 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementCertificate.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementCertificate.cs
@@ -20,7 +20,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Runtime.InteropServices;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.Get, "AzureRMApiManagementCertificate", DefaultParameterSetName = GetAll)]
+ [Cmdlet(VerbsCommon.Get, "AzureRmApiManagementCertificate", DefaultParameterSetName = GetAll)]
[OutputType(typeof(IList))]
public class GetAzureApiManagementCertificate : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementGroup.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementGroup.cs
index 90cdb5529c5f..a67024405235 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementGroup.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementGroup.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.Get, "AzureRMApiManagementGroup", DefaultParameterSetName = GetAll)]
+ [Cmdlet(VerbsCommon.Get, "AzureRmApiManagementGroup", DefaultParameterSetName = GetAll)]
[OutputType(typeof(PsApiManagementGroup))]
public class GetAzureApiManagementGroup : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementOperation.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementOperation.cs
index 9ee752e3b0cb..85c3294a546c 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementOperation.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementOperation.cs
@@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.Get, "AzureRMApiManagementOperation", DefaultParameterSetName = AllApiOperations)]
+ [Cmdlet(VerbsCommon.Get, "AzureRmApiManagementOperation", DefaultParameterSetName = AllApiOperations)]
[OutputType(typeof(IList))]
public class GetAzureApiManagementOperation : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementPolicy.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementPolicy.cs
index 880366aa86c8..7bb367563b7e 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementPolicy.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementPolicy.cs
@@ -22,7 +22,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Properties;
- [Cmdlet(VerbsCommon.Get, "AzureRMApiManagementPolicy", DefaultParameterSetName = TenantLevel)]
+ [Cmdlet(VerbsCommon.Get, "AzureRmApiManagementPolicy", DefaultParameterSetName = TenantLevel)]
[OutputType(typeof(string))]
public class GetAzureApiManagementPolicy : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementProduct.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementProduct.cs
index 335d89ddb1c4..5e50d7299454 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementProduct.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementProduct.cs
@@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.Get, "AzureRMApiManagementProduct", DefaultParameterSetName = GetAllProducts)]
+ [Cmdlet(VerbsCommon.Get, "AzureRmApiManagementProduct", DefaultParameterSetName = GetAllProducts)]
[OutputType(typeof(IList))]
public class GetAzureApiManagementProduct : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementSubscription.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementSubscription.cs
index 5a4e7d3e31f1..006ef7d21baa 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementSubscription.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementSubscription.cs
@@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.Get, "AzureRMApiManagementSubscription", DefaultParameterSetName = GetAll)]
+ [Cmdlet(VerbsCommon.Get, "AzureRmApiManagementSubscription", DefaultParameterSetName = GetAll)]
[OutputType(typeof(IList))]
public class GetAzureApiManagementSubscription : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementUser.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementUser.cs
index 67b69c1d8db0..1cc9592358e7 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementUser.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementUser.cs
@@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.Get, "AzureRMApiManagementUser", DefaultParameterSetName = GetAll)]
+ [Cmdlet(VerbsCommon.Get, "AzureRmApiManagementUser", DefaultParameterSetName = GetAll)]
[OutputType(typeof(IList))]
public class GetAzureApiManagementUser : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementUserSsoUrl.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementUserSsoUrl.cs
index 38bb968ad3f6..ebf4f6c76570 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementUserSsoUrl.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/GetAzureApiManagementUserSsoUrl.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.Get, "AzureRMApiManagementUserSsoUrl")]
+ [Cmdlet(VerbsCommon.Get, "AzureRmApiManagementUserSsoUrl")]
[OutputType(typeof(string))]
public class GetAzureApiManagementUserSsoUrl : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/ImportAzureApiManagementApi.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/ImportAzureApiManagementApi.cs
index 390beef5c713..da8196788fa7 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/ImportAzureApiManagementApi.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/ImportAzureApiManagementApi.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsData.Import, "AzureRMApiManagementApi", DefaultParameterSetName = FromLocalFile)]
+ [Cmdlet(VerbsData.Import, "AzureRmApiManagementApi", DefaultParameterSetName = FromLocalFile)]
[OutputType(typeof(PsApiManagementApi))]
public class ImportAzureApiManagementApi : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementApi.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementApi.cs
index dc0b4b2cf8ab..dc83d65af483 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementApi.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementApi.cs
@@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.New, "AzureRMApiManagementApi")]
+ [Cmdlet(VerbsCommon.New, "AzureRmApiManagementApi")]
[OutputType(typeof(PsApiManagementApi))]
public class NewAzureApiManagementApi : AzureApiManagementCmdletBase
{
@@ -118,7 +118,7 @@ public override void ExecuteApiManagementCmdlet()
if (ProductIds != null && ProductIds.Any())
{
- WriteProgress(new ProgressRecord(0, "New-AzureRMApiManagementApi", "New API created. Adding to products..."));
+ WriteProgress(new ProgressRecord(0, "New-AzureRmApiManagementApi", "New API created. Adding to products..."));
foreach (var productId in ProductIds)
{
@@ -128,7 +128,7 @@ public override void ExecuteApiManagementCmdlet()
WriteProgress(
new ProgressRecord(
0,
- "New-AzureRMApiManagementApi",
+ "New-AzureRmApiManagementApi",
string.Format("... Added to product {0}", productId))
);
}
@@ -137,7 +137,7 @@ public override void ExecuteApiManagementCmdlet()
WriteProgress(
new ProgressRecord(
0,
- "New-AzureRMApiManagementApi",
+ "New-AzureRmApiManagementApi",
string.Format("... Failed to add to product {0} due to: {1}", productId, ex))
);
}
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementAuthorizationServer.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementAuthorizationServer.cs
index 186d60e8c27e..57f05ae42772 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementAuthorizationServer.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementAuthorizationServer.cs
@@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.New, "AzureRMApiManagementAuthorizationServer")]
+ [Cmdlet(VerbsCommon.New, "AzureRmApiManagementAuthorizationServer")]
[OutputType(typeof(PsApiManagementOAuth2AuthrozationServer))]
public class NewAzureApiManagementAuthorizationServer : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementCertificate.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementCertificate.cs
index f1ac6c5811a4..d94fcc153836 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementCertificate.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementCertificate.cs
@@ -20,7 +20,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Security.Cryptography.X509Certificates;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.New, "AzureRMApiManagementCertificate", DefaultParameterSetName = FromFile)]
+ [Cmdlet(VerbsCommon.New, "AzureRmApiManagementCertificate", DefaultParameterSetName = FromFile)]
[OutputType(typeof(PsApiManagementCertificate))]
public class NewAzureApiManagementCertificate : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementContext.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementContext.cs
index e3b4219622ef..891f7fbb36e7 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementContext.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementContext.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
using Microsoft.WindowsAzure.Commands.Utilities.Common;
- [Cmdlet(VerbsCommon.New, "AzureRMApiManagementContext"), OutputType(typeof (PsApiManagementContext))]
+ [Cmdlet(VerbsCommon.New, "AzureRmApiManagementContext"), OutputType(typeof (PsApiManagementContext))]
public class NewAzureApiManagementContext : AzureApiManagementCmdletBase
{
[Parameter(
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementGroup.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementGroup.cs
index f48ac577e442..81e19fa496f6 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementGroup.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementGroup.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.New, "AzureRMApiManagementGroup")]
+ [Cmdlet(VerbsCommon.New, "AzureRmApiManagementGroup")]
[OutputType(typeof(PsApiManagementGroup))]
public class NewAzureApiManagementGroup : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementOperation.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementOperation.cs
index 0d08de1cd17a..76b49fc2ade9 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementOperation.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementOperation.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.New, "AzureRMApiManagementOperation")]
+ [Cmdlet(VerbsCommon.New, "AzureRmApiManagementOperation")]
[OutputType(typeof(PsApiManagementOperation))]
public class NewAzureApiManagementOperation : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementProduct.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementProduct.cs
index 972dc1f104be..0032d81e8590 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementProduct.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementProduct.cs
@@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Text.RegularExpressions;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.New, "AzureRMApiManagementProduct")]
+ [Cmdlet(VerbsCommon.New, "AzureRmApiManagementProduct")]
[OutputType(typeof(PsApiManagementProduct))]
public class NewAzureApiManagementProduct : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementSubscription.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementSubscription.cs
index 51e8b2479246..95571625d69c 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementSubscription.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementSubscription.cs
@@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Runtime.InteropServices;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.New, "AzureRMApiManagementSubscription")]
+ [Cmdlet(VerbsCommon.New, "AzureRmApiManagementSubscription")]
[OutputType(typeof(PsApiManagementSubscription))]
public class NewAzureApiManagementSubscription : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementUser.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementUser.cs
index 5c20af753d41..fcf44ed5d3ae 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementUser.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementUser.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.New, "AzureRMApiManagementUser")]
+ [Cmdlet(VerbsCommon.New, "AzureRmApiManagementUser")]
[OutputType(typeof(PsApiManagementUser))]
public class NewAzureApiManagementUser : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementApi.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementApi.cs
index 4de8a10c028f..9d10f3bdc1cf 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementApi.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementApi.cs
@@ -20,7 +20,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Properties;
- [Cmdlet(VerbsCommon.Remove, "AzureRMApiManagementApi")]
+ [Cmdlet(VerbsCommon.Remove, "AzureRmApiManagementApi")]
[OutputType(typeof(bool))]
public class RemoveAzureApiManagementApi : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementApiFromProduct.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementApiFromProduct.cs
index 8893abefd865..26804fa283b6 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementApiFromProduct.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementApiFromProduct.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.Remove, "AzureRMApiManagementApiFromProduct")]
+ [Cmdlet(VerbsCommon.Remove, "AzureRmApiManagementApiFromProduct")]
[OutputType(typeof(bool))]
public class RemoveAzureApiManagementApiFromProduct : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementAuthorizationServer.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementAuthorizationServer.cs
index 69c45125b7f4..a0c5c71fd111 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementAuthorizationServer.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementAuthorizationServer.cs
@@ -20,7 +20,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Properties;
- [Cmdlet(VerbsCommon.Remove, "AzureRMApiManagementAuthorizationServer")]
+ [Cmdlet(VerbsCommon.Remove, "AzureRmApiManagementAuthorizationServer")]
[OutputType(typeof(bool))]
public class RemoveAzureApiManagementAuthorizationServer : AzureApiManagementRemoveCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementCertificate.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementCertificate.cs
index dd717aa3c934..a8ecc54a6964 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementCertificate.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementCertificate.cs
@@ -20,7 +20,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Properties;
- [Cmdlet(VerbsCommon.Remove, "AzureRMApiManagementCertificate")]
+ [Cmdlet(VerbsCommon.Remove, "AzureRmApiManagementCertificate")]
[OutputType(typeof(bool))]
public class RemoveAzureApiManagementCertificate : AzureApiManagementRemoveCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementGroup.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementGroup.cs
index c1b8cbb3a174..a22d737480ed 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementGroup.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementGroup.cs
@@ -20,7 +20,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Properties;
- [Cmdlet(VerbsCommon.Remove, "AzureRMApiManagementGroup")]
+ [Cmdlet(VerbsCommon.Remove, "AzureRmApiManagementGroup")]
[OutputType(typeof(bool))]
public class RemoveAzureApiManagementGroup : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementOperation.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementOperation.cs
index aa9700851d59..48fe0927898d 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementOperation.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementOperation.cs
@@ -20,7 +20,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Properties;
- [Cmdlet(VerbsCommon.Remove, "AzureRMApiManagementOperation")]
+ [Cmdlet(VerbsCommon.Remove, "AzureRmApiManagementOperation")]
[OutputType(typeof(bool))]
public class RemoveAzureApiManagementOperation : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementPolicy.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementPolicy.cs
index cbe346efac47..06fdaa3c2838 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementPolicy.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementPolicy.cs
@@ -20,7 +20,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Properties;
- [Cmdlet(VerbsCommon.Remove, "AzureRMApiManagementPolicy", DefaultParameterSetName = TenantLevel)]
+ [Cmdlet(VerbsCommon.Remove, "AzureRmApiManagementPolicy", DefaultParameterSetName = TenantLevel)]
[OutputType(typeof(bool))]
public class RemoveAzureApiManagementPolicy : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementProduct.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementProduct.cs
index 7680f6dd83b9..87fbbe3d5162 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementProduct.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementProduct.cs
@@ -20,7 +20,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Properties;
- [Cmdlet(VerbsCommon.Remove, "AzureRMApiManagementProduct")]
+ [Cmdlet(VerbsCommon.Remove, "AzureRmApiManagementProduct")]
[OutputType(typeof(bool))]
public class RemoveAzureApiManagementProduct : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementProductFromGroup.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementProductFromGroup.cs
index ceb3fb73d3e0..1ed8fa0d2c78 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementProductFromGroup.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementProductFromGroup.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.Remove, "AzureRMApiManagementProductFromGroup")]
+ [Cmdlet(VerbsCommon.Remove, "AzureRmApiManagementProductFromGroup")]
[OutputType(typeof(bool))]
public class RemoveAzureApiManagementProductFromGroup : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementSubscription.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementSubscription.cs
index 8d273cd6e669..22b75323392d 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementSubscription.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementSubscription.cs
@@ -20,7 +20,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Properties;
- [Cmdlet(VerbsCommon.Remove, "AzureRMApiManagementSubscription")]
+ [Cmdlet(VerbsCommon.Remove, "AzureRmApiManagementSubscription")]
[OutputType(typeof(bool))]
public class RemoveAzureApiManagementSubscription : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementUser.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementUser.cs
index 1daf4d995c47..7e11e218fdf8 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementUser.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementUser.cs
@@ -20,7 +20,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Properties;
- [Cmdlet(VerbsCommon.Remove, "AzureRMApiManagementUser")]
+ [Cmdlet(VerbsCommon.Remove, "AzureRmApiManagementUser")]
[OutputType(typeof(bool))]
public class RemoveAzureApiManagementUser : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementUserFromGroup.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementUserFromGroup.cs
index 21c2f7bd50c6..8656b35407cd 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementUserFromGroup.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementUserFromGroup.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.Remove, "AzureRMApiManagementUserFromGroup")]
+ [Cmdlet(VerbsCommon.Remove, "AzureRmApiManagementUserFromGroup")]
[OutputType(typeof(bool))]
public class RemoveAzureApiManagementUserFromGroup : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementApi.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementApi.cs
index 5426bf99d08b..5a1e2c91a922 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementApi.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementApi.cs
@@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.Set, "AzureRMApiManagementApi")]
+ [Cmdlet(VerbsCommon.Set, "AzureRmApiManagementApi")]
[OutputType(typeof(PsApiManagementApi))]
public class SetAzureApiManagementApi : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementAuthorizationServer.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementAuthorizationServer.cs
index e6522ebac0c8..eb0f258807d4 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementAuthorizationServer.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementAuthorizationServer.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.Set, "AzureRMApiManagementAuthorizationServer")]
+ [Cmdlet(VerbsCommon.Set, "AzureRmApiManagementAuthorizationServer")]
[OutputType(typeof (PsApiManagementOAuth2AuthrozationServer))]
public class SetAzureApiManagementAuthorizationServer : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementCertificate.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementCertificate.cs
index 3e3cead5b69a..9441b6d4ad05 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementCertificate.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementCertificate.cs
@@ -20,7 +20,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Security.Cryptography.X509Certificates;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.Set, "AzureRMApiManagementCertificate", DefaultParameterSetName = FromFile)]
+ [Cmdlet(VerbsCommon.Set, "AzureRmApiManagementCertificate", DefaultParameterSetName = FromFile)]
[OutputType(typeof(PsApiManagementCertificate))]
public class SetAzureApiManagementCertificate : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementGroup.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementGroup.cs
index 2f77ff216555..7afcbcfd5a7d 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementGroup.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementGroup.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.Set, "AzureRMApiManagementGroup")]
+ [Cmdlet(VerbsCommon.Set, "AzureRmApiManagementGroup")]
[OutputType(typeof(PsApiManagementGroup))]
public class SetAzureApiManagementGroup : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementOperation.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementOperation.cs
index 8daea6a48a1e..25f5c8b116f5 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementOperation.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementOperation.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.Set, "AzureRMApiManagementOperation")]
+ [Cmdlet(VerbsCommon.Set, "AzureRmApiManagementOperation")]
[OutputType(typeof(PsApiManagementOperation))]
public class SetAzureApiManagementOperation : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementPolicy.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementPolicy.cs
index 3cba353fb35d..fbe170ca3792 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementPolicy.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementPolicy.cs
@@ -20,7 +20,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Text;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.Set, "AzureRMApiManagementPolicy", DefaultParameterSetName = TenantLevel)]
+ [Cmdlet(VerbsCommon.Set, "AzureRmApiManagementPolicy", DefaultParameterSetName = TenantLevel)]
[OutputType(typeof(bool))]
public class SetAzureApiManagementPolicy : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementProduct.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementProduct.cs
index 353396e6121c..bd1ab1d0548b 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementProduct.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementProduct.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.Set, "AzureRMApiManagementProduct")]
+ [Cmdlet(VerbsCommon.Set, "AzureRmApiManagementProduct")]
[OutputType(typeof(PsApiManagementProduct))]
public class SetAzureApiManagementProduct : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementSubscription.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementSubscription.cs
index c99cb78c7df4..46d3b575d7a1 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementSubscription.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementSubscription.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.Set, "AzureRMApiManagementSubscription")]
+ [Cmdlet(VerbsCommon.Set, "AzureRmApiManagementSubscription")]
[OutputType(typeof(PsApiManagementSubscription))]
public class SetAzureApiManagementSubscription : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementUser.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementUser.cs
index baea3c98b20b..283f8f1dc468 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementUser.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementUser.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
- [Cmdlet(VerbsCommon.Set, "AzureRMApiManagementUser")]
+ [Cmdlet(VerbsCommon.Set, "AzureRmApiManagementUser")]
[OutputType(typeof(PsApiManagementUser))]
public class SetAzureApiManagementUser : AzureApiManagementCmdletBase
{
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Microsoft.Azure.Commands.ApiManagement.ServiceManagement.dll-help.xml b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Microsoft.Azure.Commands.ApiManagement.ServiceManagement.dll-help.xml
index f1bec2255f7f..3688fb6e4c1a 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Microsoft.Azure.Commands.ApiManagement.ServiceManagement.dll-help.xml
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Microsoft.Azure.Commands.ApiManagement.ServiceManagement.dll-help.xml
@@ -2,7 +2,7 @@
- Add-AzureRMApiManagementApiToProduct
+ Add-AzureRmApiManagementApiToProductAdds existing API to existing Product.
@@ -18,7 +18,7 @@
- Add-AzureRMApiManagementApiToProduct
+ Add-AzureRmApiManagementApiToProductContext
@@ -158,7 +158,7 @@
PS C:\>
- Add-AzureRMApiManagementApiToProduct –Context $apimContext –ProductId 0123456789 –ApiId 0001
+ Add-AzureRmApiManagementApiToProduct –Context $apimContext –ProductId 0123456789 –ApiId 0001Add existing API to an existing Product.
@@ -180,7 +180,7 @@
- Add-AzureRMApiManagementProductToGroup
+ Add-AzureRmApiManagementProductToGroupAdds existing product to existing group. In other words assigns a group to a product.
@@ -196,7 +196,7 @@
- Add-AzureRMApiManagementProductToGroup
+ Add-AzureRmApiManagementProductToGroupContext
@@ -336,7 +336,7 @@
PS C:\>
- Add-AzureRMApiManagementProductToGroup –Context $apimContext –GroupId 0001 –ProductId 0123456789
+ Add-AzureRmApiManagementProductToGroup –Context $apimContext –GroupId 0001 –ProductId 0123456789Add existing product to an existing group.
@@ -358,7 +358,7 @@
- Add-AzureRMApiManagementUserToGroup
+ Add-AzureRmApiManagementUserToGroupAdds existing user to existing group.
@@ -374,7 +374,7 @@
- Add-AzureRMApiManagementUserToGroup
+ Add-AzureRmApiManagementUserToGroupContext
@@ -514,7 +514,7 @@
PS C:\>
- Add-AzureRMApiManagementUserToGroup –Context $apimContext –GroupId 0001 –UserId 0123456789
+ Add-AzureRmApiManagementUserToGroup –Context $apimContext –GroupId 0001 –UserId 0123456789Add existing user to an existing group.
@@ -536,7 +536,7 @@
- Export-AzureRMApiManagementApi
+ Export-AzureRmApiManagementApiExport API to file in one of the supported formats.
@@ -552,7 +552,7 @@
- Export-AzureRMApiManagementApi
+ Export-AzureRmApiManagementApiContext
@@ -583,7 +583,7 @@
- Export-AzureRMApiManagementApi
+ Export-AzureRmApiManagementApiContext
@@ -772,7 +772,7 @@ true/false
PS C:\>
- Export-AzureRMApiManagementApi –Context $apimContext –ApiId 0123456789 –SpecificationFormat 'Wadl' –SaveAs 'C:\contoso\specifications\0123456789.wadl'
+ Export-AzureRmApiManagementApi –Context $apimContext –ApiId 0123456789 –SpecificationFormat 'Wadl' –SaveAs 'C:\contoso\specifications\0123456789.wadl'Export API to file as WADL.
@@ -794,7 +794,7 @@ true/false
- Get-AzureRMApiManagementApi
+ Get-AzureRmApiManagementApiGets a list or a particular API description.
@@ -810,7 +810,7 @@ true/false
- Get-AzureRMApiManagementApi
+ Get-AzureRmApiManagementApiContext
@@ -827,7 +827,7 @@ true/false
- Get-AzureRMApiManagementApi
+ Get-AzureRmApiManagementApiContext
@@ -851,7 +851,7 @@ true/false
- Get-AzureRMApiManagementApi
+ Get-AzureRmApiManagementApiContext
@@ -875,7 +875,7 @@ true/false
- Get-AzureRMApiManagementApi
+ Get-AzureRmApiManagementApiContext
@@ -1011,7 +1011,7 @@ true/false
PS C:\>
- Get-AzureRMApiManagementApi –Context $apimContext
+ Get-AzureRmApiManagementApi –Context $apimContextGet list of all APIs.
@@ -1031,7 +1031,7 @@ true/false
PS C:\>
- Get-AzureRMApiManagementApi –Context $apimContext –ApiId $apiId
+ Get-AzureRmApiManagementApi –Context $apimContext –ApiId $apiIdGet API by Id.
@@ -1051,7 +1051,7 @@ true/false
PS C:\>
- Get-AzureRMApiManagementApi –Context $apimContext –Name "EchoApi"
+ Get-AzureRmApiManagementApi –Context $apimContext –Name "EchoApi"Get API by Name
@@ -1073,7 +1073,7 @@ true/false
- Get-AzureRMApiManagementAuthorizationServer
+ Get-AzureRmApiManagementAuthorizationServerGets all or specific authorization servers.
@@ -1089,7 +1089,7 @@ true/false
- Get-AzureRMApiManagementAuthorizationServer
+ Get-AzureRmApiManagementAuthorizationServerContext
@@ -1201,7 +1201,7 @@ true/false
PS C:\>
- Get-AzureRMApiManagementAuthrizarionServer –Context $apimContext
+ Get-AzureRmApiManagementAuthrizarionServer –Context $apimContextGet all authorization servers.
@@ -1221,7 +1221,7 @@ true/false
PS C:\>
- Get-AzureRMApiManagementCertificate –Context $apimContext –ServerId 0123456789
+ Get-AzureRmApiManagementCertificate –Context $apimContext –ServerId 0123456789Get specific authorization server.
@@ -1243,7 +1243,7 @@ true/false
- Get-AzureRMApiManagementCertificate
+ Get-AzureRmApiManagementCertificateGets all or specific certificates.
@@ -1259,7 +1259,7 @@ true/false
- Get-AzureRMApiManagementCertificate
+ Get-AzureRmApiManagementCertificateContext
@@ -1276,7 +1276,7 @@ true/false
- Get-AzureRMApiManagementCertificate
+ Get-AzureRmApiManagementCertificateContext
@@ -1378,7 +1378,7 @@ true/false
PS C:\>
- Get-AzureRMApiManagementCertificate –Context $apimContext
+ Get-AzureRmApiManagementCertificate –Context $apimContextGet all certificates.
@@ -1398,7 +1398,7 @@ true/false
PS C:\>
- Get-AzureRMApiManagementCertificate –Context $apimContext –CertificateId 0123456789
+ Get-AzureRmApiManagementCertificate –Context $apimContext –CertificateId 0123456789Get specific certificate.
@@ -1420,7 +1420,7 @@ true/false
- Get-AzureRMApiManagementGroup
+ Get-AzureRmApiManagementGroupGets all or specific groups.
@@ -1436,7 +1436,7 @@ true/false
- Get-AzureRMApiManagementGroup
+ Get-AzureRmApiManagementGroupContext
@@ -1460,7 +1460,7 @@ true/false
- Get-AzureRMApiManagementGroup
+ Get-AzureRmApiManagementGroupContext
@@ -1491,7 +1491,7 @@ true/false
- Get-AzureRMApiManagementGroup
+ Get-AzureRmApiManagementGroupContext
@@ -1522,7 +1522,7 @@ true/false
- Get-AzureRMApiManagementGroup
+ Get-AzureRmApiManagementGroupContext
@@ -1677,7 +1677,7 @@ true/false
PS C:\>
- Get-AzureRMApiManagementGroup –Context $apimContext
+ Get-AzureRmApiManagementGroup –Context $apimContextGet all groups.
@@ -1697,7 +1697,7 @@ true/false
PS C:\>
- Get-AzureRMApiManagementGroup –Context $apimContext –GroupId 0123456789
+ Get-AzureRmApiManagementGroup –Context $apimContext –GroupId 0123456789Get group by identifier.
@@ -1717,7 +1717,7 @@ true/false
PS C:\>
- Get-AzureRMApiManagementGroup –Context $apimContext –Name 'Custom group'
+ Get-AzureRmApiManagementGroup –Context $apimContext –Name 'Custom group'Get group by name.
@@ -1737,7 +1737,7 @@ true/false
PS C:\>
- Get-AzureRMApiManagementGroup –Context $apimContext –UserId 0123456789
+ Get-AzureRmApiManagementGroup –Context $apimContext –UserId 0123456789Get all user groups.
@@ -1759,7 +1759,7 @@ true/false
- Get-AzureRMApiManagementOperation
+ Get-AzureRmApiManagementOperationGets a list or a particular API Operation.
@@ -1775,7 +1775,7 @@ true/false
- Get-AzureRMApiManagementOperation
+ Get-AzureRmApiManagementOperationContext
@@ -1799,7 +1799,7 @@ true/false
- Get-AzureRMApiManagementOperation
+ Get-AzureRmApiManagementOperationContext
@@ -1931,7 +1931,7 @@ true/false
PS C:\>
- Get-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId
+ Get-AzureRmApiManagementOperation –Context $apimContext –ApiId $apiIdGet all API Operations.
@@ -1951,7 +1951,7 @@ true/false
PS C:\>
- Get-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –OperationId 0123456789
+ Get-AzureRmApiManagementOperation –Context $apimContext –ApiId $apiId –OperationId 0123456789Get Operation by id.
@@ -1973,7 +1973,7 @@ true/false
- Get-AzureRMApiManagementPolicy
+ Get-AzureRmApiManagementPolicyGets specified scope policy.
@@ -1989,7 +1989,7 @@ true/false
- Get-AzureRMApiManagementPolicy
+ Get-AzureRmApiManagementPolicyContext
@@ -2027,7 +2027,7 @@ true/false
- Get-AzureRMApiManagementPolicy
+ Get-AzureRmApiManagementPolicyContext
@@ -2072,7 +2072,7 @@ true/false
- Get-AzureRMApiManagementPolicy
+ Get-AzureRmApiManagementPolicyContext
@@ -2124,7 +2124,7 @@ true/false
- Get-AzureRMApiManagementPolicy
+ Get-AzureRmApiManagementPolicyContext
@@ -2317,7 +2317,7 @@ true/false
PS C:\>
- Get-AzureRMApiManagementPolicy –Context $apimContext –SaveAs 'C:\contoso\policies\tenantpolicy.xml'
+ Get-AzureRmApiManagementPolicy –Context $apimContext –SaveAs 'C:\contoso\policies\tenantpolicy.xml'Get tenant level policy and save to file named tenantpolicy.xml.
@@ -2337,7 +2337,7 @@ true/false
PS C:\>
- $policyString = Get-AzureRMApiManagementPolicy –Context $apimContext –ProductId 0123456789
+ $policyString = Get-AzureRmApiManagementPolicy –Context $apimContext –ProductId 0123456789Get product-scope policy
@@ -2357,7 +2357,7 @@ true/false
PS C:\>
- $policyString = Get-AzureRMApiManagementPolicy –Context $apimContext –ApiId 9876543210
+ $policyString = Get-AzureRmApiManagementPolicy –Context $apimContext –ApiId 9876543210Get API-scope policy.
@@ -2377,7 +2377,7 @@ true/false
PS C:\>
- Get-AzureRMApiManagementPolicy –Context $apimContext –ApiId 9876543210 –OperationId 777
+ Get-AzureRmApiManagementPolicy –Context $apimContext –ApiId 9876543210 –OperationId 777Get operation-scope policy.
@@ -2399,7 +2399,7 @@ true/false
- Get-AzureRMApiManagementProduct
+ Get-AzureRmApiManagementProductGets a list or a particular Product.
@@ -2415,7 +2415,7 @@ true/false
- Get-AzureRMApiManagementProduct
+ Get-AzureRmApiManagementProductContext
@@ -2432,7 +2432,7 @@ true/false
- Get-AzureRMApiManagementProduct
+ Get-AzureRmApiManagementProductContext
@@ -2456,7 +2456,7 @@ true/false
- Get-AzureRMApiManagementProduct
+ Get-AzureRmApiManagementProductContext
@@ -2581,7 +2581,7 @@ true/false
PS C:\>
- Get-AzureRMApiManagementProduct –Context $apimContext
+ Get-AzureRmApiManagementProduct –Context $apimContextGet all Products.
@@ -2601,7 +2601,7 @@ true/false
PS C:\>
- Get-AzureRMApiManagementProduct –Context $apimContext –ProductId 0123456789
+ Get-AzureRmApiManagementProduct –Context $apimContext –ProductId 0123456789Get Product by id.
@@ -2623,7 +2623,7 @@ true/false
- Get-AzureRMApiManagementSubscription
+ Get-AzureRmApiManagementSubscriptionGets all or specific subscriptions.
@@ -2639,7 +2639,7 @@ true/false
- Get-AzureRMApiManagementSubscription
+ Get-AzureRmApiManagementSubscriptionContext
@@ -2656,7 +2656,7 @@ true/false
- Get-AzureRMApiManagementSubscription
+ Get-AzureRmApiManagementSubscriptionContext
@@ -2680,7 +2680,7 @@ true/false
- Get-AzureRMApiManagementSubscription
+ Get-AzureRmApiManagementSubscriptionContext
@@ -2704,7 +2704,7 @@ true/false
- Get-AzureRMApiManagementSubscription
+ Get-AzureRmApiManagementSubscriptionContext
@@ -2840,7 +2840,7 @@ true/false
PS C:\>
- Get-AzureRMApiManagementSubscription –Context $apimContext
+ Get-AzureRmApiManagementSubscription –Context $apimContextGet all subscriptions.
@@ -2860,7 +2860,7 @@ true/false
PS C:\>
- Get-AzureRMApiManagementSubscription –Context $apimContext –SubscriptionId 0123456789
+ Get-AzureRmApiManagementSubscription –Context $apimContext –SubscriptionId 0123456789Get subscription by Id.
@@ -2880,7 +2880,7 @@ true/false
PS C:\>
- Get-AzureRMApiManagementSubscription –Context $apimContext –UserId 777
+ Get-AzureRmApiManagementSubscription –Context $apimContext –UserId 777Get all users subscriptions.
@@ -2900,7 +2900,7 @@ true/false
PS C:\>
- Get-AzureRMApiManagementSubscription –Context $apimContext –ProductId 999
+ Get-AzureRmApiManagementSubscription –Context $apimContext –ProductId 999Get all subscriptions for the product.
@@ -2922,7 +2922,7 @@ true/false
- Get-AzureRMApiManagementUser
+ Get-AzureRmApiManagementUserGets all or specific user.
@@ -2938,7 +2938,7 @@ true/false
- Get-AzureRMApiManagementUser
+ Get-AzureRmApiManagementUserContext
@@ -2955,7 +2955,7 @@ true/false
- Get-AzureRMApiManagementUser
+ Get-AzureRmApiManagementUserContext
@@ -2979,7 +2979,7 @@ true/false
- Get-AzureRMApiManagementUser
+ Get-AzureRmApiManagementUserContext
@@ -3179,7 +3179,7 @@ true/false
PS C:\>
- Get-AzureRMApiManagementUser –Context $apimContext
+ Get-AzureRmApiManagementUser –Context $apimContextGet all users.
@@ -3199,7 +3199,7 @@ true/false
PS C:\>
- Get-AzureRMApiManagementUser –Context $apimContext –UserId 0123456789
+ Get-AzureRmApiManagementUser –Context $apimContext –UserId 0123456789Get user by Id.
@@ -3219,7 +3219,7 @@ true/false
PS C:\>
- Get-AzureRMApiManagementUser –Context $apimContext –LastName 'Ivanov'
+ Get-AzureRmApiManagementUser –Context $apimContext –LastName 'Ivanov'Get users by last name.
@@ -3239,7 +3239,7 @@ true/false
PS C:\>
- Get-AzureRMApiManagementUser –Context $apimContext –Email 'user@contoso.com'
+ Get-AzureRmApiManagementUser –Context $apimContext –Email 'user@contoso.com'Get user by email.
@@ -3259,7 +3259,7 @@ true/false
PS C:\>
- Get-AzureRMApiManagementUser –Context $apimContext –GroupId 0001
+ Get-AzureRmApiManagementUser –Context $apimContext –GroupId 0001Get all users within the group.
@@ -3281,7 +3281,7 @@ true/false
- Get-AzureRMApiManagementUserSsoUrl
+ Get-AzureRmApiManagementUserSsoUrlGenerates SSO URL for the user.
@@ -3297,7 +3297,7 @@ true/false
- Get-AzureRMApiManagementUserSsoUrl
+ Get-AzureRmApiManagementUserSsoUrlContext
@@ -3399,7 +3399,7 @@ true/false
PS C:\>
- Get-AzureRMApiManagementUserSsoUrl –Context $apimContext –UserId 0123456789
+ Get-AzureRmApiManagementUserSsoUrl –Context $apimContext –UserId 0123456789Get user SSO URL.
@@ -3421,7 +3421,7 @@ true/false
- Import-AzureRMApiManagementApi
+ Import-AzureRmApiManagementApiImports API from file or URL in one of the supported formats.
@@ -3437,7 +3437,7 @@ true/false
- Import-AzureRMApiManagementApi
+ Import-AzureRmApiManagementApiContext
@@ -3482,7 +3482,7 @@ true/false
- Import-AzureRMApiManagementApi
+ Import-AzureRmApiManagementApiContext
@@ -3653,7 +3653,7 @@ Imported API
PS C:\>
- Import-AzureRMApiManagementApi –Context $apimContext –SpecificationFormat 'Wadl' –SpecificationPath 'C:\contoso\specifications\echoapi.wadl' –Path 'apis'
+ Import-AzureRmApiManagementApi –Context $apimContext –SpecificationFormat 'Wadl' –SpecificationPath 'C:\contoso\specifications\echoapi.wadl' –Path 'apis'Import API from WADL file.
@@ -3673,7 +3673,7 @@ Imported API
PS C:\>
- Import-AzureRMApiManagementApi –Context $apimContext –SpecificationFormat 'Swagger' –SpecificationPath 'C:\contoso\specifications\echoapi.swagger' –Path 'apis'
+ Import-AzureRmApiManagementApi –Context $apimContext –SpecificationFormat 'Swagger' –SpecificationPath 'C:\contoso\specifications\echoapi.swagger' –Path 'apis'Import API from Swagger file.
@@ -3693,7 +3693,7 @@ Imported API
PS C:\>
- Import-AzureRMApiManagementApi –Context $apimContext –SpecificationFormat 'Wadl' –SpecificationUrl 'http://contoso.com/specifications/wadl/echoapi' –Path 'apis'
+ Import-AzureRmApiManagementApi –Context $apimContext –SpecificationFormat 'Wadl' –SpecificationUrl 'http://contoso.com/specifications/wadl/echoapi' –Path 'apis'Import API from WADL link.
@@ -3715,7 +3715,7 @@ Imported API
- New-AzureRMApiManagementApi
+ New-AzureRmApiManagementApiCreates new API.
@@ -3731,7 +3731,7 @@ Imported API
- New-AzureRMApiManagementApi
+ New-AzureRmApiManagementApiContext
@@ -4023,7 +4023,7 @@ Imported API
PS C:\>
- New-AzureRMApiManagementApi –Context $apimContext –Name EchoApi –ServiceUrl 'https://contoso.com/apis/echo' -Protocols @('http', 'https')
+ New-AzureRmApiManagementApi –Context $apimContext –Name EchoApi –ServiceUrl 'https://contoso.com/apis/echo' -Protocols @('http', 'https')Create new API.
@@ -4045,7 +4045,7 @@ Imported API
- New-AzureRMApiManagementAuthorizationServer
+ New-AzureRmApiManagementAuthorizationServerCreates new authorization server.
@@ -4061,7 +4061,7 @@ Imported API
- New-AzureRMApiManagementAuthorizationServer
+ New-AzureRmApiManagementAuthorizationServerContext
@@ -4467,7 +4467,7 @@ Imported API
PS C:\>
- New-AzureRMApiManagementAuthrizarionServer –Context $apimContext –Name 'Contoso OAuth2 server' –ClientRegistrationPageUrl 'https://contoso/signup' -AthorizationEndpointUrl 'https://contoso/auth' -TokenEndpointUrl 'https://contoso/token' -ClientId clientid -ClientSecret e041ed1b660b4eadbad5a29d066e6e88 –AuthorizationRequestMethods @('Get', 'Post') –GrantTypes @( 'AuthorizationCode', 'Implicit', 'ResourceOwnerPassword', 'ClientCredentials') –ClientAuthenticationMethods @('Basic') –TokenBodyParameters @{'par1'='val1'; 'par2'='val2'} –AccessTokenSendingMethods @('AuthorizationHeader', 'Query') –ResourceOwnerUsername 'ivan' –ResourveOwnerPassword 'qwerty'
+ New-AzureRmApiManagementAuthrizarionServer –Context $apimContext –Name 'Contoso OAuth2 server' –ClientRegistrationPageUrl 'https://contoso/signup' -AthorizationEndpointUrl 'https://contoso/auth' -TokenEndpointUrl 'https://contoso/token' -ClientId clientid -ClientSecret e041ed1b660b4eadbad5a29d066e6e88 –AuthorizationRequestMethods @('Get', 'Post') –GrantTypes @( 'AuthorizationCode', 'Implicit', 'ResourceOwnerPassword', 'ClientCredentials') –ClientAuthenticationMethods @('Basic') –TokenBodyParameters @{'par1'='val1'; 'par2'='val2'} –AccessTokenSendingMethods @('AuthorizationHeader', 'Query') –ResourceOwnerUsername 'ivan' –ResourveOwnerPassword 'qwerty'Create new authorization server.
@@ -4489,7 +4489,7 @@ Imported API
- New-AzureRMApiManagementCertificate
+ New-AzureRmApiManagementCertificateCreates new certificate.
@@ -4505,7 +4505,7 @@ Imported API
- New-AzureRMApiManagementCertificate
+ New-AzureRmApiManagementCertificateContext
@@ -4543,7 +4543,7 @@ Imported API
- New-AzureRMApiManagementCertificate
+ New-AzureRmApiManagementCertificateContext
@@ -4695,7 +4695,7 @@ Imported API
PS C:\>
- New-AzureRMApiManagementCertificate –Context $apimContext –PfxFilePath 'C:\contoso\certificates\apimanagement.pfx' –PfxPassword 1111
+ New-AzureRmApiManagementCertificate –Context $apimContext –PfxFilePath 'C:\contoso\certificates\apimanagement.pfx' –PfxPassword 1111Create/upload new certificate.
@@ -4717,7 +4717,7 @@ Imported API
- New-AzureRMApiManagementContext
+ New-AzureRmApiManagementContextCreate PsAzureApiManagementContext.
@@ -4733,7 +4733,7 @@ Imported API
- New-AzureRMApiManagementContext
+ New-AzureRmApiManagementContextResourceGroupName
@@ -4835,7 +4835,7 @@ Imported API
PS C:\>
- $apimContext = New-AzureRMApiManagementContext –ResourceGroupName contosoresources –ServiceName contoso
+ $apimContext = New-AzureRmApiManagementContext –ResourceGroupName contosoresources –ServiceName contosoCreate an instance of PsApiManagementContext
@@ -4857,7 +4857,7 @@ Imported API
- New-AzureRMApiManagementGroup
+ New-AzureRmApiManagementGroupCreates new group.
@@ -4873,7 +4873,7 @@ Imported API
- New-AzureRMApiManagementGroup
+ New-AzureRmApiManagementGroupContext
@@ -5013,7 +5013,7 @@ Imported API
PS C:\>
- New-AzureRMApiManagementGroup –Context $apimContext –Name 'Best devs'
+ New-AzureRmApiManagementGroup –Context $apimContext –Name 'Best devs'Create new group.
@@ -5035,7 +5035,7 @@ Imported API
- New-AzureRMApiManagementOperation
+ New-AzureRmApiManagementOperationCreate new API Operation.
@@ -5051,7 +5051,7 @@ Imported API
- New-AzureRMApiManagementOperation
+ New-AzureRmApiManagementOperationContext
@@ -5305,7 +5305,7 @@ Imported API
PS C:\>
- New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –OperationId 01234567890 –Name 'Get resource' –Method 'GET' –UrlTemplate '/resource' –Description 'Use this operation to get resource'
+ New-AzureRmApiManagementOperation –Context $apimContext –ApiId $apiId –OperationId 01234567890 –Name 'Get resource' –Method 'GET' –UrlTemplate '/resource' –Description 'Use this operation to get resource'Create new operation.
@@ -5356,7 +5356,7 @@ $request.Representations = @($requestRepresentation)
#create response
$response = New-Object –TypeName Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResponse
$response.StatusCode = 204
-New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –OperationId 01234567890 –Name 'Create/update resource' –Method 'PUT' –UrlTemplate '/resource/{rid}?q={query}' –Description 'Use this operation to create new or update existing resource' –TemplateParameters @($rid, $query) –Request $request –Responses @($response)
+New-AzureRmApiManagementOperation –Context $apimContext –ApiId $apiId –OperationId 01234567890 –Name 'Create/update resource' –Method 'PUT' –UrlTemplate '/resource/{rid}?q={query}' –Description 'Use this operation to create new or update existing resource' –TemplateParameters @($rid, $query) –Request $request –Responses @($response)
Script to create new operation with request and response details.
@@ -5378,7 +5378,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- New-AzureRMApiManagementProduct
+ New-AzureRmApiManagementProductCreates new product.
@@ -5394,7 +5394,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- New-AzureRMApiManagementProduct
+ New-AzureRmApiManagementProductContext
@@ -5667,7 +5667,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- New-AzureRMApiManagementProduct –Context $apimContext –ProductId 0123456789 –Title 'Starter' –Description 'Starter Product' –LegalTerms 'Free for all' –SubscriptionRequired $false –State 'Published'
+ New-AzureRmApiManagementProduct –Context $apimContext –ProductId 0123456789 –Title 'Starter' –Description 'Starter Product' –LegalTerms 'Free for all' –SubscriptionRequired $false –State 'Published'Crete new product. No subscription required.
@@ -5687,7 +5687,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- New-AzureRMApiManagementProduct –Context $apimContext –ProductId 9876543210 –Title Unlimited –Description 'Subscribers have completely unlimited access to the API. Administrator approval is required.' –LegalTerms 'Free for all' –ApprovalRequired $true –State Published –NotificationPeriod 'D10' –SubscriptionPeriod 'Y1'
+ New-AzureRmApiManagementProduct –Context $apimContext –ProductId 9876543210 –Title Unlimited –Description 'Subscribers have completely unlimited access to the API. Administrator approval is required.' –LegalTerms 'Free for all' –ApprovalRequired $true –State Published –NotificationPeriod 'D10' –SubscriptionPeriod 'Y1'Crete new product. Subscription and approval required. Notification period – 10 days. Subscription period – 1 year.
@@ -5709,7 +5709,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- New-AzureRMApiManagementSubscription
+ New-AzureRmApiManagementSubscriptionCreates new subscription.
@@ -5725,7 +5725,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- New-AzureRMApiManagementSubscription
+ New-AzureRmApiManagementSubscriptionContext
@@ -5941,7 +5941,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- New-AzureRMApiManagementSubscription –Context $apimContext –UserId 777 –ProductId 999
+ New-AzureRmApiManagementSubscription –Context $apimContext –UserId 777 –ProductId 999Subscribe existing user to existing product.
@@ -5963,7 +5963,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- New-AzureRMApiManagementUser
+ New-AzureRmApiManagementUserRegister new user.
@@ -5979,7 +5979,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- New-AzureRMApiManagementUser
+ New-AzureRmApiManagementUserContext
@@ -6195,7 +6195,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- New-AzureRMApiManagementUser –Context $apimContext –FirstName 'Ivan' –LastName 'Ivanov' –Email 'ivan.ivanov@contoso.com' –Password 'qwerty'
+ New-AzureRmApiManagementUser –Context $apimContext –FirstName 'Ivan' –LastName 'Ivanov' –Email 'ivan.ivanov@contoso.com' –Password 'qwerty'Register new user.
@@ -6217,7 +6217,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Remove-AzureRMApiManagementApi
+ Remove-AzureRmApiManagementApiRemove existing API.
@@ -6233,7 +6233,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Remove-AzureRMApiManagementApi
+ Remove-AzureRmApiManagementApiContext
@@ -6373,7 +6373,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- Remove-AzureRMApiManagementApi –Context $apimContext –ApiId 0123456789
+ Remove-AzureRmApiManagementApi –Context $apimContext –ApiId 0123456789Remove existing API.
@@ -6395,7 +6395,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Remove-AzureRMApiManagementApiFromProduct
+ Remove-AzureRmApiManagementApiFromProductRemoves existing API from existing Product.
@@ -6411,7 +6411,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Remove-AzureRMApiManagementApiFromProduct
+ Remove-AzureRmApiManagementApiFromProductContext
@@ -6551,7 +6551,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- Remove-AzureRMApiManagementApiFromProduct –Context $apimContext –ProductId 0123456789 –ApiId 0001 –PassThru
+ Remove-AzureRmApiManagementApiFromProduct –Context $apimContext –ProductId 0123456789 –ApiId 0001 –PassThruRemove existing API from an existing Product.
@@ -6573,7 +6573,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Remove-AzureRMApiManagementAuthorizationServer
+ Remove-AzureRmApiManagementAuthorizationServerDeletes existing authorization server.
@@ -6589,7 +6589,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Remove-AzureRMApiManagementAuthorizationServer
+ Remove-AzureRmApiManagementAuthorizationServerContext
@@ -6751,7 +6751,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Remove-AzureRMApiManagementCertificate
+ Remove-AzureRmApiManagementCertificateDeletes existing certificate.
@@ -6767,7 +6767,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Remove-AzureRMApiManagementCertificate
+ Remove-AzureRmApiManagementCertificateContext
@@ -6907,7 +6907,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- Remove-AzureRMApiManagementCertificate –Context $apimContext –CertificateId 0123456789 –Force
+ Remove-AzureRmApiManagementCertificate –Context $apimContext –CertificateId 0123456789 –ForceDelete existing certificate.
@@ -6929,7 +6929,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Remove-AzureRMApiManagementGroup
+ Remove-AzureRmApiManagementGroupDeletes existing group.
@@ -6945,7 +6945,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Remove-AzureRMApiManagementGroup
+ Remove-AzureRmApiManagementGroupContext
@@ -7085,7 +7085,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- Remove-AzureRMApiManagementGroup –Context $apimContext –GroupId 0123456789 –Force
+ Remove-AzureRmApiManagementGroup –Context $apimContext –GroupId 0123456789 –ForceDelete existing group.
@@ -7107,7 +7107,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Remove-AzureRMApiManagementOperation
+ Remove-AzureRmApiManagementOperationRemove existing operation.
@@ -7123,7 +7123,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Remove-AzureRMApiManagementOperation
+ Remove-AzureRmApiManagementOperationContext
@@ -7282,7 +7282,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- Remove-AzureRMApiManagementOperation –Context $apimContext –ApiId 0123456789 –OperationId 9876543210 –Force
+ Remove-AzureRmApiManagementOperation –Context $apimContext –ApiId 0123456789 –OperationId 9876543210 –ForceRemove existing API Operation.
@@ -7304,7 +7304,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Remove-AzureRMApiManagementPolicy
+ Remove-AzureRmApiManagementPolicyRemoves policy from specified scope.
@@ -7320,7 +7320,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Remove-AzureRMApiManagementPolicy
+ Remove-AzureRmApiManagementPolicyContext
@@ -7351,7 +7351,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Remove-AzureRMApiManagementPolicy
+ Remove-AzureRmApiManagementPolicyContext
@@ -7389,7 +7389,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Remove-AzureRMApiManagementPolicy
+ Remove-AzureRmApiManagementPolicyContext
@@ -7427,7 +7427,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Remove-AzureRMApiManagementPolicy
+ Remove-AzureRmApiManagementPolicyContext
@@ -7598,7 +7598,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- Remove-AzureRMApiManagementPolicy –Context $apimContext
+ Remove-AzureRmApiManagementPolicy –Context $apimContextRemove tenant level policy.
@@ -7618,7 +7618,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- Remove-AzureRMApiManagementPolicy –Context $apimContext –ProductId 0123456789
+ Remove-AzureRmApiManagementPolicy –Context $apimContext –ProductId 0123456789Remove product-scope policy.
@@ -7638,7 +7638,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- Remove-AzureRMApiManagementPolicy –Context $apimContext –ApiId 9876543210
+ Remove-AzureRmApiManagementPolicy –Context $apimContext –ApiId 9876543210Remove API-scope policy.
@@ -7658,7 +7658,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- Remove-AzureRMApiManagementPolicy –Context $apimContext –ApiId 9876543210 –OperationId 777
+ Remove-AzureRmApiManagementPolicy –Context $apimContext –ApiId 9876543210 –OperationId 777Remove operation-scope policy.
@@ -7680,7 +7680,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Remove-AzureRMApiManagementProduct
+ Remove-AzureRmApiManagementProductRemove existing product.
@@ -7696,7 +7696,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Remove-AzureRMApiManagementProduct
+ Remove-AzureRmApiManagementProductContext
@@ -7855,7 +7855,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- Remove-AzureRMApiManagementProduct –Context $apimContext –Id 0123456789 -DeleteSubscriptions –Force
+ Remove-AzureRmApiManagementProduct –Context $apimContext –Id 0123456789 -DeleteSubscriptions –ForceRemove existing Product with all subscriptions.
@@ -7877,7 +7877,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Remove-AzureRMApiManagementProductFromGroup
+ Remove-AzureRmApiManagementProductFromGroupRemoves existing product from existing group.
@@ -7893,7 +7893,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Remove-AzureRMApiManagementProductFromGroup
+ Remove-AzureRmApiManagementProductFromGroupContext
@@ -8033,7 +8033,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- Remove-AzureRMApiManagementProductFromGroup –Context $apimContext –GroupId 0001 –ProductId 0123456789
+ Remove-AzureRmApiManagementProductFromGroup –Context $apimContext –GroupId 0001 –ProductId 0123456789Remove existing product from an existing group.
@@ -8055,7 +8055,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Remove-AzureRMApiManagementSubscription
+ Remove-AzureRmApiManagementSubscriptionDeletes existing subscription.
@@ -8071,7 +8071,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Remove-AzureRMApiManagementSubscription
+ Remove-AzureRmApiManagementSubscriptionContext
@@ -8211,7 +8211,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- Remove-AzureRMApiManagementSubscription –Context $apimContext –SubscriptionId 0123456789 -Force
+ Remove-AzureRmApiManagementSubscription –Context $apimContext –SubscriptionId 0123456789 -ForceDelete existing subscription.
@@ -8233,7 +8233,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Remove-AzureRMApiManagementUser
+ Remove-AzureRmApiManagementUserDeletes existing user.
@@ -8249,7 +8249,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Remove-AzureRMApiManagementUser
+ Remove-AzureRmApiManagementUserContext
@@ -8408,7 +8408,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- Remove-AzureRMApiManagementUser –Context $apimContext –UserId 0123456789 –Force
+ Remove-AzureRmApiManagementUser –Context $apimContext –UserId 0123456789 –ForceDelete existing user.
@@ -8430,7 +8430,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Remove-AzureRMApiManagementUserFromGroup
+ Remove-AzureRmApiManagementUserFromGroupRemoves existing user from existing group.
@@ -8446,7 +8446,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Remove-AzureRMApiManagementUserFromGroup
+ Remove-AzureRmApiManagementUserFromGroupContext
@@ -8586,7 +8586,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- Remove-AzureRMApiManagementUserFromGroup –Context $apimContext –GroupId 0001 –UserId 0123456789
+ Remove-AzureRmApiManagementUserFromGroup –Context $apimContext –GroupId 0001 –UserId 0123456789Remove existing user from an existing group.
@@ -8608,7 +8608,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Set-AzureRMApiManagementApi
+ Set-AzureRmApiManagementApiSet API details.
@@ -8624,7 +8624,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Set-AzureRMApiManagementApi
+ Set-AzureRmApiManagementApiContext
@@ -8916,7 +8916,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- Set-AzureRMApiManagementApi –Context $apimContext –Name EchoApi –ServiceUrl 'https://contoso.com/apis/echo' -Protocols @('https') –Description 'Responds with what was sent' –Path 'echo'
+ Set-AzureRmApiManagementApi –Context $apimContext –Name EchoApi –ServiceUrl 'https://contoso.com/apis/echo' -Protocols @('https') –Description 'Responds with what was sent' –Path 'echo'
@@ -8938,7 +8938,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Set-AzureRMApiManagementAuthorizationServer
+ Set-AzureRmApiManagementAuthorizationServerSets authorization server details.
@@ -8954,7 +8954,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Set-AzureRMApiManagementAuthorizationServer
+ Set-AzureRmApiManagementAuthorizationServerContext
@@ -9379,7 +9379,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- Set-AzureRMApiManagementAuthrizarionServer –Context $apimContext –ServerId 0123456789 –Name 'Contoso OAuth2 server' –ClientRegistrationPageUrl 'https://contoso/signupv2' -AthorizationEndpointUrl 'https://contoso/authv2' -TokenEndpointUrl 'https://contoso/tokenv2' -ClientId clientid -ClientSecret e041ed1b660b4eadbad5a29d066e6e88 –AuthorizationRequestMethods @('Get') –GrantTypes @( 'AuthorizationCode', 'Implicit', 'ClientCredentials') –ClientAuthenticationMethods @('Basic') –TokenBodyParameters @{'par1'='val1'} –AccessTokenSendingMethods @('AuthorizationHeader')
+ Set-AzureRmApiManagementAuthrizarionServer –Context $apimContext –ServerId 0123456789 –Name 'Contoso OAuth2 server' –ClientRegistrationPageUrl 'https://contoso/signupv2' -AthorizationEndpointUrl 'https://contoso/authv2' -TokenEndpointUrl 'https://contoso/tokenv2' -ClientId clientid -ClientSecret e041ed1b660b4eadbad5a29d066e6e88 –AuthorizationRequestMethods @('Get') –GrantTypes @( 'AuthorizationCode', 'Implicit', 'ClientCredentials') –ClientAuthenticationMethods @('Basic') –TokenBodyParameters @{'par1'='val1'} –AccessTokenSendingMethods @('AuthorizationHeader')Set authorization server details.
@@ -9401,7 +9401,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Set-AzureRMApiManagementCertificate
+ Set-AzureRmApiManagementCertificateSets certificate data.
@@ -9417,7 +9417,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Set-AzureRMApiManagementCertificate
+ Set-AzureRmApiManagementCertificateContext
@@ -9462,7 +9462,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Set-AzureRMApiManagementCertificate
+ Set-AzureRmApiManagementCertificateContext
@@ -9633,7 +9633,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- Set-AzureRMApiManagementCertificate –Context $apimContext –CertificateId 0123456789 –PfxFilePath 'C:\contoso\certificates\apimanagementnew.pfx' –PfxPassword 2222
+ Set-AzureRmApiManagementCertificate –Context $apimContext –CertificateId 0123456789 –PfxFilePath 'C:\contoso\certificates\apimanagementnew.pfx' –PfxPassword 2222Set certificate.
@@ -9655,7 +9655,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Set-AzureRMApiManagementGroup
+ Set-AzureRmApiManagementGroupSets existing group details.
@@ -9671,7 +9671,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Set-AzureRMApiManagementGroup
+ Set-AzureRmApiManagementGroupContext
@@ -9830,7 +9830,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- New-AzureRMApiManagementGroup –Context $apimContext –Name 'Best devs'
+ New-AzureRmApiManagementGroup –Context $apimContext –Name 'Best devs'Create new group.
@@ -9852,7 +9852,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Set-AzureRMApiManagementOperation
+ Set-AzureRmApiManagementOperationSet API Operation details.
@@ -9868,7 +9868,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Set-AzureRMApiManagementOperation
+ Set-AzureRmApiManagementOperationContext
@@ -10141,7 +10141,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –OperationId $operationId –Name 'Get resource' –Method GET –UrlTemplate '/newresource' –Description 'Use this operation to get newresource'
+ New-AzureRmApiManagementOperation –Context $apimContext –ApiId $apiId –OperationId $operationId –Name 'Get resource' –Method GET –UrlTemplate '/newresource' –Description 'Use this operation to get newresource'Set operation details.
@@ -10163,7 +10163,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Set-AzureRMApiManagementPolicy
+ Set-AzureRmApiManagementPolicySet specified scope policy.
@@ -10179,7 +10179,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Set-AzureRMApiManagementPolicy
+ Set-AzureRmApiManagementPolicyContext
@@ -10224,7 +10224,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Set-AzureRMApiManagementPolicy
+ Set-AzureRmApiManagementPolicyContext
@@ -10276,7 +10276,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Set-AzureRMApiManagementPolicy
+ Set-AzureRmApiManagementPolicyContext
@@ -10328,7 +10328,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Set-AzureRMApiManagementPolicy
+ Set-AzureRmApiManagementPolicyContext
@@ -10537,7 +10537,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- Set-AzureRMApiManagementPolicy –Context $apimContext –PolicyFilePath 'C:\contoso\policies\tenantpolicy.xml'
+ Set-AzureRmApiManagementPolicy –Context $apimContext –PolicyFilePath 'C:\contoso\policies\tenantpolicy.xml'Set tenant level policy from file named tenantpolicy.xml.
@@ -10557,7 +10557,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- Set-AzureRMApiManagementPolicy –Context $apimContext –ProductId 0123456789 –Policy $policystring
+ Set-AzureRmApiManagementPolicy –Context $apimContext –ProductId 0123456789 –Policy $policystringSet product-scope policy.
@@ -10577,7 +10577,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- Get-AzureRMApiManagementPolicy –Context $apimContext –ApiId 9876543210 –Policy $policystring
+ Get-AzureRmApiManagementPolicy –Context $apimContext –ApiId 9876543210 –Policy $policystringSet API-scope policy.
@@ -10597,7 +10597,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- Set-AzureRMApiManagementPolicy –Context $apimContext –ApiId 9876543210 –OperationId 777 –Policy $policystring
+ Set-AzureRmApiManagementPolicy –Context $apimContext –ApiId 9876543210 –OperationId 777 –Policy $policystringSet operation-scope policy.
@@ -10619,7 +10619,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Set-AzureRMApiManagementProduct
+ Set-AzureRmApiManagementProductSets Product details.
@@ -10635,7 +10635,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Set-AzureRMApiManagementProduct
+ Set-AzureRmApiManagementProductContext
@@ -10927,7 +10927,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- Set-AzureRMApiManagementProduct –Context $apimContext –ProductId 0123456789 –Title 'Starter' –Description 'Starter Product' –LegalTerms 'Free for all' –SubscriptionRequired $true –State 'NotPublished'
+ Set-AzureRmApiManagementProduct –Context $apimContext –ProductId 0123456789 –Title 'Starter' –Description 'Starter Product' –LegalTerms 'Free for all' –SubscriptionRequired $true –State 'NotPublished'Update product details: require subscription, unpublish.
@@ -10949,7 +10949,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Set-AzureRMApiManagementSubscription
+ Set-AzureRmApiManagementSubscriptionSets existing subscription details.
@@ -10965,7 +10965,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Set-AzureRMApiManagementSubscription
+ Set-AzureRmApiManagementSubscriptionContext
@@ -11200,7 +11200,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- Set-AzureRMApiManagementSubscription –Context $apimContext –SubscriptionId 0123456789 –PrimaryKey '80450f7d0b6d481382113073f67822c1' –SencondaryKey '97d6112c3a8f48d5bf0266b7a09a761c' –State 'Active'
+ Set-AzureRmApiManagementSubscription –Context $apimContext –SubscriptionId 0123456789 –PrimaryKey '80450f7d0b6d481382113073f67822c1' –SencondaryKey '97d6112c3a8f48d5bf0266b7a09a761c' –State 'Active'Set subscription primary, secondary key and activate.
@@ -11222,7 +11222,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Set-AzureRMApiManagementUser
+ Set-AzureRmApiManagementUserSets user details.
@@ -11238,7 +11238,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
- Set-AzureRMApiManagementUser
+ Set-AzureRmApiManagementUserContext
@@ -11473,7 +11473,7 @@ New-AzureRMApiManagementOperation –Context $apimContext –ApiId $apiId –Ope
PS C:\>
- Set-AzureRMApiManagementUser –Context $apimContext -UserId 0123456789 –Email 'ivanov.ivan@contoso.com' –Password 'asdfgh' –State 'Blocked'
+ Set-AzureRmApiManagementUser –Context $apimContext -UserId 0123456789 –Email 'ivanov.ivan@contoso.com' –Password 'asdfgh' –State 'Blocked'Set new user password and email and block the user.
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/packages.config b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/packages.config
index 5fcdc5862226..7cbc29f96364 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/packages.config
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/packages.config
@@ -3,7 +3,7 @@
-
+
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/Commands.ApiManagement.Test.csproj b/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/Commands.ApiManagement.Test.csproj
index 6eb66cc1db04..8f4f74f57138 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/Commands.ApiManagement.Test.csproj
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/Commands.ApiManagement.Test.csproj
@@ -42,7 +42,7 @@
..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.dll
- ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.3.0-preview\lib\net45\Microsoft.Azure.Common.Authentication.dll
+ ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.3.1-preview\lib\net45\Microsoft.Azure.Common.Authentication.dllTrue
@@ -51,7 +51,7 @@
False
- ..\..\..\Package\$(Configuration)\ResourceManager\AzureResourceManager\AzureRM.Resources\Microsoft.Azure.Gallery.dll
+ ..\..\..\packages\Microsoft.Azure.Gallery.2.6.2-preview\lib\net40\Microsoft.Azure.Gallery.dllFalse
@@ -59,7 +59,7 @@
False
- ..\..\..\Package\$(Configuration)\ResourceManager\AzureResourceManager\AzureRM.Resources\Microsoft.Azure.Management.Authorization.dll
+ ..\..\..\packages\Microsoft.Azure.Management.Authorization.1.0.0\lib\net40\Microsoft.Azure.Management.Authorization.dll..\..\..\packages\Microsoft.Azure.Management.Storage.2.4.0-preview\lib\net40\Microsoft.Azure.Management.Storage.dll
@@ -157,17 +157,15 @@
{3436a126-edc9-4060-8952-9a1be34cdd95}Commands.ScenarioTests.ResourceManager.Common
-
- {e1f5201d-6067-430e-b303-4e367652991b}
- Commands.Resources
- {dc0a9742-df36-48c9-bd2f-68d01aed6257}Commands.ApiManagement
-
+
+ Designer
+ PreserveNewest
@@ -201,9 +199,6 @@
-
- xcopy "$(SolutionDir)Package\$(ConfigurationName)\*.*" $(TargetDir) /Y /E
-
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/ScenarioTests/ApiManagementTests.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/ScenarioTests/ApiManagementTests.cs
index b2a44a4a77c0..f3df67152b36 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/ScenarioTests/ApiManagementTests.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/ScenarioTests/ApiManagementTests.cs
@@ -16,7 +16,6 @@
namespace Microsoft.Azure.Commands.ApiManagement.Test.ScenarioTests
{
- using System;
using Microsoft.Azure.Common.Authentication;
using Microsoft.Azure.Gallery;
using Microsoft.Azure.Management.Authorization;
@@ -159,7 +158,14 @@ private void RunPowerShellTest(params string[] scripts)
SetupManagementClients();
_helper.SetupEnvironment(AzureModule.AzureResourceManager);
- _helper.SetupModules(AzureModule.AzureResourceManager, "ScenarioTests\\Common.ps1", "ScenarioTests\\" + GetType().Name + ".ps1");
+ _helper.SetupModules(AzureModule.AzureResourceManager,
+ "ScenarioTests\\Common.ps1",
+ "ScenarioTests\\" + GetType().Name + ".ps1",
+ _helper.RMProfileModule,
+ _helper.RMResourceModule,
+ _helper.RMStorageDataPlaneModule,
+ _helper.RMStorageModule,
+ _helper.GetRMModulePath("AzureRM.ApiManagement.psd1"));
_helper.RunPowerShellTest(scripts);
}
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/ScenarioTests/ApiManagementTests.ps1 b/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/ScenarioTests/ApiManagementTests.ps1
index cba2839023ef..149706f26558 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/ScenarioTests/ApiManagementTests.ps1
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/ScenarioTests/ApiManagementTests.ps1
@@ -9,14 +9,14 @@ function Test-CrudApiManagement
# Create resource group
$resourceGroupName = Get-ResourceGroupName
- New-AzureRMResourceGroup -Name $resourceGroupName -Location $location -Force
+ New-AzureRmResourceGroup -Name $resourceGroupName -Location $location -Force
$apiManagementName = Get-ApiManagementServiceName
$organization = "apimpowershellorg"
$adminEmail = "apim@powershell.org"
# Create API Management service
- $result = New-AzureRMApiManagement -ResourceGroupName $resourceGroupName -Location $location -Name $apiManagementName -Organization $organization -AdminEmail $adminEmail
+ $result = New-AzureRmApiManagement -ResourceGroupName $resourceGroupName -Location $location -Name $apiManagementName -Organization $organization -AdminEmail $adminEmail
Assert-AreEqual $resourceGroupName $result.ResourceGroupName
Assert-AreEqual $apiManagementName $result.Name
@@ -25,11 +25,11 @@ function Test-CrudApiManagement
Assert-AreEqual 1 $result.Capacity
# Get SSO token
- $token = Get-AzureRMApiManagementSsoToken -ResourceGroupName $resourceGroupName -Name $apiManagementName
+ $token = Get-AzureRmApiManagementSsoToken -ResourceGroupName $resourceGroupName -Name $apiManagementName
Assert-NotNull $token
# List services within the resource group
- $apimServicesInGroup = Get-AzureRMApiManagement -ResourceGroupName $resourceGroupName
+ $apimServicesInGroup = Get-AzureRmApiManagement -ResourceGroupName $resourceGroupName
Assert-True {$apimServicesInGroup.Count -ge 1}
$found = 0
@@ -50,7 +50,7 @@ function Test-CrudApiManagement
# Create on more group
$secondResourceGroup = Get-ResourceGroupName
- New-AzureRMResourceGroup -Name $secondResourceGroup -Location $location -Force
+ New-AzureRmResourceGroup -Name $secondResourceGroup -Location $location -Force
# Create one more service
$secondApiManagementName = Get-ApiManagementServiceName
@@ -59,7 +59,7 @@ function Test-CrudApiManagement
$secondSku = "Standard"
$secondSkuCapacity = 2
- $secondResult = New-AzureRMApiManagement -ResourceGroupName $secondResourceGroup -Location $location -Name $secondApiManagementName -Organization $secondOrganization -AdminEmail $secondAdminEmail -Sku $secondSku -Capacity $secondSkuCapacity
+ $secondResult = New-AzureRmApiManagement -ResourceGroupName $secondResourceGroup -Location $location -Name $secondApiManagementName -Organization $secondOrganization -AdminEmail $secondAdminEmail -Sku $secondSku -Capacity $secondSkuCapacity
Assert-AreEqual $secondResourceGroup $secondResult.ResourceGroupName
Assert-AreEqual $secondApiManagementName $secondResult.Name
Assert-AreEqual $location $secondResult.Location
@@ -67,11 +67,11 @@ function Test-CrudApiManagement
Assert-AreEqual $secondSkuCapacity $secondResult.Capacity
# Get SSO token
- $secondToken = Get-AzureRMApiManagementSsoToken -ResourceGroupName $secondResourceGroup -Name $secondApiManagementName
+ $secondToken = Get-AzureRmApiManagementSsoToken -ResourceGroupName $secondResourceGroup -Name $secondApiManagementName
Assert-NotNull $secondToken
# List all services
- $allServices = Get-AzureRMApiManagement
+ $allServices = Get-AzureRmApiManagement
Assert-True {$allServices.Count -ge 2}
$found = 0
@@ -100,13 +100,13 @@ function Test-CrudApiManagement
Assert-True {$found -eq 2} "Api Management services created earlier is not found."
# Delete listed services
- Get-AzureRMApiManagement | Remove-AzureRMApiManagement -Force
+ Get-AzureRmApiManagement | Remove-AzureRmApiManagement -Force
- $allServices = Get-AzureRMApiManagement
+ $allServices = Get-AzureRmApiManagement
Assert-AreEqual 0 $allServices.Count
# Remove resource group
- Remove-AzureRMResourceGroup -Name $resourceGroupName -Force
+ Remove-AzureRmResourceGroup -Name $resourceGroupName -Force
}
<#
@@ -120,16 +120,16 @@ function Test-BackupRestoreApiManagement
# Create resource group
$resourceGroupName = Get-ResourceGroupName
- New-AzureRMResourceGroup -Name $resourceGroupName -Location $location -Force
+ New-AzureRmResourceGroup -Name $resourceGroupName -Location $location -Force
# Create storage account
$storageLocation = Get-ProviderLocation "Microsoft.ClassicStorage/storageAccounts"
$storageAccountName = Get-ApiManagementServiceName
- New-AzureRMStorageAccount -StorageAccountName $storageAccountName -Location $storageLocation -ResourceGroupName $resourceGroupName -Type Standard_LRS
+ New-AzureRmStorageAccount -StorageAccountName $storageAccountName -Location $storageLocation -ResourceGroupName $resourceGroupName -Type Standard_LRS
- $storageKey = (Get-AzureRMStorageAccountKey -ResourceGroupName $resourceGroupName -StorageAccountName $storageAccountName).Key1
- $storageContext = New-AzureRMStorageContext -StorageAccountName $storageAccountName -StorageAccountKey $storageKey
+ $storageKey = (Get-AzureRmStorageAccountKey -ResourceGroupName $resourceGroupName -StorageAccountName $storageAccountName).Key1
+ $storageContext = New-AzureStorageContext -StorageAccountName $storageAccountName -StorageAccountKey $storageKey
$apiManagementName = Get-ApiManagementServiceName
$organization = "apimpowershellorg"
@@ -139,16 +139,16 @@ function Test-BackupRestoreApiManagement
$backupName = $apiManagementName + ".apimbackup"
# Create API Management service
- $apiManagementService = New-AzureRMApiManagement -ResourceGroupName $resourceGroupName -Location $location -Name $apiManagementName -Organization $organization -AdminEmail $adminEmail
+ $apiManagementService = New-AzureRmApiManagement -ResourceGroupName $resourceGroupName -Location $location -Name $apiManagementName -Organization $organization -AdminEmail $adminEmail
$containerName = "backups"
$backupName = $apiManagementName + ".apimbackup"
# Backup API Management service
- Backup-AzureRMApiManagement -ResourceGroupName $resourceGroupName -Name $apiManagementName -StorageContext $storageContext -TargetContainerName $containerName -TargetBlobName $backupName
+ Backup-AzureRmApiManagement -ResourceGroupName $resourceGroupName -Name $apiManagementName -StorageContext $storageContext -TargetContainerName $containerName -TargetBlobName $backupName
# Restore API Management service
- $restoreResult = Restore-AzureRMApiManagement -ResourceGroupName $resourceGroupName -Name $apiManagementName -StorageContext $storageContext -SourceContainerName $containerName -SourceBlobName $backupName -PassThru
+ $restoreResult = Restore-AzureRmApiManagement -ResourceGroupName $resourceGroupName -Name $apiManagementName -StorageContext $storageContext -SourceContainerName $containerName -SourceBlobName $backupName -PassThru
Assert-AreEqual $resourceGroupName $restoreResult.ResourceGroupName
Assert-AreEqual $apiManagementName $restoreResult.Name
@@ -160,13 +160,13 @@ function Test-BackupRestoreApiManagement
try
{
# Remove the service
- Remove-AzureRMApiManagement -ResourceGroupName $resourceGroupName -Name $apiManagementName -Force
+ Remove-AzureRmApiManagement -ResourceGroupName $resourceGroupName -Name $apiManagementName -Force
# Remove storage account
- Remove-AzureRMStorageAccount -ResourceGroupName $resourceGroupName -StorageAccountName $storageAccountName
+ Remove-AzureRmStorageAccount -ResourceGroupName $resourceGroupName -StorageAccountName $storageAccountName
# Remove resource group
- Remove-AzureRMResourceGroup -Name $resourceGroupName -Force
+ Remove-AzureRmResourceGroup -Name $resourceGroupName -Force
}
catch
{
@@ -184,7 +184,7 @@ function Test-UpdateApiManagementDeployment
# Create resource group
$resourceGroupName = Get-ResourceGroupName
- New-AzureRMResourceGroup -Name $resourceGroupName -Location $location -Force
+ New-AzureRmResourceGroup -Name $resourceGroupName -Location $location -Force
$apiManagementName = Get-ApiManagementServiceName
$organization = "apimpowershellorg"
@@ -193,14 +193,14 @@ function Test-UpdateApiManagementDeployment
$capacity = 1
# Create API Management service
- New-AzureRMApiManagement -ResourceGroupName $resourceGroupName -Location $location -Name $apiManagementName -Organization $organization -AdminEmail $adminEmail -Sku $sku -Capacity $capacity
+ New-AzureRmApiManagement -ResourceGroupName $resourceGroupName -Location $location -Name $apiManagementName -Organization $organization -AdminEmail $adminEmail -Sku $sku -Capacity $capacity
# Get API Management and:
#- 1) Scale master region to 'Premium' 2 units
$sku = "Premium"
$capacity = 2
- $service = Get-AzureRMApiManagement -ResourceGroupName $resourceGroupName -Name $apiManagementName
+ $service = Get-AzureRmApiManagement -ResourceGroupName $resourceGroupName -Name $apiManagementName
$service.Sku = $sku;
$service.Capacity = $capacity
@@ -215,9 +215,9 @@ function Test-UpdateApiManagementDeployment
#$region2Capacity = 3
#$service.AddRegion($region2Location, $region2Sku, $region2Capacity)
- Update-AzureRMApiManagementDeployment -ApiManagement $service
+ Update-AzureRmApiManagementDeployment -ApiManagement $service
- $service = Get-AzureRMApiManagement -ResourceGroupName $resourceGroupName -Name $apiManagementName
+ $service = Get-AzureRmApiManagement -ResourceGroupName $resourceGroupName -Name $apiManagementName
Assert-AreEqual $resourceGroupName $service.ResourceGroupName
Assert-AreEqual $apiManagementName $service.Name
@@ -251,10 +251,10 @@ function Test-UpdateApiManagementDeployment
Assert-True {$found -eq 1} "Api Management regions created earlier is not found."
# Remove the service
- Remove-AzureRMApiManagement -ResourceGroupName $resourceGroupName -Name $apiManagementName -Force
+ Remove-AzureRmApiManagement -ResourceGroupName $resourceGroupName -Name $apiManagementName -Force
# Remove resource group
- Remove-AzureRMResourceGroup -Name $resourceGroupName -Force
+ Remove-AzureRmResourceGroup -Name $resourceGroupName -Force
}
<#
@@ -268,7 +268,7 @@ function Test-UpdateApiManagementDeploymentWithHelpersAndPipline
# Create resource group
$resourceGroupName = Get-ResourceGroupName
- New-AzureRMResourceGroup -Name $resourceGroupName -Location $location -Force
+ New-AzureRmResourceGroup -Name $resourceGroupName -Location $location -Force
$apiManagementName = Get-ApiManagementServiceName
$organization = "apimpowershellorg"
@@ -277,7 +277,7 @@ function Test-UpdateApiManagementDeploymentWithHelpersAndPipline
$capacity = 1
# Create API Management service
- $service = New-AzureRMApiManagement -ResourceGroupName $resourceGroupName -Location $location -Name $apiManagementName -Organization $organization -AdminEmail $adminEmail -Sku $sku -Capacity $capacity
+ $service = New-AzureRmApiManagement -ResourceGroupName $resourceGroupName -Location $location -Name $apiManagementName -Organization $organization -AdminEmail $adminEmail -Sku $sku -Capacity $capacity
# Get API Management and:
#- 1) Scale master region to 'Premium' 2
@@ -293,13 +293,13 @@ function Test-UpdateApiManagementDeploymentWithHelpersAndPipline
#$region2Sku = "Premium"
#$region2Capacity = 3
- Get-AzureRMApiManagement -ResourceGroupName $resourceGroupName -Name $apiManagementName |
- Update-AzureRMApiManagementRegion -Sku $sku -Capacity $capacity |
- Add-AzureRMApiManagementRegion -Location $region1Location -Sku $region1Sku |
- #Add-AzureRMApiManagementRegion -Location $region2Location -Sku $region2Sku -Capacity $region2Capacity |
- Update-AzureRMApiManagementDeployment
+ Get-AzureRmApiManagement -ResourceGroupName $resourceGroupName -Name $apiManagementName |
+ Update-AzureRmApiManagementRegion -Sku $sku -Capacity $capacity |
+ Add-AzureRmApiManagementRegion -Location $region1Location -Sku $region1Sku |
+ #Add-AzureRmApiManagementRegion -Location $region2Location -Sku $region2Sku -Capacity $region2Capacity |
+ Update-AzureRmApiManagementDeployment
- $service = Get-AzureRMApiManagement -ResourceGroupName $resourceGroupName -Name $apiManagementName
+ $service = Get-AzureRmApiManagement -ResourceGroupName $resourceGroupName -Name $apiManagementName
Assert-AreEqual $resourceGroupName $service.ResourceGroupName
Assert-AreEqual $apiManagementName $service.Name
@@ -335,10 +335,10 @@ function Test-UpdateApiManagementDeploymentWithHelpersAndPipline
# Remove the service
- Remove-AzureRMApiManagement -ResourceGroupName $resourceGroupName -Name $apiManagementName -Force
+ Remove-AzureRmApiManagement -ResourceGroupName $resourceGroupName -Name $apiManagementName -Force
# Remove resource group
- Remove-AzureRMResourceGroup -Name $resourceGroupName -Force
+ Remove-AzureRmResourceGroup -Name $resourceGroupName -Force
}
<#
@@ -355,7 +355,7 @@ function Test-ImportApiManagementHostnameCertificate
# Create resource group
$resourceGroupName = Get-ResourceGroupName
- New-AzureRMResourceGroup -Name $resourceGroupName -Location $location -Force
+ New-AzureRmResourceGroup -Name $resourceGroupName -Location $location -Force
$apiManagementName = Get-ApiManagementServiceName
$organization = "apimpowershellorg"
@@ -364,18 +364,18 @@ function Test-ImportApiManagementHostnameCertificate
$capacity = 1
# Create API Management service
- $result = New-AzureRMApiManagement -ResourceGroupName $resourceGroupName -Location $location -Name $apiManagementName -Organization $organization -AdminEmail $adminEmail -Sku $sku -Capacity $capacity |
- Get-AzureRMApiManagement |
- Import-AzureRMApiManagementHostnameCertificate -HostnameType "Proxy" -PfxPath $certFilePath -PfxPassword $certPassword -PassThru
+ $result = New-AzureRmApiManagement -ResourceGroupName $resourceGroupName -Location $location -Name $apiManagementName -Organization $organization -AdminEmail $adminEmail -Sku $sku -Capacity $capacity |
+ Get-AzureRmApiManagement |
+ Import-AzureRmApiManagementHostnameCertificate -HostnameType "Proxy" -PfxPath $certFilePath -PfxPassword $certPassword -PassThru
Assert-AreEqual "CN=ailn.redmond.corp.microsoft.com" $result.Subject
Assert-AreEqual "51A702569BADEDB90A75141B070F2D4B5DDFA447" $result.Thumbprint
# Remove the service
- Remove-AzureRMApiManagement -ResourceGroupName $resourceGroupName -Name $apiManagementName -Force
+ Remove-AzureRmApiManagement -ResourceGroupName $resourceGroupName -Name $apiManagementName -Force
# Remove resource group
- Remove-AzureRMResourceGroup -Name $resourceGroupName -Force
+ Remove-AzureRmResourceGroup -Name $resourceGroupName -Force
}
<#
@@ -389,7 +389,7 @@ function Test-SetApiManagementVirtualNetworks
# Create resource group
$resourceGroupName = Get-ResourceGroupName
- New-AzureRMResourceGroup -Name $resourceGroupName -Location $location -Force
+ New-AzureRmResourceGroup -Name $resourceGroupName -Location $location -Force
$apiManagementName = Get-ApiManagementServiceName
$organization = "apimpowershellorg"
@@ -398,20 +398,20 @@ function Test-SetApiManagementVirtualNetworks
$capacity = 1
# Create API Management service
- New-AzureRMApiManagement -ResourceGroupName $resourceGroupName -Location $location -Name $apiManagementName -Organization $organization -AdminEmail $adminEmail -Sku $sku -Capacity $capacity
+ New-AzureRmApiManagement -ResourceGroupName $resourceGroupName -Location $location -Name $apiManagementName -Organization $organization -AdminEmail $adminEmail -Sku $sku -Capacity $capacity
$vnetLocation = "East US"
$vnetId = "53F96AC5-9F46-46CE-BA0F-77DE89943258"
$subnetName = "Subnet-1"
$networksList = @()
- $networksList += New-AzureRMApiManagementVirtualNetwork -Location $vnetLocation -VnetId $vnetId -SubnetName $subnetName
+ $networksList += New-AzureRmApiManagementVirtualNetwork -Location $vnetLocation -VnetId $vnetId -SubnetName $subnetName
try
{
try
{
- Set-AzureRMApiManagementVirtualNetworks -ResourceGroupName $resourceGroupName -Name $apiManagementName -VirtualNetworks $networksList
+ Set-AzureRmApiManagementVirtualNetworks -ResourceGroupName $resourceGroupName -Name $apiManagementName -VirtualNetworks $networksList
}
catch
{
@@ -421,9 +421,9 @@ function Test-SetApiManagementVirtualNetworks
finally
{
# Remove the service
- Remove-AzureRMApiManagement -ResourceGroupName $resourceGroupName -Name $apiManagementName -Force
+ Remove-AzureRmApiManagement -ResourceGroupName $resourceGroupName -Name $apiManagementName -Force
# Remove resource group
- Remove-AzureRMResourceGroup -Name $resourceGroupName -Force
+ Remove-AzureRmResourceGroup -Name $resourceGroupName -Force
}
}
\ No newline at end of file
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/ScenarioTests/Common.ps1 b/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/ScenarioTests/Common.ps1
index 0275adb24b47..9946896079db 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/ScenarioTests/Common.ps1
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/ScenarioTests/Common.ps1
@@ -50,6 +50,6 @@ Gets all locations for a provider
#>
function Get-ProviderLocations($provider)
{
- $location = Get-AzureRMLocation | where {$_.Name -eq $provider}
+ $location = Get-AzureRmLocation | where {$_.Name -eq $provider}
$location.Locations
}
\ No newline at end of file
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/packages.config b/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/packages.config
index 9d3b0d8c923a..40d4a4883355 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/packages.config
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/packages.config
@@ -2,10 +2,12 @@
-
+
+
+
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement/ApiManagementClient.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement/ApiManagementClient.cs
index 62a0962386d2..2768b50fad12 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement/ApiManagementClient.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement/ApiManagementClient.cs
@@ -96,7 +96,7 @@ public ApiManagementLongRunningOperation BeginCreateApiManagementService(
var longrunningResponse = Client.ResourceProvider.BeginCreatingOrUpdating(resourceGroupName, serviceName, parameters);
AdjustRetryAfter(longrunningResponse, _client.LongRunningOperationInitialTimeout);
- return ApiManagementLongRunningOperation.CreateLongRunningOperation("New-AzureRMApiManagement", longrunningResponse);
+ return ApiManagementLongRunningOperation.CreateLongRunningOperation("New-AzureRmApiManagement", longrunningResponse);
}
public ApiManagementLongRunningOperation BeginBackupApiManagement(
@@ -122,7 +122,7 @@ public ApiManagementLongRunningOperation BeginBackupApiManagement(
var longrunningResponse = Client.ResourceProvider.BeginBackup(resourceGroupName, serviceName, parameters);
AdjustRetryAfter(longrunningResponse, _client.LongRunningOperationInitialTimeout);
- return ApiManagementLongRunningOperation.CreateLongRunningOperation("Backup-AzureRMApiManagement", longrunningResponse);
+ return ApiManagementLongRunningOperation.CreateLongRunningOperation("Backup-AzureRmApiManagement", longrunningResponse);
}
public bool DeleteApiManagement(string resourceGroupName, string serviceName)
@@ -150,7 +150,7 @@ public ApiManagementLongRunningOperation BeginRestoreApiManagement(
var longrunningResponse = Client.ResourceProvider.BeginRestoring(resourceGroupName, serviceName, parameters);
AdjustRetryAfter(longrunningResponse, _client.LongRunningOperationInitialTimeout);
- return ApiManagementLongRunningOperation.CreateLongRunningOperation("Restore-AzureRMApiManagement", longrunningResponse);
+ return ApiManagementLongRunningOperation.CreateLongRunningOperation("Restore-AzureRmApiManagement", longrunningResponse);
}
public ApiManagementLongRunningOperation BeginUpdateDeployments(
@@ -201,7 +201,7 @@ public ApiManagementLongRunningOperation BeginUpdateDeployments(
var longrunningResponse = Client.ResourceProvider.BeginManagingDeployments(resourceGroupName, serviceName, parameters);
AdjustRetryAfter(longrunningResponse, _client.LongRunningOperationInitialTimeout);
- return ApiManagementLongRunningOperation.CreateLongRunningOperation("Update-AzureRMApiManagementDeployment", longrunningResponse);
+ return ApiManagementLongRunningOperation.CreateLongRunningOperation("Update-AzureRmApiManagementDeployment", longrunningResponse);
}
public PsApiManagementHostnameCertificate UploadCertificate(
@@ -242,7 +242,7 @@ public ApiManagementLongRunningOperation BeginSetHostnames(
var longrunningResponse = Client.ResourceProvider.BeginUpdatingHostname(resourceGroupName, serviceName, parameters);
AdjustRetryAfter(longrunningResponse, _client.LongRunningOperationInitialTimeout);
- return ApiManagementLongRunningOperation.CreateLongRunningOperation("Set-AzureRMApiManagementHostnames", longrunningResponse);
+ return ApiManagementLongRunningOperation.CreateLongRunningOperation("Set-AzureRmApiManagementHostnames", longrunningResponse);
}
public string GetSsoToken(string resourceGroupName, string serviceName)
@@ -270,7 +270,7 @@ public ApiManagementLongRunningOperation BeginManageVirtualNetworks(
var longrunningResponse = Client.ResourceProvider.BeginManagingVirtualNetworks(resourceGroupName, serviceName, parameters);
AdjustRetryAfter(longrunningResponse, _client.LongRunningOperationInitialTimeout);
- return ApiManagementLongRunningOperation.CreateLongRunningOperation("Set-AzureRMApiManagementVirtualNetworks", longrunningResponse);
+ return ApiManagementLongRunningOperation.CreateLongRunningOperation("Set-AzureRmApiManagementVirtualNetworks", longrunningResponse);
}
internal ApiManagementLongRunningOperation GetLongRunningOperationStatus(ApiManagementLongRunningOperation longRunningOperation)
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands.ApiManagement.csproj b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands.ApiManagement.csproj
index c1459687453a..ece98363f419 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands.ApiManagement.csproj
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands.ApiManagement.csproj
@@ -59,7 +59,7 @@
..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.dll
- ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.3.0-preview\lib\net45\Microsoft.Azure.Common.Authentication.dll
+ ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.3.1-preview\lib\net45\Microsoft.Azure.Common.Authentication.dllTrue
@@ -206,6 +206,10 @@
{65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}Commands.Common.Storage
+
+ {5ee72c53-1720-4309-b54b-5fb79703195f}
+ Commands.Common
+ {3819d8a7-c62c-4c47-8ddd-0332d9ce1252}Commands.ResourceManager.Common
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/AddAzureApiManagementRegion.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/AddAzureApiManagementRegion.cs
index afeb16e08b21..011d13ad9eb1 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/AddAzureApiManagementRegion.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/AddAzureApiManagementRegion.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.Models;
- [Cmdlet(VerbsCommon.Add, "AzureRMApiManagementRegion"), OutputType(typeof(PsApiManagement))]
+ [Cmdlet(VerbsCommon.Add, "AzureRmApiManagementRegion"), OutputType(typeof(PsApiManagement))]
public class AddAzureApiManagementRegion : AzureApiManagementCmdletBase
{
[Parameter(
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/BackupAzureApiManagement.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/BackupAzureApiManagement.cs
index 51a41c601526..f0c6f28d695d 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/BackupAzureApiManagement.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/BackupAzureApiManagement.cs
@@ -20,7 +20,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.Commands
using Microsoft.WindowsAzure.Commands.Common.Storage;
- [Cmdlet(VerbsData.Backup, "AzureRMApiManagement"), OutputType(typeof(PsApiManagement))]
+ [Cmdlet(VerbsData.Backup, "AzureRmApiManagement"), OutputType(typeof(PsApiManagement))]
public class BackupAzureApiManagement : AzureApiManagementCmdletBase
{
[Parameter(
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/GetAzureApiManagement.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/GetAzureApiManagement.cs
index 3ac14a8769ec..79deb8d4ac3c 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/GetAzureApiManagement.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/GetAzureApiManagement.cs
@@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.Models;
- [Cmdlet(VerbsCommon.Get, "AzureRMApiManagement", DefaultParameterSetName = BaseParameterSetName), OutputType(typeof (List))]
+ [Cmdlet(VerbsCommon.Get, "AzureRmApiManagement", DefaultParameterSetName = BaseParameterSetName), OutputType(typeof (List))]
public class GetAzureApiManagement : AzureApiManagementCmdletBase
{
internal const string BaseParameterSetName = "All In Subscription";
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/GetAzureApiManagementSsoToken.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/GetAzureApiManagementSsoToken.cs
index 64b0bf1a38bc..5018e38e2287 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/GetAzureApiManagementSsoToken.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/GetAzureApiManagementSsoToken.cs
@@ -16,7 +16,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.Commands
{
using System.Management.Automation;
- [Cmdlet(VerbsCommon.Get, "AzureRMApiManagementSsoToken"), OutputType(typeof (string))]
+ [Cmdlet(VerbsCommon.Get, "AzureRmApiManagementSsoToken"), OutputType(typeof (string))]
public class GetAzureApiManagementSsoToken : AzureApiManagementCmdletBase
{
[Parameter(
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/ImportAzureApiManagementHostnameCertificate.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/ImportAzureApiManagementHostnameCertificate.cs
index 19ac74ca6015..abf764d1384d 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/ImportAzureApiManagementHostnameCertificate.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/ImportAzureApiManagementHostnameCertificate.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.Models;
- [Cmdlet(VerbsData.Import, "AzureRMApiManagementHostnameCertificate"), OutputType(typeof(PsApiManagementHostnameCertificate))]
+ [Cmdlet(VerbsData.Import, "AzureRmApiManagementHostnameCertificate"), OutputType(typeof(PsApiManagementHostnameCertificate))]
public class ImportAzureApiManagementHostnameCertificate : AzureApiManagementCmdletBase
{
[Parameter(
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/NewAzureApiManagement.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/NewAzureApiManagement.cs
index ff771cac5c54..7a0004cc6ee6 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/NewAzureApiManagement.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/NewAzureApiManagement.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.Models;
- [Cmdlet(VerbsCommon.New, "AzureRMApiManagement"), OutputType(typeof (PsApiManagement))]
+ [Cmdlet(VerbsCommon.New, "AzureRmApiManagement"), OutputType(typeof (PsApiManagement))]
public class NewAzureApiManagement : AzureApiManagementCmdletBase
{
[Parameter(
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/NewAzureApiManagementHostnameConfiguration.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/NewAzureApiManagementHostnameConfiguration.cs
index 96e6b01cbb53..7ab4de6ce4a8 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/NewAzureApiManagementHostnameConfiguration.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/NewAzureApiManagementHostnameConfiguration.cs
@@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.Commands
using ResourceManager.Common;
using Microsoft.WindowsAzure.Commands.Utilities.Common;
- [Cmdlet(VerbsCommon.New, "AzureRMApiManagementHostnameConfiguration"), OutputType(typeof (PsApiManagementHostnameConfiguration))]
+ [Cmdlet(VerbsCommon.New, "AzureRmApiManagementHostnameConfiguration"), OutputType(typeof (PsApiManagementHostnameConfiguration))]
public class NewAzureApiManagementHostnameConfiguration : AzureRMCmdlet
{
[Parameter(
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/NewAzureApiManagementVirtualNetwork.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/NewAzureApiManagementVirtualNetwork.cs
index 4fb6bc439a00..006b10a1c183 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/NewAzureApiManagementVirtualNetwork.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/NewAzureApiManagementVirtualNetwork.cs
@@ -21,7 +21,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.Commands
using ResourceManager.Common;
using Microsoft.WindowsAzure.Commands.Utilities.Common;
- [Cmdlet(VerbsCommon.New, "AzureRMApiManagementVirtualNetwork"), OutputType(typeof(PsApiManagementVirtualNetwork))]
+ [Cmdlet(VerbsCommon.New, "AzureRmApiManagementVirtualNetwork"), OutputType(typeof(PsApiManagementVirtualNetwork))]
public class NewAzureApiManagementVirtualNetwork : AzureRMCmdlet
{
[Parameter(
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/RemoveAzureApiManagement.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/RemoveAzureApiManagement.cs
index bfaf27389099..8bb3a659b079 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/RemoveAzureApiManagement.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/RemoveAzureApiManagement.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.Properties;
- [Cmdlet(VerbsCommon.Remove, "AzureRMApiManagement"), OutputType(typeof (bool))]
+ [Cmdlet(VerbsCommon.Remove, "AzureRmApiManagement"), OutputType(typeof (bool))]
public class RemoveAzureApiManagement : AzureApiManagementCmdletBase
{
[Parameter(
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/RemoveAzureApiManagementRegion.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/RemoveAzureApiManagementRegion.cs
index dbe8f1ec8934..5c3446403e1c 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/RemoveAzureApiManagementRegion.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/RemoveAzureApiManagementRegion.cs
@@ -17,7 +17,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.Models;
- [Cmdlet(VerbsCommon.Remove, "AzureRMApiManagementRegion"), OutputType(typeof (PsApiManagement))]
+ [Cmdlet(VerbsCommon.Remove, "AzureRmApiManagementRegion"), OutputType(typeof (PsApiManagement))]
public class RemoveAzureApiManagementRegion : AzureApiManagementCmdletBase
{
[Parameter(
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/RestoreAzureApiManagement.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/RestoreAzureApiManagement.cs
index d00ce79d65d7..07e3aae55619 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/RestoreAzureApiManagement.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/RestoreAzureApiManagement.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.Commands
using Microsoft.Azure.Commands.ApiManagement.Models;
using Microsoft.WindowsAzure.Commands.Common.Storage;
- [Cmdlet(VerbsData.Restore, "AzureRMApiManagement"), OutputType(typeof (PsApiManagement))]
+ [Cmdlet(VerbsData.Restore, "AzureRmApiManagement"), OutputType(typeof (PsApiManagement))]
public class RestoreAzureApiManagement : AzureApiManagementCmdletBase
{
[Parameter(
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/SetAzureApiManagementHostnames.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/SetAzureApiManagementHostnames.cs
index ac16731579f7..f5526cb03e4c 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/SetAzureApiManagementHostnames.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/SetAzureApiManagementHostnames.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.Models;
- [Cmdlet(VerbsCommon.Set, "AzureRMApiManagementHostnames", DefaultParameterSetName = DefaultParameterSetName), OutputType(typeof(PsApiManagement))]
+ [Cmdlet(VerbsCommon.Set, "AzureRmApiManagementHostnames", DefaultParameterSetName = DefaultParameterSetName), OutputType(typeof(PsApiManagement))]
public class SetAzureApiManagementHostnames : AzureApiManagementCmdletBase
{
internal const string FromPsApiManagementInstanceSetName = "Set from provided PsApiManagement instance";
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/SetAzureApiManagementVirtualNetworks.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/SetAzureApiManagementVirtualNetworks.cs
index fe57b6f27d86..52356ea35450 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/SetAzureApiManagementVirtualNetworks.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/SetAzureApiManagementVirtualNetworks.cs
@@ -17,7 +17,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.Models;
- [Cmdlet(VerbsCommon.Set, "AzureRMApiManagementVirtualNetworks"), OutputType(typeof (PsApiManagement))]
+ [Cmdlet(VerbsCommon.Set, "AzureRmApiManagementVirtualNetworks"), OutputType(typeof (PsApiManagement))]
public class SetAzureApiManagementVirtualNetworks : AzureApiManagementCmdletBase
{
[Parameter(
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/UpdateAzureApiManagementDeployment.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/UpdateAzureApiManagementDeployment.cs
index 02ae8dddc4b0..4606fba8844f 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/UpdateAzureApiManagementDeployment.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/UpdateAzureApiManagementDeployment.cs
@@ -20,7 +20,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.Models;
- [Cmdlet(VerbsData.Update, "AzureRMApiManagementDeployment", DefaultParameterSetName = DefaultParameterSetName), OutputType(typeof(PsApiManagement))]
+ [Cmdlet(VerbsData.Update, "AzureRmApiManagementDeployment", DefaultParameterSetName = DefaultParameterSetName), OutputType(typeof(PsApiManagement))]
public class UpdateAzureApiManagementDeployment : AzureApiManagementCmdletBase
{
internal const string FromPsApiManagementInstanceSetName = "Update from PsApiManagement instance";
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/UpdateAzureApiManagementRegion.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/UpdateAzureApiManagementRegion.cs
index 2d5b79858d0c..326345aec642 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/UpdateAzureApiManagementRegion.cs
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/UpdateAzureApiManagementRegion.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.Models;
- [Cmdlet(VerbsData.Update, "AzureRMApiManagementRegion"), OutputType(typeof(PsApiManagement))]
+ [Cmdlet(VerbsData.Update, "AzureRmApiManagementRegion"), OutputType(typeof(PsApiManagement))]
public class UpdateAzureApiManagementRegion : AzureApiManagementCmdletBase
{
[Parameter(
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Microsoft.Azure.Commands.ApiManagement.dll-help.xml b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Microsoft.Azure.Commands.ApiManagement.dll-help.xml
index 46795e76ba70..09ffefba083d 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Microsoft.Azure.Commands.ApiManagement.dll-help.xml
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Microsoft.Azure.Commands.ApiManagement.dll-help.xml
@@ -2,7 +2,7 @@
- Add-AzureRMApiManagementRegion
+ Add-AzureRmApiManagementRegionAdds new deployment region to PsApiManagement instance.
@@ -14,11 +14,11 @@
- Add-AzureRMApiManagementRegion cmdlet adds new instance of type Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementRegion to collection of AdditionalRegions of provided instance of type Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement. This cmdlet does not deploy anything by itself but updates instance of PsApiManagement in-memory. Related cmdltes are: Update-AzureRMApiManagementRegion and Remove-AzureRMApiManagementRegion. To actually update a deployment of an API Management pass the modified PsApiManagementInstance to Update-AzureRMApiManagement cmdlet.
+ Add-AzureRmApiManagementRegion cmdlet adds new instance of type Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementRegion to collection of AdditionalRegions of provided instance of type Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement. This cmdlet does not deploy anything by itself but updates instance of PsApiManagement in-memory. Related cmdltes are: Update-AzureRmApiManagementRegion and Remove-AzureRmApiManagementRegion. To actually update a deployment of an API Management pass the modified PsApiManagementInstance to Update-AzureRmApiManagement cmdlet.
- Add-AzureRMApiManagementRegion
+ Add-AzureRmApiManagementRegionApiManagement
@@ -175,7 +175,7 @@
PS C:\>
- PS C:\> Add-AzureRMApiManagementRegion –ApiManagement $apiManagement -Location “East US” -Sku “Premium” –Capacity 2
+ PS C:\> Add-AzureRmApiManagementRegion –ApiManagement $apiManagement -Location “East US” -Sku “Premium” –Capacity 2Add new 2 units ‘Premium’ region to the PsApiManagement instance.
@@ -195,9 +195,9 @@
PS C:\>
- PS C:\> Get-AzureRMApiManagement –ResourceGroupName Contoso –Name ContosoApi |
-Add-AzureRMApiManagementRegion -Location “East US” -Sku “Premium” –Capacity 2 |
-Update-AzureRMApiManagementDeployments
+ PS C:\> Get-AzureRmApiManagement –ResourceGroupName Contoso –Name ContosoApi |
+Add-AzureRmApiManagementRegion -Location “East US” -Sku “Premium” –Capacity 2 |
+Update-AzureRmApiManagementDeploymentsScript to get a PsApiManagement, add 2 ‘Premium’ units region and update deployment.
@@ -219,7 +219,7 @@ Update-AzureRMApiManagementDeployments
- Backup-AzureRMApiManagement
+ Backup-AzureRmApiManagementBacks up API Management Service and places the backup to the specified Azure storage blob.
@@ -231,11 +231,11 @@ Update-AzureRMApiManagementDeployments
- Backup-AzureRMApiManagement cmdlet makes a backup copy of an API Management Service and places the backup to the specified Azure storage blob.
+ Backup-AzureRmApiManagement cmdlet makes a backup copy of an API Management Service and places the backup to the specified Azure storage blob.
- Backup-AzureRMApiManagement
+ Backup-AzureRmApiManagementResourceGroupName
@@ -411,7 +411,7 @@ Update-AzureRMApiManagementDeployments
PS C:\>
- PS C:\> Backup-AzureRMApiManagement –ResourceGroupName ContosoGroup –Name ContosoApi -StorageContext $storageContext -TargetContainerName ContosoBackups –TargetBlobName ContosoBackup.apimbackup
+ PS C:\> Backup-AzureRmApiManagement –ResourceGroupName ContosoGroup –Name ContosoApi -StorageContext $storageContext -TargetContainerName ContosoBackups –TargetBlobName ContosoBackup.apimbackupBackup API Management service to Azure storage blob.
@@ -433,7 +433,7 @@ Update-AzureRMApiManagementDeployments
- Get-AzureRMApiManagement
+ Get-AzureRmApiManagementGets a list or a particular API Management Service description.
@@ -445,11 +445,11 @@ Update-AzureRMApiManagementDeployments
- Get-AzureRMApiManagement cmdlet gets a list of all API Management services under subscription or specified resource group or a particular API Management.
+ Get-AzureRmApiManagement cmdlet gets a list of all API Management services under subscription or specified resource group or a particular API Management.
- Get-AzureRMApiManagement
+ Get-AzureRmApiManagementProfile
@@ -459,7 +459,7 @@ Update-AzureRMApiManagementDeployments
- Get-AzureRMApiManagement
+ Get-AzureRmApiManagementResourceGroupName
@@ -483,7 +483,7 @@ Update-AzureRMApiManagementDeployments
- Get-AzureRMApiManagement
+ Get-AzureRmApiManagementResourceGroupName
@@ -576,7 +576,7 @@ Update-AzureRMApiManagementDeployments
PS C:\>
- PS C:\> Get-AzureRMApiManagement
+ PS C:\> Get-AzureRmApiManagementGet all API Management services within subscription.
@@ -596,7 +596,7 @@ Update-AzureRMApiManagementDeployments
PS C:\>
- PS C:\> Get-AzureRMApiManagement –ResourceGroupName ContosoGroup –Name ContosoApi
+ PS C:\> Get-AzureRmApiManagement –ResourceGroupName ContosoGroup –Name ContosoApiGet API Management service by name.
@@ -618,7 +618,7 @@ Update-AzureRMApiManagementDeployments
- Get-AzureRMApiManagementSsoToken
+ Get-AzureRmApiManagementSsoTokenGets a link with an SSO token to a deployed management portal of an API Management service.
@@ -630,11 +630,11 @@ Update-AzureRMApiManagementDeployments
- Get-AzureRMApiManagementSsoToken cmdlet returns a link (URL) containing an SSO token to a deployed management portal of an API Management service.
+ Get-AzureRmApiManagementSsoToken cmdlet returns a link (URL) containing an SSO token to a deployed management portal of an API Management service.
- Get-AzureRMApiManagementSsoToken
+ Get-AzureRmApiManagementSsoTokenResourceGroupName
@@ -734,7 +734,7 @@ Update-AzureRMApiManagementDeployments
PS C:\>
- PS C:\> Get-AzureRMApiManagementSsoToken –ResourceGroupName Contoso –Name ContosoApi
+ PS C:\> Get-AzureRmApiManagementSsoToken –ResourceGroupName Contoso –Name ContosoApiGet SSO token of an API Management service.
@@ -756,7 +756,7 @@ Update-AzureRMApiManagementDeployments
- Import-AzureRMApiManagementHostnameCertificate
+ Import-AzureRmApiManagementHostnameCertificateImports a certificate in a PFX format for an API Management Service.
@@ -768,11 +768,11 @@ Update-AzureRMApiManagementDeployments
- Import-AzureRMApiManagementHostnameCertificate cmdlet imports a certificate in a PFX format for an API Management Service. The certificate is to be used for custom hostnames configuration.
+ Import-AzureRmApiManagementHostnameCertificate cmdlet imports a certificate in a PFX format for an API Management Service. The certificate is to be used for custom hostnames configuration.
- Import-AzureRMApiManagementHostnameCertificate
+ Import-AzureRmApiManagementHostnameCertificateResourceGroupName
@@ -948,7 +948,7 @@ Update-AzureRMApiManagementDeployments
PS C:\>
- PS C:\> Import-AzureRMApiManagementHostnameCertificate -Name ContosoApi -ResourceGroupName Contoso –HostnameType “Proxy” -PfxPath “C:\proxycert.pfx” -PfxPassword “certsecret”
+ PS C:\> Import-AzureRmApiManagementHostnameCertificate -Name ContosoApi -ResourceGroupName Contoso –HostnameType “Proxy” -PfxPath “C:\proxycert.pfx” -PfxPassword “certsecret”Import a certificate for Proxy custom hostname.
@@ -970,7 +970,7 @@ Update-AzureRMApiManagementDeployments
- New-AzureRMApiManagement
+ New-AzureRmApiManagementCreates new API Management Service.
@@ -982,11 +982,11 @@ Update-AzureRMApiManagementDeployments
- New-AzureRMApiManagement cmdlet creates new API Management deployment.
+ New-AzureRmApiManagement cmdlet creates new API Management deployment.
- New-AzureRMApiManagement
+ New-AzureRmApiManagementResourceGroupName
@@ -1200,7 +1200,7 @@ Update-AzureRMApiManagementDeployments
PS C:\>
- PS C:\> New-AzureRMApiManagement –ResourceGroupName ContosoGroup –Name ContosoApi –Location “Central US” –Organization Contoso –AdminEmail admin@contoso.com
+ PS C:\> New-AzureRmApiManagement –ResourceGroupName ContosoGroup –Name ContosoApi –Location “Central US” –Organization Contoso –AdminEmail admin@contoso.comCreate new ‘Developer’ tier API Management service
@@ -1220,7 +1220,7 @@ Update-AzureRMApiManagementDeployments
PS C:\>
- PS C:\> New-AzureRMApiManagement –ResourceGroupName ContosoGroup –Name ContosoApi –Location “Central US” –Organization Contoso –AdminEmail admin@contoso.com –Sku Standard –Capacity 3
+ PS C:\> New-AzureRmApiManagement –ResourceGroupName ContosoGroup –Name ContosoApi –Location “Central US” –Organization Contoso –AdminEmail admin@contoso.com –Sku Standard –Capacity 3Create new ‘Standard’ tier API Management service with 3 units
@@ -1242,7 +1242,7 @@ Update-AzureRMApiManagementDeployments
- New-AzureRMApiManagementHostnameConfiguration
+ New-AzureRmApiManagementHostnameConfigurationCreates an instance of PsApiManagementHostnameConfiguration.
@@ -1254,11 +1254,11 @@ Update-AzureRMApiManagementDeployments
- Helper command to create an instance of PsApiManagementHostnameConfiguration. This command is to be used with Set-AzureRMApiManagementHostnames command.
+ Helper command to create an instance of PsApiManagementHostnameConfiguration. This command is to be used with Set-AzureRmApiManagementHostnames command.
- New-AzureRMApiManagementHostnameConfiguration
+ New-AzureRmApiManagementHostnameConfigurationCertificateThumbprint
@@ -1358,7 +1358,7 @@ Update-AzureRMApiManagementDeployments
PS C:\>
- PS C:\> New-AzureRMApiManagementHostnameConfiguration -Hostname “portal.contoso.com” -CertificateThumbprint 33CC47C6FCA848DC9B14A6F071C1EF7C
+ PS C:\> New-AzureRmApiManagementHostnameConfiguration -Hostname “portal.contoso.com” -CertificateThumbprint 33CC47C6FCA848DC9B14A6F071C1EF7CCreate and initialize instance of Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementHostnameConfiguration type.
@@ -1380,7 +1380,7 @@ Update-AzureRMApiManagementDeployments
- New-AzureRMApiManagementVirtualNetwork
+ New-AzureRmApiManagementVirtualNetworkCreates an instance of PsApiManagementVirtualNetwork.
@@ -1392,11 +1392,11 @@ Update-AzureRMApiManagementDeployments
- Helper command to create an instance of PsApiManagementVirtualNetwork. This command is to be used with Set-AzureRMApiManagementVirtualNetworks command.
+ Helper command to create an instance of PsApiManagementVirtualNetwork. This command is to be used with Set-AzureRmApiManagementVirtualNetworks command.
- New-AzureRMApiManagementVirtualNetwork
+ New-AzureRmApiManagementVirtualNetworkLocation
@@ -1516,10 +1516,10 @@ Update-AzureRMApiManagementDeployments
PS C:\>$virtualNetworks = @()
-$virtualNetworks += New-AzureRMApiManagementVirtualNetwork –Location “East US” –SubtenName ContosoNet -VnetId “089D3F4D-B986-4DFD-9259-9112BA7A1F03”
-Set-AzureRMApiManagementVirtualNetworks –ResourceGroupName ContosoGroup –Name ContosoApi -VirtualNetworks $virtualNetworks
+$virtualNetworks += New-AzureRmApiManagementVirtualNetwork –Location “East US” –SubtenName ContosoNet -VnetId “089D3F4D-B986-4DFD-9259-9112BA7A1F03”
+Set-AzureRmApiManagementVirtualNetworks –ResourceGroupName ContosoGroup –Name ContosoApi -VirtualNetworks $virtualNetworks
- Script to create a virtual network and call run Set-AzureRMApiManagementVirtualNetworks command.
+ Script to create a virtual network and call run Set-AzureRmApiManagementVirtualNetworks command.
@@ -1539,7 +1539,7 @@ Set-AzureRMApiManagementVirtualNetworks –ResourceGroupName ContosoGroup –Nam
- Remove-AzureRMApiManagement
+ Remove-AzureRmApiManagementRemoves existing API Management.
@@ -1551,11 +1551,11 @@ Set-AzureRMApiManagementVirtualNetworks –ResourceGroupName ContosoGroup –Nam
- Remove-AzureRMApiManagement cmdlet removes existing API Management service.
+ Remove-AzureRmApiManagement cmdlet removes existing API Management service.
- Remove-AzureRMApiManagement
+ Remove-AzureRmApiManagementResourceGroupName
@@ -1693,7 +1693,7 @@ Set-AzureRMApiManagementVirtualNetworks –ResourceGroupName ContosoGroup –Nam
PS C:\>
- PS C:\> Remove-AzureRMApiManagement –ResourceGroupName ContosoGroup –Name ContosoApi
+ PS C:\> Remove-AzureRmApiManagement –ResourceGroupName ContosoGroup –Name ContosoApiRemove API Management service.
@@ -1715,7 +1715,7 @@ Set-AzureRMApiManagementVirtualNetworks –ResourceGroupName ContosoGroup –Nam
- Remove-AzureRMApiManagementRegion
+ Remove-AzureRmApiManagementRegionRemoves existing deployment region from PsApiManagement instance.
@@ -1727,11 +1727,11 @@ Set-AzureRMApiManagementVirtualNetworks –ResourceGroupName ContosoGroup –Nam
- Remove-AzureRMApiManagementRegion cmdlet removes instance of type Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementRegion from collection of AdditionalRegions of provided instance of type Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement. This cmdlet does not modifies deployment by itself but updates instance of PsApiManagement in-memory. Related cmdltes are: Update-AzureRMApiManagementRegion and Add-AzureRMApiManagementRegion. To actually update a deployment of an API Management pass the modified PsApiManagementInstance to Update-AzureRMApiManagement cmdlet.
+ Remove-AzureRmApiManagementRegion cmdlet removes instance of type Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementRegion from collection of AdditionalRegions of provided instance of type Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement. This cmdlet does not modifies deployment by itself but updates instance of PsApiManagement in-memory. Related cmdltes are: Update-AzureRmApiManagementRegion and Add-AzureRmApiManagementRegion. To actually update a deployment of an API Management pass the modified PsApiManagementInstance to Update-AzureRmApiManagement cmdlet.
- Remove-AzureRMApiManagementRegion
+ Remove-AzureRmApiManagementRegionApiManagement
@@ -1831,7 +1831,7 @@ Set-AzureRMApiManagementVirtualNetworks –ResourceGroupName ContosoGroup –Nam
PS C:\>
- PS C:\> Remove-AzureRMApiManagementRegion –ApiManagement $apiManagement -Location “East US”
+ PS C:\> Remove-AzureRmApiManagementRegion –ApiManagement $apiManagement -Location “East US”Remove a region from the PsApiManagement instance.
@@ -1851,7 +1851,7 @@ Set-AzureRMApiManagementVirtualNetworks –ResourceGroupName ContosoGroup –Nam
PS C:\>
- PS C:\> Get-AzureRMApiManagement –ResourceGroupName Contoso –Name ContosoApi | Remove-AzureRMApiManagementRegion -Location “East US” | Update-AzureRMApiManagementDeployment
+ PS C:\> Get-AzureRmApiManagement –ResourceGroupName Contoso –Name ContosoApi | Remove-AzureRmApiManagementRegion -Location “East US” | Update-AzureRmApiManagementDeployment
Script to get a PsApiManagement, remove a region and update deployment with piping.
@@ -1874,7 +1874,7 @@ Set-AzureRMApiManagementVirtualNetworks –ResourceGroupName ContosoGroup –Nam
- Restore-AzureRMApiManagement
+ Restore-AzureRmApiManagementRestores an API Management Service from the specified Azure storage blob.
@@ -1886,11 +1886,11 @@ Set-AzureRMApiManagementVirtualNetworks –ResourceGroupName ContosoGroup –Nam
- Restore-AzureRMApiManagement cmdlet restores an API Management Service from the specified backup residing in an Azure storage blob.
+ Restore-AzureRmApiManagement cmdlet restores an API Management Service from the specified backup residing in an Azure storage blob.
- Restore-AzureRMApiManagement
+ Restore-AzureRmApiManagementResourceGroupName
@@ -2066,7 +2066,7 @@ Set-AzureRMApiManagementVirtualNetworks –ResourceGroupName ContosoGroup –Nam
PS C:\>
- PS C:\> Restore-AzureRMApiManagement –ResourceGroupName ContosoGroup –Name RestoredContosoApi -StorageContext $storageContext -SourceContainerName ContosoBackups –SourceBlobName ContosoBackup.apimbackup
+ PS C:\> Restore-AzureRmApiManagement –ResourceGroupName ContosoGroup –Name RestoredContosoApi -StorageContext $storageContext -SourceContainerName ContosoBackups –SourceBlobName ContosoBackup.apimbackupRestore API Management service from Azure storage blob.
@@ -2088,7 +2088,7 @@ Set-AzureRMApiManagementVirtualNetworks –ResourceGroupName ContosoGroup –Nam
- Set-AzureRMApiManagementHostnames
+ Set-AzureRmApiManagementHostnamesSets custom hostname configuration for an API Management service proxy and/or portal.
@@ -2100,11 +2100,11 @@ Set-AzureRMApiManagementVirtualNetworks –ResourceGroupName ContosoGroup –Nam
- Set-AzureRMApiManagementHostnames cmdlet sets (applies) custom hostname configuration for an API Management service proxy and/or portal.
+ Set-AzureRmApiManagementHostnames cmdlet sets (applies) custom hostname configuration for an API Management service proxy and/or portal.
- Set-AzureRMApiManagementHostnames
+ Set-AzureRmApiManagementHostnamesResourceGroupName
@@ -2149,7 +2149,7 @@ Set-AzureRMApiManagementVirtualNetworks –ResourceGroupName ContosoGroup –Nam
- Set-AzureRMApiManagementHostnames
+ Set-AzureRmApiManagementHostnamesApiManagement
@@ -2297,7 +2297,7 @@ Set-AzureRMApiManagementVirtualNetworks –ResourceGroupName ContosoGroup –Nam
PS C:\>
- PS C:\> Set-AzureRMApiHostnames -Name ContosoApi -ResourceGroupName Contoso –PortalHostnameConfiguration $portalHostnameConf –ProxyHostnameConfiguration $proxyHostnameConf
+ PS C:\> Set-AzureRmApiHostnames -Name ContosoApi -ResourceGroupName Contoso –PortalHostnameConfiguration $portalHostnameConf –ProxyHostnameConfiguration $proxyHostnameConfSet custom hostname configuration for proxy and portal.
@@ -2317,11 +2317,11 @@ Set-AzureRMApiManagementVirtualNetworks –ResourceGroupName ContosoGroup –Nam
PS C:\>
- Import-AzureRMApiManagementHostnameCertificate -Name ContosoApi -ResourceGroupName Contoso –HostnameType “Proxy” -PfxPath “C:\proxycert.pfx” -PfxPassword “certsecret”
-Import-AzureRMApiManagementHostnameCertificate -Name ContosoApi -ResourceGroupName Contoso –HostnameType “Portal” -PfxPath “C:\portalcert.pfx” -PfxPassword “certsecret”
-$portalHostnameConf = New-AzureRMApiManagementHostnameConfiguration -Hostname “portal.contoso.com” -CertificateThumbprint 33CC47C6FCA848DC9B14A6F071C1EF7C
-$proxyHostnameConf = New-AzureRMApiManagementHostnameConfiguration -Hostname “proxy.contoso.com” -CertificateThumbprint 5DD7CCF6A1E74E0987DD2873406B7264
-Set-AzureRMApiHostnames -Name ContosoApi -ResourceGroupName Contoso –PortalHostnameConfiguration $portalHostnameConf –ProxyHostnameConfiguration $proxyHostnameConf
+ Import-AzureRmApiManagementHostnameCertificate -Name ContosoApi -ResourceGroupName Contoso –HostnameType “Proxy” -PfxPath “C:\proxycert.pfx” -PfxPassword “certsecret”
+Import-AzureRmApiManagementHostnameCertificate -Name ContosoApi -ResourceGroupName Contoso –HostnameType “Portal” -PfxPath “C:\portalcert.pfx” -PfxPassword “certsecret”
+$portalHostnameConf = New-AzureRmApiManagementHostnameConfiguration -Hostname “portal.contoso.com” -CertificateThumbprint 33CC47C6FCA848DC9B14A6F071C1EF7C
+$proxyHostnameConf = New-AzureRmApiManagementHostnameConfiguration -Hostname “proxy.contoso.com” -CertificateThumbprint 5DD7CCF6A1E74E0987DD2873406B7264
+Set-AzureRmApiHostnames -Name ContosoApi -ResourceGroupName Contoso –PortalHostnameConfiguration $portalHostnameConf –ProxyHostnameConfiguration $proxyHostnameConf
Script to configure custom hostname for proxy and portal. First import corresponding certificates and then apply custom hostnames.
@@ -2344,7 +2344,7 @@ Set-AzureRMApiHostnames -Name ContosoApi -ResourceGroupName Contoso –PortalHos
- Set-AzureRMApiManagementVirtualNetworks
+ Set-AzureRmApiManagementVirtualNetworksSets VPN configuration for an API Management Service.
@@ -2356,11 +2356,11 @@ Set-AzureRMApiHostnames -Name ContosoApi -ResourceGroupName Contoso –PortalHos
- Set-AzureRMApiManagementVirtualNetworks cmdlet sets Virtual Network configuration for an API Management.
+ Set-AzureRmApiManagementVirtualNetworks cmdlet sets Virtual Network configuration for an API Management.
- Set-AzureRMApiManagementVirtualNetworks
+ Set-AzureRmApiManagementVirtualNetworksResourceGroupName
@@ -2498,7 +2498,7 @@ Set-AzureRMApiHostnames -Name ContosoApi -ResourceGroupName Contoso –PortalHos
PS C:\>
- PS C:\> Set-AzureRMApiManagementVirtualNetworks –ResourceGroupName ContosoGroup –Name ContosoApi -VirtualNetworks $virtualNetworks
+ PS C:\> Set-AzureRmApiManagementVirtualNetworks –ResourceGroupName ContosoGroup –Name ContosoApi -VirtualNetworks $virtualNetworksSet virtual networks for an API Management service
@@ -2520,7 +2520,7 @@ Set-AzureRMApiHostnames -Name ContosoApi -ResourceGroupName Contoso –PortalHos
- Update-AzureRMApiManagementDeployment
+ Update-AzureRmApiManagementDeploymentUpdates deployment of an API Management Service.
@@ -2532,11 +2532,11 @@ Set-AzureRMApiHostnames -Name ContosoApi -ResourceGroupName Contoso –PortalHos
- Update-AzureRMApiManagementDeployment cmdlet updates current deployment (scales, adds/removes additional deployment regions).
+ Update-AzureRmApiManagementDeployment cmdlet updates current deployment (scales, adds/removes additional deployment regions).
- Update-AzureRMApiManagementDeployment
+ Update-AzureRmApiManagementDeploymentResourceGroupName
@@ -2602,7 +2602,7 @@ Set-AzureRMApiHostnames -Name ContosoApi -ResourceGroupName Contoso –PortalHos
- Update-AzureRMApiManagementDeployment
+ Update-AzureRmApiManagementDeploymentApiManagement
@@ -2786,7 +2786,7 @@ Set-AzureRMApiHostnames -Name ContosoApi -ResourceGroupName Contoso –PortalHos
PS C:\>
- PS C:\> Update-AzureRMApiManagementDeployment -ResourceGroupName Contoso -Name ContosoApi –Sku “Standard” –Capacity 3
+ PS C:\> Update-AzureRmApiManagementDeployment -ResourceGroupName Contoso -Name ContosoApi –Sku “Standard” –Capacity 3Command to update deployment of an ApiManagement to 3 unit ‘Standard’.
@@ -2806,11 +2806,11 @@ Set-AzureRMApiHostnames -Name ContosoApi -ResourceGroupName Contoso –PortalHos
PS C:\>
- $apiManagement = Get-AzureRMApiManagement –ResourceGroupName Contoso –Name ContosoApi
+ $apiManagement = Get-AzureRmApiManagement –ResourceGroupName Contoso –Name ContosoApi
$apiManagement.Sku = “Premium”
$apiManagement.Capacity = 5
$apiManagement.AddRegion(“Central US”, “Premium”, 3)
-Update-AzureRMApiManagementDeployment –ApiManagement $apiManagement
+Update-AzureRmApiManagementDeployment –ApiManagement $apiManagement
Script to get an ApiManagement, scale to 5 ‘Premium’ units and add additional 3 unit ‘Premium’ region.
@@ -2833,7 +2833,7 @@ Update-AzureRMApiManagementDeployment –ApiManagement $apiManagement
- Update-AzureRMApiManagementRegion
+ Update-AzureRmApiManagementRegionUpdates existing deployment region in PsApiManagement instance.
@@ -2845,11 +2845,11 @@ Update-AzureRMApiManagementDeployment –ApiManagement $apiManagement
- Update-AzureRMApiManagementRegion cmdlet updates (scales up/down or changes VPN configuration) existing instance of type Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementRegion in collection of AdditionalRegions of provided instance of type Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement. This cmdlet does not deploy anything by itself but updates instance of PsApiManagement in-memory. Related cmdltes are: Add-AzureRMApiManagementRegion and Remove-AzureRMApiManagementRegion. To actually update a deployment of an API Management pass the modified PsApiManagementInstance to Update-AzureRMApiManagement cmdlet.
+ Update-AzureRmApiManagementRegion cmdlet updates (scales up/down or changes VPN configuration) existing instance of type Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementRegion in collection of AdditionalRegions of provided instance of type Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement. This cmdlet does not deploy anything by itself but updates instance of PsApiManagement in-memory. Related cmdltes are: Add-AzureRmApiManagementRegion and Remove-AzureRmApiManagementRegion. To actually update a deployment of an API Management pass the modified PsApiManagementInstance to Update-AzureRmApiManagement cmdlet.
- Update-AzureRMApiManagementRegion
+ Update-AzureRmApiManagementRegionApiManagement
diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement/packages.config b/src/ResourceManager/ApiManagement/Commands.ApiManagement/packages.config
index 5fcdc5862226..7cbc29f96364 100644
--- a/src/ResourceManager/ApiManagement/Commands.ApiManagement/packages.config
+++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement/packages.config
@@ -3,7 +3,7 @@
-
+
diff --git a/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/Commands.ApiManagement.ServiceManagement.Test.csproj b/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/Commands.ApiManagement.ServiceManagement.Test.csproj
index 995a8446fcb7..aef0f9a22e66 100644
--- a/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/Commands.ApiManagement.ServiceManagement.Test.csproj
+++ b/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/Commands.ApiManagement.ServiceManagement.Test.csproj
@@ -42,7 +42,7 @@
..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.dll
- ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.3.0-preview\lib\net45\Microsoft.Azure.Common.Authentication.dll
+ ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.3.1-preview\lib\net45\Microsoft.Azure.Common.Authentication.dllTrue
@@ -51,7 +51,7 @@
False
- ..\..\..\Package\$(Configuration)\ResourceManager\AzureResourceManager\AzureRM.Resources\Microsoft.Azure.Gallery.dll
+ ..\..\..\packages\Microsoft.Azure.Gallery.2.6.2-preview\lib\net40\Microsoft.Azure.Gallery.dllFalse
@@ -59,7 +59,7 @@
False
- ..\..\..\Package\$(Configuration)\ResourceManager\AzureResourceManager\AzureRM.Resources\Microsoft.Azure.Management.Authorization.dll
+ ..\..\..\packages\Microsoft.Azure.Management.Authorization.1.0.0\lib\net40\Microsoft.Azure.Management.Authorization.dll..\..\..\packages\Microsoft.Azure.Management.Storage.2.4.0-preview\lib\net40\Microsoft.Azure.Management.Storage.dll
@@ -160,17 +160,15 @@
{3436a126-edc9-4060-8952-9a1be34cdd95}Commands.ScenarioTests.ResourceManager.Common
-
- {e1f5201d-6067-430e-b303-4e367652991b}
- Commands.Resources
- {ed8ba708-af42-4c08-9f4e-daa1037797d5}Commands.ApiManagement.ServiceManagement
-
+
+ Designer
+ PreserveNewest
@@ -242,9 +240,6 @@
-
- xcopy "$(SolutionDir)Package\$(ConfigurationName)\*.*" $(TargetDir) /Y /E
-
diff --git a/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/ScenarioTests/ApiManagementTests.cs b/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/ScenarioTests/ApiManagementTests.cs
index 9cfd732a8db6..1d0eb9f14e4b 100644
--- a/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/ScenarioTests/ApiManagementTests.cs
+++ b/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/ScenarioTests/ApiManagementTests.cs
@@ -14,8 +14,6 @@
namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Test.ScenarioTests
{
- using System;
- using System.Management.Automation;
using Microsoft.Azure.Common.Authentication;
using Microsoft.Azure.Gallery;
using Microsoft.Azure.Management.ApiManagement;
@@ -177,7 +175,11 @@ private void RunPowerShellTest(params string[] scripts)
SetupManagementClients();
_helper.SetupEnvironment(AzureModule.AzureResourceManager);
- _helper.SetupModules(AzureModule.AzureResourceManager, "ScenarioTests\\Common.ps1", "ScenarioTests\\" + GetType().Name + ".ps1");
+ _helper.SetupModules(AzureModule.AzureResourceManager,
+ "ScenarioTests\\Common.ps1",
+ "ScenarioTests\\" + GetType().Name + ".ps1",
+ _helper.RMProfileModule,
+ _helper.GetRMModulePath(@"AzureRM.ApiManagement.psd1"));
_helper.RunPowerShellTest(scripts);
}
diff --git a/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/ScenarioTests/ApiManagementTests.ps1 b/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/ScenarioTests/ApiManagementTests.ps1
index 4f1a364a3cdf..615c86aed7fb 100644
--- a/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/ScenarioTests/ApiManagementTests.ps1
+++ b/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/ScenarioTests/ApiManagementTests.ps1
@@ -6,10 +6,10 @@ function Api-CrudTest
{
Param($resourceGroupName, $serviceName)
- $context = New-AzureRMApiManagementContext -ResourceGroupName $resourceGroupName -ServiceName $serviceName
+ $context = New-AzureRmApiManagementContext -ResourceGroupName $resourceGroupName -ServiceName $serviceName
# get all apis
- $apis = Get-AzureRMApiManagementApi -Context $context
+ $apis = Get-AzureRmApiManagementApi -Context $context
# there should be one API
Assert-AreEqual 1 $apis.Count
@@ -28,7 +28,7 @@ Param($resourceGroupName, $serviceName)
# get by ID
$apiId = $apis[0].ApiId
- $api = Get-AzureRMApiManagementApi -Context $context -ApiId $apiId
+ $api = Get-AzureRmApiManagementApi -Context $context -ApiId $apiId
Assert-AreEqual $apiId $api.ApiId
Assert-AreEqual "Echo API" $api.Name
@@ -45,7 +45,7 @@ Param($resourceGroupName, $serviceName)
# get by Name
$apiName = $apis[0].Name
- $apis = Get-AzureRMApiManagementApi -Context $context -Name $apiName
+ $apis = Get-AzureRmApiManagementApi -Context $context -Name $apiName
Assert-AreEqual 1 $apis.Count
Assert-NotNull $apis[0].ApiId
@@ -71,7 +71,7 @@ Param($resourceGroupName, $serviceName)
$subscriptionKeyParametersHeader = getAssetName
$subscriptionKeyQueryStringParamName = getAssetName
- $newApi = New-AzureRMApiManagementApi -Context $context -ApiId $newApiId -Name $newApiName -Description $newApiDescription `
+ $newApi = New-AzureRmApiManagementApi -Context $context -ApiId $newApiId -Name $newApiName -Description $newApiDescription `
-Protocols @("http", "https") -Path $newApiPath -ServiceUrl $newApiServiceUrl `
-SubscriptionKeyHeaderName $subscriptionKeyParametersHeader -SubscriptionKeyQueryParamName $subscriptionKeyQueryStringParamName
@@ -96,7 +96,7 @@ Param($resourceGroupName, $serviceName)
$subscriptionKeyParametersHeader = getAssetName
$subscriptionKeyQueryStringParamName = getAssetName
- $newApi = Set-AzureRMApiManagementApi -Context $context -ApiId $newApiId -Name $newApiName -Description $newApiDescription `
+ $newApi = Set-AzureRmApiManagementApi -Context $context -ApiId $newApiId -Name $newApiName -Description $newApiDescription `
-Protocols @("https") -Path $newApiPath -ServiceUrl $newApiServiceUrl `
-SubscriptionKeyHeaderName $subscriptionKeyParametersHeader -SubscriptionKeyQueryParamName $subscriptionKeyQueryStringParamName `
-PassThru
@@ -113,12 +113,12 @@ Param($resourceGroupName, $serviceName)
Assert-AreEqual $subscriptionKeyParametersHeader $newApi.SubscriptionKeyHeaderName
Assert-AreEqual $subscriptionKeyQueryStringParamName $newApi.SubscriptionKeyQueryParamName
- $product = Get-AzureRMApiManagementProduct -Context $context | Select -First 1
- Add-AzureRMApiManagementApiToProduct -Context $context -ApiId $newApiId -ProductId $product.ProductId
+ $product = Get-AzureRmApiManagementProduct -Context $context | Select -First 1
+ Add-AzureRmApiManagementApiToProduct -Context $context -ApiId $newApiId -ProductId $product.ProductId
#get by product id
$found = 0
- $apis = Get-AzureRMApiManagementApi -Context $context -ProductId $product.ProductId
+ $apis = Get-AzureRmApiManagementApi -Context $context -ProductId $product.ProductId
for ($i = 0; $i -lt $apis.Count; $i++)
{
if($apis[$i].ApiId -eq $newApiId)
@@ -128,9 +128,9 @@ Param($resourceGroupName, $serviceName)
}
Assert-AreEqual 1 $found
- Remove-AzureRMApiManagementApiFromProduct -Context $context -ApiId $newApiId -ProductId $product.ProductId
+ Remove-AzureRmApiManagementApiFromProduct -Context $context -ApiId $newApiId -ProductId $product.ProductId
$found = 0
- $apis = Get-AzureRMApiManagementApi -Context $context -ProductId $product.ProductId
+ $apis = Get-AzureRmApiManagementApi -Context $context -ProductId $product.ProductId
for ($i = 0; $i -lt $apis.Count; $i++)
{
if($apis[$i].ApiId -eq $newApiId)
@@ -143,7 +143,7 @@ Param($resourceGroupName, $serviceName)
finally
{
# remove created api
- $removed = Remove-AzureRMApiManagementApi -Context $context -ApiId $newApiId -PassThru -Force
+ $removed = Remove-AzureRmApiManagementApi -Context $context -ApiId $newApiId -PassThru -Force
Assert-True {$removed}
}
}
@@ -156,7 +156,7 @@ function Api-ImportExportTest
{
Param($resourceGroupName, $serviceName)
- $context = New-AzureRMApiManagementContext -ResourceGroupName $resourceGroupName -ServiceName $serviceName
+ $context = New-AzureRmApiManagementContext -ResourceGroupName $resourceGroupName -ServiceName $serviceName
$wadlPath = "./Resources/WADLYahoo.xml"
$path = "wadlapi"
@@ -165,20 +165,20 @@ Param($resourceGroupName, $serviceName)
try
{
# import api from file
- $api = Import-AzureRMApiManagementApi -Context $context -ApiId $wadlApiId -SpecificationPath $wadlPath -SpecificationFormat Wadl -Path $path
+ $api = Import-AzureRmApiManagementApi -Context $context -ApiId $wadlApiId -SpecificationPath $wadlPath -SpecificationFormat Wadl -Path $path
Assert-AreEqual $wadlApiId $api.ApiId
Assert-AreEqual $path $api.Path
# export api to pipline
- $result = Export-AzureRMApiManagementApi -Context $context -ApiId $wadlApiId -SpecificationFormat Wadl
+ $result = Export-AzureRmApiManagementApi -Context $context -ApiId $wadlApiId -SpecificationFormat Wadl
Assert-True {$result -like '*Yahoo News Search API*'}
}
finally
{
# remove created api
- $removed = Remove-AzureRMApiManagementApi -Context $context -ApiId $wadlApiId -PassThru -Force
+ $removed = Remove-AzureRmApiManagementApi -Context $context -ApiId $wadlApiId -PassThru -Force
Assert-True {$removed}
}
}
@@ -191,20 +191,20 @@ function Operations-CrudTest
{
Param($resourceGroupName, $serviceName)
- $context = New-AzureRMApiManagementContext -ResourceGroupName $resourceGroupName -ServiceName $serviceName
+ $context = New-AzureRmApiManagementContext -ResourceGroupName $resourceGroupName -ServiceName $serviceName
# get api
- $api = Get-AzureRMApiManagementApi -Context $context -Name 'Echo API'| Select -First 1
+ $api = Get-AzureRmApiManagementApi -Context $context -Name 'Echo API'| Select -First 1
# get all api operations
- $operations = Get-AzureRMApiManagementOperation -Context $context -ApiId $api.ApiId
+ $operations = Get-AzureRmApiManagementOperation -Context $context -ApiId $api.ApiId
Assert-AreEqual 6 $operations.Count
for ($i = 0; $i -lt $operations.Count; $i++)
{
Assert-AreEqual $api.ApiId $operations[$i].ApiId
- $operation = Get-AzureRMApiManagementOperation -Context $context -ApiId $api.ApiId -OperationId $operations[$i].OperationId
+ $operation = Get-AzureRmApiManagementOperation -Context $context -ApiId $api.ApiId -OperationId $operations[$i].OperationId
Assert-AreEqual $api.ApiId $operation.ApiId
Assert-AreEqual $operations[$i].OperationId $operation.OperationId
@@ -296,7 +296,7 @@ Param($resourceGroupName, $serviceName)
$responseRepresentation.Sample = $newOperationResponseRepresentationSample
$response.Representations = @($responseRepresentation)
- $newOperation = New-AzureRMApiManagementOperation –Context $context –ApiId $api.ApiId –OperationId $newOperationId –Name $newOperationName `
+ $newOperation = New-AzureRmApiManagementOperation –Context $context –ApiId $api.ApiId –OperationId $newOperationId –Name $newOperationName `
–Method $newOperationMethod –UrlTemplate $newperationUrlTemplate –Description $newOperationDescription –TemplateParameters @($rid, $query) –Request $request –Responses @($response)
Assert-AreEqual $api.ApiId $newOperation.ApiId
@@ -421,7 +421,7 @@ Param($resourceGroupName, $serviceName)
$responseRepresentation.Sample = $newOperationResponseRepresentationSample
$response.Representations = @($responseRepresentation)
- $newOperation = Set-AzureRMApiManagementOperation –Context $context –ApiId $api.ApiId –OperationId $newOperationId –Name $newOperationName `
+ $newOperation = Set-AzureRmApiManagementOperation –Context $context –ApiId $api.ApiId –OperationId $newOperationId –Name $newOperationName `
–Method $newOperationMethod –UrlTemplate $newperationUrlTemplate –Description $newOperationDescription –TemplateParameters @($rid, $query) –Request $request –Responses @($response) -PassThru
Assert-AreEqual $api.ApiId $newOperation.ApiId
@@ -469,14 +469,14 @@ Param($resourceGroupName, $serviceName)
finally
{
#remove created operation
- $removed = Remove-AzureRMApiManagementOperation -Context $context -ApiId $api.ApiId -OperationId $newOperationId -Force -PassThru
+ $removed = Remove-AzureRmApiManagementOperation -Context $context -ApiId $api.ApiId -OperationId $newOperationId -Force -PassThru
Assert-True {$removed}
$operation = $null
try
{
# check it was removed
- $operation = Get-AzureRMApiManagementOperation -Context $context -ApiId $api.ApiId -OperationId $newOperationId
+ $operation = Get-AzureRmApiManagementOperation -Context $context -ApiId $api.ApiId -OperationId $newOperationId
}
catch
{
@@ -494,10 +494,10 @@ function Product-CrudTest
{
Param($resourceGroupName, $serviceName)
- $context = New-AzureRMApiManagementContext -ResourceGroupName $resourceGroupName -ServiceName $serviceName
+ $context = New-AzureRmApiManagementContext -ResourceGroupName $resourceGroupName -ServiceName $serviceName
# get all products
- $products = Get-AzureRMApiManagementProduct -Context $context
+ $products = Get-AzureRmApiManagementProduct -Context $context
# there should be 2 products
Assert-AreEqual 2 $products.Count
@@ -535,7 +535,7 @@ Param($resourceGroupName, $serviceName)
$productSubscriptionsLimit = 10
$productTerms = getAssetName
- $newProduct = New-AzureRMApiManagementProduct -Context $context –ProductId $productId –Title $productName –Description $productDescription `
+ $newProduct = New-AzureRmApiManagementProduct -Context $context –ProductId $productId –Title $productName –Description $productDescription `
–LegalTerms $productTerms –NotificationPeriod $notificationPeriod –SubscriptionPeriod $subscriptionPeriod –SubscriptionRequired $productSubscriptionRequired `
–ApprovalRequired $productApprovalRequired –State $productState -SubscriptionsLimit $productSubscriptionsLimit
@@ -551,12 +551,12 @@ Param($resourceGroupName, $serviceName)
Assert-AreEqual $productTerms $newProduct.LegalTerms
#add api to product
- $apis = Get-AzureRMApiManagementApi -Context $context -ProductId $productId
+ $apis = Get-AzureRmApiManagementApi -Context $context -ProductId $productId
Assert-AreEqual 0 $apis.Count
- Get-AzureRMApiManagementApi -Context $context | Add-AzureRMApiManagementApiToProduct -Context $context -ProductId $productId
+ Get-AzureRmApiManagementApi -Context $context | Add-AzureRmApiManagementApiToProduct -Context $context -ProductId $productId
- $apis = Get-AzureRMApiManagementApi -Context $context -ProductId $productId
+ $apis = Get-AzureRmApiManagementApi -Context $context -ProductId $productId
Assert-AreEqual 1 $apis.Count
#modify product
@@ -570,7 +570,7 @@ Param($resourceGroupName, $serviceName)
$productSubscriptionsLimit = 20
$productTerms = getAssetName
- $newProduct = Set-AzureRMApiManagementProduct -Context $context –ProductId $productId –Title $productName –Description $productDescription `
+ $newProduct = Set-AzureRmApiManagementProduct -Context $context –ProductId $productId –Title $productName –Description $productDescription `
–LegalTerms $productTerms –NotificationPeriod $notificationPeriod –SubscriptionPeriod $subscriptionPeriod -ApprovalRequired $productApprovalRequired `
–SubscriptionRequired $TRUE –State $productState -SubscriptionsLimit $productSubscriptionsLimit -PassThru
@@ -586,15 +586,15 @@ Param($resourceGroupName, $serviceName)
Assert-AreEqual $productTerms $newProduct.LegalTerms
#remove api from product
- Get-AzureRMApiManagementApi -Context $context | Remove-AzureRMApiManagementApiFromProduct -Context $context -ProductId $productId
+ Get-AzureRmApiManagementApi -Context $context | Remove-AzureRmApiManagementApiFromProduct -Context $context -ProductId $productId
- $apis = Get-AzureRMApiManagementApi -Context $context -ProductId $productId
+ $apis = Get-AzureRmApiManagementApi -Context $context -ProductId $productId
Assert-AreEqual 0 $apis.Count
}
finally
{
# remove created product
- $removed = Remove-AzureRMApiManagementProduct -Context $context -ProductId $productId -DeleteSubscriptions -PassThru -Force
+ $removed = Remove-AzureRmApiManagementProduct -Context $context -ProductId $productId -DeleteSubscriptions -PassThru -Force
Assert-True {$removed}
}
}
@@ -607,10 +607,10 @@ function Subscription-CrudTest
{
Param($resourceGroupName, $serviceName)
- $context = New-AzureRMApiManagementContext -ResourceGroupName $resourceGroupName -ServiceName $serviceName
+ $context = New-AzureRmApiManagementContext -ResourceGroupName $resourceGroupName -ServiceName $serviceName
# get all subscriptions
- $subs = Get-AzureRMApiManagementSubscription -Context $context
+ $subs = Get-AzureRmApiManagementSubscription -Context $context
Assert-AreEqual 2 $subs.Count
for($i = 0; $i -lt $subs.Count; $i++)
@@ -625,7 +625,7 @@ Param($resourceGroupName, $serviceName)
Assert-NotNull $subs[$i].SecondaryKey
# get by id
- $sub = Get-AzureRMApiManagementSubscription -Context $context -SubscriptionId $subs[$i].SubscriptionId
+ $sub = Get-AzureRmApiManagementSubscription -Context $context -SubscriptionId $subs[$i].SubscriptionId
Assert-AreEqual $subs[$i].SubscriptionId $sub.SubscriptionId
Assert-AreEqual $subs[$i].UserId $sub.UserId
@@ -637,7 +637,7 @@ Param($resourceGroupName, $serviceName)
}
# update product to accept unlimited number or subscriptions
- Set-AzureRMApiManagementProduct -Context $context -ProductId $subs[0].ProductId -SubscriptionsLimit 100
+ Set-AzureRmApiManagementProduct -Context $context -ProductId $subs[0].ProductId -SubscriptionsLimit 100
# add new subscription
$newSubscriptionId = getAssetName
@@ -648,7 +648,7 @@ Param($resourceGroupName, $serviceName)
$newSubscriptionSk = getAssetName
$newSubscriptionState = "Active"
- $sub = New-AzureRMApiManagementSubscription -Context $context -SubscriptionId $newSubscriptionId -UserId $subs[0].UserId `
+ $sub = New-AzureRmApiManagementSubscription -Context $context -SubscriptionId $newSubscriptionId -UserId $subs[0].UserId `
-ProductId $subs[0].ProductId -Name $newSubscriptionName -PrimaryKey $newSubscriptionPk -SecondaryKey $newSubscriptionSk `
-State $newSubscriptionState
@@ -664,7 +664,7 @@ Param($resourceGroupName, $serviceName)
$patchedSk = getAssetName
$patchedExpirationDate = [DateTime]::Parse('2025-7-20')
- $sub = Set-AzureRMApiManagementSubscription -Context $context -SubscriptionId $newSubscriptionId -Name $patchedName `
+ $sub = Set-AzureRmApiManagementSubscription -Context $context -SubscriptionId $newSubscriptionId -Name $patchedName `
-PrimaryKey $patchedPk -SecondaryKey $patchedSk -ExpiresOn $patchedExpirationDate -PassThru
Assert-AreEqual $newSubscriptionId $sub.SubscriptionId
@@ -677,14 +677,14 @@ Param($resourceGroupName, $serviceName)
finally
{
# remove created subscription
- $removed = Remove-AzureRMApiManagementSubscription -Context $context -SubscriptionId $newSubscriptionId -Force -PassThru
+ $removed = Remove-AzureRmApiManagementSubscription -Context $context -SubscriptionId $newSubscriptionId -Force -PassThru
Assert-True {$removed}
$sub = $null
try
{
# check it was removed
- $sub = Get-AzureRMApiManagementSubscripiton -Context $context -SubscriptionId $newSubscriptionId
+ $sub = Get-AzureRmApiManagementSubscripiton -Context $context -SubscriptionId $newSubscriptionId
}
catch
{
@@ -702,10 +702,10 @@ function User-CrudTest
{
Param($resourceGroupName, $serviceName)
- $context = New-AzureRMApiManagementContext -ResourceGroupName $resourceGroupName -ServiceName $serviceName
+ $context = New-AzureRmApiManagementContext -ResourceGroupName $resourceGroupName -ServiceName $serviceName
# get all users
- $users = Get-AzureRMApiManagementUser -Context $context
+ $users = Get-AzureRmApiManagementUser -Context $context
Assert-AreEqual 1 $users.Count
Assert-NotNull $users[0].UserId
@@ -716,7 +716,7 @@ Param($resourceGroupName, $serviceName)
Assert-NotNull $users[0].RegistrationDate
# get by id
- $user = Get-AzureRMApiManagementUser -Context $context -UserId $users[0].UserId
+ $user = Get-AzureRmApiManagementUser -Context $context -UserId $users[0].UserId
Assert-AreEqual $users[0].UserId $user.UserId
Assert-AreEqual $users[0].FirstName $user.FirstName
@@ -736,7 +736,7 @@ Param($resourceGroupName, $serviceName)
$userNote = getAssetName
$userSate = "Active"
- $user = New-AzureRMApiManagementUser -Context $context -UserId $userId -FirstName $userFirstName -LastName $userLastName `
+ $user = New-AzureRmApiManagementUser -Context $context -UserId $userId -FirstName $userFirstName -LastName $userLastName `
-Password $userPassword -State $userSate -Note $userNote -Email $userEmail
Assert-AreEqual $userId $user.UserId
@@ -754,7 +754,7 @@ Param($resourceGroupName, $serviceName)
$userNote = getAssetName
$userSate = "Active"
- $user = Set-AzureRMApiManagementUser -Context $context -UserId $userId -FirstName $userFirstName -LastName $userLastName `
+ $user = Set-AzureRmApiManagementUser -Context $context -UserId $userId -FirstName $userFirstName -LastName $userLastName `
-Password $userPassword -State $userSate -Note $userNote -PassThru -Email $userEmail
Assert-AreEqual $userId $user.UserId
@@ -765,7 +765,7 @@ Param($resourceGroupName, $serviceName)
Assert-AreEqual $userSate $user.State
#generate SSO URL for the user
- $ssoUrl = Get-AzureRMApiManagementUserSsoUrl -Context $context -UserId $userId
+ $ssoUrl = Get-AzureRmApiManagementUserSsoUrl -Context $context -UserId $userId
Assert-NotNull $ssoUrl
Assert-AreEqual $true [System.Uri]::IsWellFormedUriString($ssoUrl, 'Absolute')
@@ -773,14 +773,14 @@ Param($resourceGroupName, $serviceName)
finally
{
# remove created user
- $removed = Remove-AzureRMApiManagementUser -Context $context -UserId $userId -DeleteSubscriptions -Force -PassThru
+ $removed = Remove-AzureRmApiManagementUser -Context $context -UserId $userId -DeleteSubscriptions -Force -PassThru
Assert-True {$removed}
$user = $null
try
{
# check it was removed
- $user = Get-AzureRMApiManagementUser -Context $context -UserId $userId
+ $user = Get-AzureRmApiManagementUser -Context $context -UserId $userId
}
catch
{
@@ -798,10 +798,10 @@ function Group-CrudTest
{
Param($resourceGroupName, $serviceName)
- $context = New-AzureRMApiManagementContext -ResourceGroupName $resourceGroupName -ServiceName $serviceName
+ $context = New-AzureRmApiManagementContext -ResourceGroupName $resourceGroupName -ServiceName $serviceName
# get all groups
- $groups = Get-AzureRMApiManagementGroup -Context $context
+ $groups = Get-AzureRmApiManagementGroup -Context $context
Assert-AreEqual 3 $groups.Count
for($i = 0; $i -lt 3; $i++)
@@ -813,7 +813,7 @@ Param($resourceGroupName, $serviceName)
Assert-NotNull $groups[$i].Type
# get by id
- $group = Get-AzureRMApiManagementGroup -Context $context -GroupId $groups[$i].GroupId
+ $group = Get-AzureRmApiManagementGroup -Context $context -GroupId $groups[$i].GroupId
Assert-AreEqual $group.GroupId $groups[$i].GroupId
Assert-AreEqual $group.Name $groups[$i].Name
@@ -829,7 +829,7 @@ Param($resourceGroupName, $serviceName)
$newGroupName = getAssetName
$newGroupDescription = getAssetName
- $group = New-AzureRMApiManagementGroup -GroupId $groupId -Context $context -Name $newGroupName -Description $newGroupDescription
+ $group = New-AzureRmApiManagementGroup -GroupId $groupId -Context $context -Name $newGroupName -Description $newGroupDescription
Assert-AreEqual $groupId $group.GroupId
Assert-AreEqual $newGroupName $group.Name
@@ -841,7 +841,7 @@ Param($resourceGroupName, $serviceName)
$newGroupName = getAssetName
$newGroupDescription = getAssetName
- $group = Set-AzureRMApiManagementGroup -Context $context -GroupId $groupId -Name $newGroupName -Description $newGroupDescription -PassThru
+ $group = Set-AzureRmApiManagementGroup -Context $context -GroupId $groupId -Name $newGroupName -Description $newGroupDescription -PassThru
Assert-AreEqual $groupId $group.GroupId
Assert-AreEqual $newGroupName $group.Name
@@ -850,43 +850,43 @@ Param($resourceGroupName, $serviceName)
Assert-AreEqual 'Custom' $group.Type
# add Product to Group
- $product = Get-AzureRMApiManagementProduct -Context $context | Select -First 1
- Add-AzureRMApiManagementProductToGroup -Context $context -GroupId $groupId -ProductId $product.ProductId
+ $product = Get-AzureRmApiManagementProduct -Context $context | Select -First 1
+ Add-AzureRmApiManagementProductToGroup -Context $context -GroupId $groupId -ProductId $product.ProductId
#check group products
- $groups = Get-AzureRMApiManagementGroup -Context $context -ProductId $product.ProductId
+ $groups = Get-AzureRmApiManagementGroup -Context $context -ProductId $product.ProductId
Assert-AreEqual 4 $groups.Count
# remove Product to Group
- Remove-AzureRMApiManagementProductFromGroup -Context $context -GroupId $groupId -ProductId $product.ProductId
+ Remove-AzureRmApiManagementProductFromGroup -Context $context -GroupId $groupId -ProductId $product.ProductId
#check group products
- $groups = Get-AzureRMApiManagementGroup -Context $context -ProductId $product.ProductId
+ $groups = Get-AzureRmApiManagementGroup -Context $context -ProductId $product.ProductId
Assert-AreEqual 3 $groups.Count
# add User to Group
- $user = Get-AzureRMApiManagementUser -Context $context | Select -First 1
- Add-AzureRMApiManagementUserToGroup -Context $context -GroupId $groupId -UserId $user.UserId
+ $user = Get-AzureRmApiManagementUser -Context $context | Select -First 1
+ Add-AzureRmApiManagementUserToGroup -Context $context -GroupId $groupId -UserId $user.UserId
- $groups = Get-AzureRMApiManagementGroup -Context $context -UserId $user.UserId
+ $groups = Get-AzureRmApiManagementGroup -Context $context -UserId $user.UserId
Assert-AreEqual 3 $groups.Count
#remove user from group
- Remove-AzureRMApiManagementUserFromGroup -Context $context -GroupId $groupId -UserId $user.UserId
- $groups = Get-AzureRMApiManagementGroup -Context $context -UserId $user.UserId
+ Remove-AzureRmApiManagementUserFromGroup -Context $context -GroupId $groupId -UserId $user.UserId
+ $groups = Get-AzureRmApiManagementGroup -Context $context -UserId $user.UserId
Assert-AreEqual 2 $groups.Count
}
finally
{
# remove created group
- $removed = Remove-AzureRMApiManagementGroup -Context $context -GroupId $groupId -Force -PassThru
+ $removed = Remove-AzureRmApiManagementGroup -Context $context -GroupId $groupId -Force -PassThru
Assert-True {$removed}
$group = $null
try
{
# check it was removed
- $group = Get-AzureRMApiManagementGroup -Context $context -GroupId $groupId
+ $group = Get-AzureRmApiManagementGroup -Context $context -GroupId $groupId
}
catch
{
@@ -911,86 +911,86 @@ Param($resourceGroupName, $serviceName)
$apiValidPath = "./Resources/ApiValidPolicy.xml"
$operationValidPath = "./Resources/OperationValidPolicy.xml"
- $context = New-AzureRMApiManagementContext -ResourceGroupName $resourceGroupName -ServiceName $serviceName
+ $context = New-AzureRmApiManagementContext -ResourceGroupName $resourceGroupName -ServiceName $serviceName
# test tenant policy
try
{
- $set = Set-AzureRMApiManagementPolicy -Context $context -PolicyFilePath $tenantValidPath -PassThru
+ $set = Set-AzureRmApiManagementPolicy -Context $context -PolicyFilePath $tenantValidPath -PassThru
Assert-AreEqual $true $set
- $policy = Get-AzureRMApiManagementPolicy -Context $context
+ $policy = Get-AzureRmApiManagementPolicy -Context $context
Assert-NotNull $policy
Assert-True {$policy -like '**'}
}
finally
{
- $removed = Remove-AzureRMApiManagementPolicy -Context $context -PassThru -Force
+ $removed = Remove-AzureRmApiManagementPolicy -Context $context -PassThru -Force
Assert-AreEqual $true $removed
- $policy = Get-AzureRMApiManagementPolicy -Context $context
+ $policy = Get-AzureRmApiManagementPolicy -Context $context
Assert-Null $policy
}
# test product policy
- $product = Get-AzureRMApiManagementProduct -Context $context -Title 'Unlimited' | Select -First 1
+ $product = Get-AzureRmApiManagementProduct -Context $context -Title 'Unlimited' | Select -First 1
try
{
- $set = Set-AzureRMApiManagementPolicy -Context $context -PolicyFilePath $productValidPath -ProductId $product.ProductId -PassThru
+ $set = Set-AzureRmApiManagementPolicy -Context $context -PolicyFilePath $productValidPath -ProductId $product.ProductId -PassThru
Assert-AreEqual $true $set
- $policy = Get-AzureRMApiManagementPolicy -Context $context -ProductId $product.ProductId
+ $policy = Get-AzureRmApiManagementPolicy -Context $context -ProductId $product.ProductId
Assert-NotNull $policy
Assert-True {$policy -like '**'}
}
finally
{
- $removed = Remove-AzureRMApiManagementPolicy -Context $context -ProductId $product.ProductId -PassThru -Force
+ $removed = Remove-AzureRmApiManagementPolicy -Context $context -ProductId $product.ProductId -PassThru -Force
Assert-AreEqual $true $removed
- $policy = Get-AzureRMApiManagementPolicy -Context $context -ProductId $product.ProductId
+ $policy = Get-AzureRmApiManagementPolicy -Context $context -ProductId $product.ProductId
Assert-Null $policy
}
# test api policy
- $api = Get-AzureRMApiManagementApi -Context $context | Select -First 1
+ $api = Get-AzureRmApiManagementApi -Context $context | Select -First 1
try
{
- $set = Set-AzureRMApiManagementPolicy -Context $context -PolicyFilePath $apiValidPath -ApiId $api.ApiId -PassThru
+ $set = Set-AzureRmApiManagementPolicy -Context $context -PolicyFilePath $apiValidPath -ApiId $api.ApiId -PassThru
Assert-AreEqual $true $set
- $policy = Get-AzureRMApiManagementPolicy -Context $context -ApiId $api.ApiId
+ $policy = Get-AzureRmApiManagementPolicy -Context $context -ApiId $api.ApiId
Assert-NotNull $policy
Assert-True {$policy -like '**'}
}
finally
{
- $removed = Remove-AzureRMApiManagementPolicy -Context $context -ApiId $api.ApiId -PassThru -Force
+ $removed = Remove-AzureRmApiManagementPolicy -Context $context -ApiId $api.ApiId -PassThru -Force
Assert-AreEqual $true $removed
- $policy = Get-AzureRMApiManagementPolicy -Context $context -ApiId $api.ApiId
+ $policy = Get-AzureRmApiManagementPolicy -Context $context -ApiId $api.ApiId
Assert-Null $policy
}
# test operation policy
- $api = Get-AzureRMApiManagementApi -Context $context | Select -First 1
- $operation = Get-AzureRMApiManagementOperation -Context $context -ApiId $api.ApiId | Select -First 1
+ $api = Get-AzureRmApiManagementApi -Context $context | Select -First 1
+ $operation = Get-AzureRmApiManagementOperation -Context $context -ApiId $api.ApiId | Select -First 1
try
{
- $set = Set-AzureRMApiManagementPolicy -Context $context -PolicyFilePath $operationValidPath -ApiId $api.ApiId `
+ $set = Set-AzureRmApiManagementPolicy -Context $context -PolicyFilePath $operationValidPath -ApiId $api.ApiId `
-OperationId $operation.OperationId -PassThru
Assert-AreEqual $true $set
- $policy = Get-AzureRMApiManagementPolicy -Context $context -ApiId $api.ApiId -OperationId $operation.OperationId
+ $policy = Get-AzureRmApiManagementPolicy -Context $context -ApiId $api.ApiId -OperationId $operation.OperationId
Assert-NotNull $policy
Assert-True {$policy -like '**'}
}
finally
{
- $removed = Remove-AzureRMApiManagementPolicy -Context $context -ApiId $api.ApiId -OperationId $operation.OperationId -PassThru -Force
+ $removed = Remove-AzureRmApiManagementPolicy -Context $context -ApiId $api.ApiId -OperationId $operation.OperationId -PassThru -Force
Assert-AreEqual $true $removed
- $policy = Get-AzureRMApiManagementPolicy -Context $context -ApiId $api.ApiId -OperationId $operation.OperationId
+ $policy = Get-AzureRmApiManagementPolicy -Context $context -ApiId $api.ApiId -OperationId $operation.OperationId
Assert-Null $policy
}
@@ -1000,42 +1000,42 @@ Param($resourceGroupName, $serviceName)
$tenantValid = 'bbybyxxbbcczc'
try
{
- $set = Set-AzureRMApiManagementPolicy -Context $context -Policy $tenantValid -PassThru
+ $set = Set-AzureRmApiManagementPolicy -Context $context -Policy $tenantValid -PassThru
Assert-AreEqual $true $set
- Get-AzureRMApiManagementPolicy -Context $context -SaveAs 'TenantPolicy.xml' -Force
+ Get-AzureRmApiManagementPolicy -Context $context -SaveAs 'TenantPolicy.xml' -Force
$exists = [System.IO.File]::Exists('TenantPolicy.xml')
$policy = gc 'TenantPolicy.xml'
Assert-True {$policy -like '**'}
}
finally
{
- $removed = Remove-AzureRMApiManagementPolicy -Context $context -PassThru -Force
+ $removed = Remove-AzureRmApiManagementPolicy -Context $context -PassThru -Force
Assert-AreEqual $true $removed
- $policy = Get-AzureRMApiManagementPolicy -Context $context
+ $policy = Get-AzureRmApiManagementPolicy -Context $context
Assert-Null $policy
}
# test product policy
$productValid = ''
- $product = Get-AzureRMApiManagementProduct -Context $context -Title 'Unlimited' | Select -First 1
+ $product = Get-AzureRmApiManagementProduct -Context $context -Title 'Unlimited' | Select -First 1
try
{
- $set = Set-AzureRMApiManagementPolicy -Context $context -Policy $productValid -ProductId $product.ProductId -PassThru
+ $set = Set-AzureRmApiManagementPolicy -Context $context -Policy $productValid -ProductId $product.ProductId -PassThru
Assert-AreEqual $true $set
- Get-AzureRMApiManagementPolicy -Context $context -ProductId $product.ProductId -SaveAs 'ProductPolicy.xml' -Force
+ Get-AzureRmApiManagementPolicy -Context $context -ProductId $product.ProductId -SaveAs 'ProductPolicy.xml' -Force
$exists = [System.IO.File]::Exists('ProductPolicy.xml')
$policy = gc 'ProductPolicy.xml'
Assert-True {$policy -like '**'}
}
finally
{
- $removed = Remove-AzureRMApiManagementPolicy -Context $context -ProductId $product.ProductId -PassThru -Force
+ $removed = Remove-AzureRmApiManagementPolicy -Context $context -ProductId $product.ProductId -PassThru -Force
Assert-AreEqual $true $removed
- $policy = Get-AzureRMApiManagementPolicy -Context $context -ProductId $product.ProductId
+ $policy = Get-AzureRmApiManagementPolicy -Context $context -ProductId $product.ProductId
Assert-Null $policy
try
@@ -1047,23 +1047,23 @@ Param($resourceGroupName, $serviceName)
# test api policy
$apiValid = 'versionAcceptAccept-Charset'
- $api = Get-AzureRMApiManagementApi -Context $context | Select -First 1
+ $api = Get-AzureRmApiManagementApi -Context $context | Select -First 1
try
{
- $set = Set-AzureRMApiManagementPolicy -Context $context -Policy $apiValid -ApiId $api.ApiId -PassThru
+ $set = Set-AzureRmApiManagementPolicy -Context $context -Policy $apiValid -ApiId $api.ApiId -PassThru
Assert-AreEqual $true $set
- $policy = Get-AzureRMApiManagementPolicy -Context $context -ApiId $api.ApiId -SaveAs 'ApiPolicy.xml'
+ $policy = Get-AzureRmApiManagementPolicy -Context $context -ApiId $api.ApiId -SaveAs 'ApiPolicy.xml'
$exists = [System.IO.File]::Exists('ApiPolicy.xml')
$policy = gc 'ApiPolicy.xml'
Assert-True {$policy -like '**'}
}
finally
{
- $removed = Remove-AzureRMApiManagementPolicy -Context $context -ApiId $api.ApiId -PassThru -Force
+ $removed = Remove-AzureRmApiManagementPolicy -Context $context -ApiId $api.ApiId -PassThru -Force
Assert-AreEqual $true $removed
- $policy = Get-AzureRMApiManagementPolicy -Context $context -ApiId $api.ApiId
+ $policy = Get-AzureRmApiManagementPolicy -Context $context -ApiId $api.ApiId
Assert-Null $policy
try
@@ -1075,15 +1075,15 @@ Param($resourceGroupName, $serviceName)
# test operation policy
$operationValid = ''
- $api = Get-AzureRMApiManagementApi -Context $context | Select -First 1
- $operation = Get-AzureRMApiManagementOperation -Context $context -ApiId $api.ApiId | Select -First 1
+ $api = Get-AzureRmApiManagementApi -Context $context | Select -First 1
+ $operation = Get-AzureRmApiManagementOperation -Context $context -ApiId $api.ApiId | Select -First 1
try
{
- $set = Set-AzureRMApiManagementPolicy -Context $context -Policy $operationValid -ApiId $api.ApiId `
+ $set = Set-AzureRmApiManagementPolicy -Context $context -Policy $operationValid -ApiId $api.ApiId `
-OperationId $operation.OperationId -PassThru
Assert-AreEqual $true $set
- $policy = Get-AzureRMApiManagementPolicy -Context $context -ApiId $api.ApiId -OperationId $operation.OperationId `
+ $policy = Get-AzureRmApiManagementPolicy -Context $context -ApiId $api.ApiId -OperationId $operation.OperationId `
-SaveAs 'OperationPolicy.xml'
$exists = [System.IO.File]::Exists('OperationPolicy.xml')
$policy = gc 'OperationPolicy.xml'
@@ -1091,10 +1091,10 @@ Param($resourceGroupName, $serviceName)
}
finally
{
- $removed = Remove-AzureRMApiManagementPolicy -Context $context -ApiId $api.ApiId -OperationId $operation.OperationId -PassThru -Force
+ $removed = Remove-AzureRmApiManagementPolicy -Context $context -ApiId $api.ApiId -OperationId $operation.OperationId -PassThru -Force
Assert-AreEqual $true $removed
- $policy = Get-AzureRMApiManagementPolicy -Context $context -ApiId $api.ApiId -OperationId $operation.OperationId
+ $policy = Get-AzureRmApiManagementPolicy -Context $context -ApiId $api.ApiId -OperationId $operation.OperationId
Assert-Null $policy
try
@@ -1113,10 +1113,10 @@ function Certificate-CrudTest
{
Param($resourceGroupName, $serviceName)
- $context = New-AzureRMApiManagementContext -ResourceGroupName $resourceGroupName -ServiceName $serviceName
+ $context = New-AzureRmApiManagementContext -ResourceGroupName $resourceGroupName -ServiceName $serviceName
# get all certificates
- $certificates = Get-AzureRMApiManagementCertificate -Context $context
+ $certificates = Get-AzureRmApiManagementCertificate -Context $context
Assert-AreEqual 0 $certificates.Count
@@ -1129,28 +1129,28 @@ Param($resourceGroupName, $serviceName)
try
{
# upload certificate
- $cert = New-AzureRMApiManagementCertificate -Context $context -CertificateId $certId -PfxFilePath $certPath -PfxPassword $certPassword
+ $cert = New-AzureRmApiManagementCertificate -Context $context -CertificateId $certId -PfxFilePath $certPath -PfxPassword $certPassword
Assert-AreEqual $certId $cert.CertificateId
Assert-AreEqual $certThumbprint $cert.Thumbprint
Assert-AreEqual $certSubject $cert.Subject
# get certificate
- $cert = Get-AzureRMApiManagementCertificate -Context $context -CertificateId $certId
+ $cert = Get-AzureRmApiManagementCertificate -Context $context -CertificateId $certId
Assert-AreEqual $certId $cert.CertificateId
Assert-AreEqual $certThumbprint $cert.Thumbprint
Assert-AreEqual $certSubject $cert.Subject
# update certificate
- $cert = Set-AzureRMApiManagementCertificate -Context $context -CertificateId $certId -PfxFilePath $certPath -PfxPassword $certPassword -PassThru
+ $cert = Set-AzureRmApiManagementCertificate -Context $context -CertificateId $certId -PfxFilePath $certPath -PfxPassword $certPassword -PassThru
Assert-AreEqual $certId $cert.CertificateId
Assert-AreEqual $certThumbprint $cert.Thumbprint
Assert-AreEqual $certSubject $cert.Subject
# list certificates
- $certificates = Get-AzureRMApiManagementCertificate -Context $context
+ $certificates = Get-AzureRmApiManagementCertificate -Context $context
Assert-AreEqual 1 $certificates.Count
Assert-AreEqual $certId $certificates[0].CertificateId
@@ -1160,14 +1160,14 @@ Param($resourceGroupName, $serviceName)
finally
{
# remove uploaded certificate
- $removed = Remove-AzureRMApiManagementCertificate -Context $context -CertificateId $certId -Force -PassThru
+ $removed = Remove-AzureRmApiManagementCertificate -Context $context -CertificateId $certId -Force -PassThru
Assert-True {$removed}
$cert = $null
try
{
# check it was removed
- $cert = Get-AzureRMApiManagementCertificate -Context $context -CertificateId $certId
+ $cert = Get-AzureRmApiManagementCertificate -Context $context -CertificateId $certId
}
catch
{
@@ -1185,10 +1185,10 @@ function AuthorizationServer-CrudTest
{
Param($resourceGroupName, $serviceName)
- $context = New-AzureRMApiManagementContext -ResourceGroupName $resourceGroupName -ServiceName $serviceName
+ $context = New-AzureRmApiManagementContext -ResourceGroupName $resourceGroupName -ServiceName $serviceName
# get all authoriaztion servers
- $servers = Get-AzureRMApiManagementAuthorizationServer -Context $context
+ $servers = Get-AzureRmApiManagementAuthorizationServer -Context $context
Assert-AreEqual 0 $servers.Count
@@ -1213,7 +1213,7 @@ Param($resourceGroupName, $serviceName)
$supportState = $true
$tokenBodyParameters = @{'tokenname'='tokenvalue'}
- $server = New-AzureRMApiManagementAuthorizationServer -Context $context -ServerId $serverId -Name $name -Description $description `
+ $server = New-AzureRmApiManagementAuthorizationServer -Context $context -ServerId $serverId -Name $name -Description $description `
-ClientRegistrationPageUrl $clientRegistrationEndpoint -AuthorizationEndpointUrl $authorizationEndpoint `
-TokenEndpointUrl $tokenEndpoint -ClientId $clientId -ClientSecret $clientSecret -AuthorizationRequestMethods $authorizationMethods `
-GrantTypes $grantTypes -ClientAuthenticationMethods $clientAuthenticationMethods -TokenBodyParameters $tokenBodyParameters `
@@ -1246,7 +1246,7 @@ Param($resourceGroupName, $serviceName)
Assert-AreEqual $supportState $server.SupportState
Assert-AreEqual $tokenBodyParameters.Count $server.TokenBodyParameters.Count
- $server = Get-AzureRMApiManagementAuthorizationServer -Context $context -ServerId $serverId
+ $server = Get-AzureRmApiManagementAuthorizationServer -Context $context -ServerId $serverId
Assert-AreEqual $serverId $server.ServerId
Assert-AreEqual $name $server.Name
@@ -1290,7 +1290,7 @@ Param($resourceGroupName, $serviceName)
$supportState = $false
$tokenBodyParameters = @{'tokenname1'='tokenvalue1'}
- $server = Set-AzureRMApiManagementAuthorizationServer -Context $context -ServerId $serverId -Name $name -Description $description `
+ $server = Set-AzureRmApiManagementAuthorizationServer -Context $context -ServerId $serverId -Name $name -Description $description `
-ClientRegistrationPageUrl $clientRegistrationEndpoint -AuthorizationEndpointUrl $authorizationEndpoint `
-TokenEndpointUrl $tokenEndpoint -ClientId $clientId -ClientSecret $clientSecret -AuthorizationRequestMethods $authorizationMethods `
-GrantTypes $grantTypes -ClientAuthenticationMethods $clientAuthenticationMethods -TokenBodyParameters $tokenBodyParameters `
@@ -1320,7 +1320,7 @@ Param($resourceGroupName, $serviceName)
Assert-AreEqual $supportState $server.SupportState
Assert-AreEqual $tokenBodyParameters.Count $server.TokenBodyParameters.Count
- $server = Get-AzureRMApiManagementAuthorizationServer -Context $context -ServerId $serverId
+ $server = Get-AzureRmApiManagementAuthorizationServer -Context $context -ServerId $serverId
Assert-AreEqual $serverId $server.ServerId
Assert-AreEqual $name $server.Name
@@ -1351,14 +1351,14 @@ Param($resourceGroupName, $serviceName)
finally
{
# remove created server
- $removed = Remove-AzureRMApiManagementAuthorizationServer -Context $context -ServerId $serverId -Force -PassThru
+ $removed = Remove-AzureRmApiManagementAuthorizationServer -Context $context -ServerId $serverId -Force -PassThru
Assert-True {$removed}
$server = $null
try
{
# check it was removed
- $server = Get-AzureRMApiManagementAuthorizationServer -Context $context -ServerId $serverId
+ $server = Get-AzureRmApiManagementAuthorizationServer -Context $context -ServerId $serverId
}
catch
{
diff --git a/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/ScenarioTests/Common.ps1 b/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/ScenarioTests/Common.ps1
index 0275adb24b47..9946896079db 100644
--- a/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/ScenarioTests/Common.ps1
+++ b/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/ScenarioTests/Common.ps1
@@ -50,6 +50,6 @@ Gets all locations for a provider
#>
function Get-ProviderLocations($provider)
{
- $location = Get-AzureRMLocation | where {$_.Name -eq $provider}
+ $location = Get-AzureRmLocation | where {$_.Name -eq $provider}
$location.Locations
}
\ No newline at end of file
diff --git a/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/packages.config b/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/packages.config
index 96be623f83fb..5e525d1021d7 100644
--- a/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/packages.config
+++ b/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/packages.config
@@ -2,10 +2,12 @@
-
+
+
+
diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/Commands.Automation.Test.csproj b/src/ResourceManager/Automation/Commands.Automation.Test/Commands.Automation.Test.csproj
index 6e42d00691b0..282051f37cd3 100644
--- a/src/ResourceManager/Automation/Commands.Automation.Test/Commands.Automation.Test.csproj
+++ b/src/ResourceManager/Automation/Commands.Automation.Test/Commands.Automation.Test.csproj
@@ -57,7 +57,7 @@
..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.dll
- ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.3.0-preview\lib\net45\Microsoft.Azure.Common.Authentication.dll
+ ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.3.1-preview\lib\net45\Microsoft.Azure.Common.Authentication.dllTrue
@@ -124,6 +124,14 @@
..\..\..\packages\Microsoft.Net.Http.2.2.28\lib\net45\System.Net.Http.Primitives.dll
+
+ ..\..\..\packages\xunit.1.9.2\lib\net20\xunit.dll
+ True
+
+
+ ..\..\..\packages\xunit.extensions.1.9.2\lib\net20\xunit.extensions.dll
+ True
+
@@ -166,6 +174,10 @@
+
+ {5ee72c53-1720-4309-b54b-5fb79703195f}
+ Commands.Common
+ {3819d8a7-c62c-4c47-8ddd-0332d9ce1252}Commands.ResourceManager.Common
diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/UnitTests/NewAzureAutomationConnectionTest.cs b/src/ResourceManager/Automation/Commands.Automation.Test/UnitTests/NewAzureAutomationConnectionTest.cs
index 733a9bded07a..4ba8308eb8e3 100644
--- a/src/ResourceManager/Automation/Commands.Automation.Test/UnitTests/NewAzureAutomationConnectionTest.cs
+++ b/src/ResourceManager/Automation/Commands.Automation.Test/UnitTests/NewAzureAutomationConnectionTest.cs
@@ -51,7 +51,6 @@ public void NewAzureAutomationConnectionByNameSuccessfull()
string accountName = "automation";
string connectionName = "connection";
string connectionTypeName = "connectiontype";
- string password = "password";
string description = "desc";
this.mockAutomationClient.Setup(
diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/packages.config b/src/ResourceManager/Automation/Commands.Automation.Test/packages.config
index 2dce1ac7e52f..8b5713e969f3 100644
--- a/src/ResourceManager/Automation/Commands.Automation.Test/packages.config
+++ b/src/ResourceManager/Automation/Commands.Automation.Test/packages.config
@@ -2,7 +2,7 @@
-
+
@@ -17,4 +17,7 @@
+
+
+
\ No newline at end of file
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/ExportAzureAutomationDscConfiguration.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/ExportAzureAutomationDscConfiguration.cs
index cf6be24d575a..39172d0e2181 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/ExportAzureAutomationDscConfiguration.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/ExportAzureAutomationDscConfiguration.cs
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets configuration script for given configuration name and account name.
///
- [Cmdlet(VerbsData.Export, "AzureRMAutomationDscConfiguration", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
+ [Cmdlet(VerbsData.Export, "AzureRmAutomationDscConfiguration", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
[OutputType(typeof(DirectoryInfo))]
public class ExportAzureAutomationDscConfiguration : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/ExportAzureAutomationDscNodeReportContent.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/ExportAzureAutomationDscNodeReportContent.cs
index e45a08a78e25..182e62fc6a2d 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/ExportAzureAutomationDscNodeReportContent.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/ExportAzureAutomationDscNodeReportContent.cs
@@ -27,7 +27,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets node report for a given node and report id
///
- [Cmdlet(VerbsData.Export, "AzureRMAutomationDscNodeReportContent", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
+ [Cmdlet(VerbsData.Export, "AzureRmAutomationDscNodeReportContent", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
[OutputType(typeof(DirectoryInfo))]
public class ExportAzureAutomationDscNodeReportContent : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/ExportAzureAutomationRunbook.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/ExportAzureAutomationRunbook.cs
index 566757c8cb6a..c53dd8f27015 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/ExportAzureAutomationRunbook.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/ExportAzureAutomationRunbook.cs
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets azure automation runbook definitions for a given account.
///
- [Cmdlet(VerbsData.Export, "AzureRMAutomationRunbook")]
+ [Cmdlet(VerbsData.Export, "AzureRmAutomationRunbook")]
[OutputType(typeof(DirectoryInfo))]
public class ExportAzureAutomationRunbook : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationAccount.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationAccount.cs
index 7554327814b4..32c65b5efb02 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationAccount.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationAccount.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets azure automation accounts, filterd by automation account name and location.
///
- [Cmdlet(VerbsCommon.Get, "AzureRMAutomationAccount", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
+ [Cmdlet(VerbsCommon.Get, "AzureRmAutomationAccount", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
[OutputType(typeof(AutomationAccount))]
public class GetAzureAutomationAccount : ResourceManager.Common.AzureRMCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationAgentRegistrationInformation.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationAgentRegistrationInformation.cs
index fb14e65d0d80..56795202d9d1 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationAgentRegistrationInformation.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationAgentRegistrationInformation.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets azure automation agent registration information for a given account.
///
- [Cmdlet(VerbsCommon.Get, "AzureRMAutomationRegistrationInfo")]
+ [Cmdlet(VerbsCommon.Get, "AzureRmAutomationRegistrationInfo")]
[OutputType(typeof(AgentRegistration))]
public class GetAzureAutomationRegistrationInfo : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationCertificate.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationCertificate.cs
index e4bea3955623..2297da1706f9 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationCertificate.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationCertificate.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets a certificate for automation.
///
- [Cmdlet(VerbsCommon.Get, "AzureRMAutomationCertificate", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
+ [Cmdlet(VerbsCommon.Get, "AzureRmAutomationCertificate", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
[OutputType(typeof(CertificateInfo))]
public class GetAzureAutomationCertificate : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationConfiguration.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationConfiguration.cs
index 869ba2dcd0dd..e56e855b12ba 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationConfiguration.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationConfiguration.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets azure automation configurations for a given account.
///
- [Cmdlet(VerbsCommon.Get, "AzureRMAutomationDscConfiguration", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
+ [Cmdlet(VerbsCommon.Get, "AzureRmAutomationDscConfiguration", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
[OutputType(typeof(DscConfiguration))]
public class GetAzureAutomationDscConfiguration : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationConnection.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationConnection.cs
index 0d30659b39b7..1a526e9355cf 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationConnection.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationConnection.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets a connection for automation.
///
- [Cmdlet(VerbsCommon.Get, "AzureRMAutomationConnection", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
+ [Cmdlet(VerbsCommon.Get, "AzureRmAutomationConnection", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
[OutputType(typeof(Connection))]
public class GetAzureAutomationConnection : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationCredential.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationCredential.cs
index e70a130341cc..c56b3608f440 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationCredential.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationCredential.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets a Credential for automation.
///
- [Cmdlet(VerbsCommon.Get, "AzureRMAutomationCredential", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
+ [Cmdlet(VerbsCommon.Get, "AzureRmAutomationCredential", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
[OutputType(typeof(CredentialInfo))]
public class GetAzureAutomationCredential : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationDscCompilationJob.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationDscCompilationJob.cs
index eced7d700a52..b9c59e3d6ac1 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationDscCompilationJob.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationDscCompilationJob.cs
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets Azure automation compilation job
///
- [Cmdlet(VerbsCommon.Get, "AzureRMAutomationDscCompilationJob", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
+ [Cmdlet(VerbsCommon.Get, "AzureRmAutomationDscCompilationJob", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
[OutputType(typeof(CompilationJob))]
public class GetAzureAutomationDscCompilationJob : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationDscCompilationJobOutput.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationDscCompilationJobOutput.cs
index 91b37e39c758..203b9dcc2984 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationDscCompilationJobOutput.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationDscCompilationJobOutput.cs
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets stream for a compilation job
///
- [Cmdlet(VerbsCommon.Get, "AzureRMAutomationDscCompilationJobOutput")]
+ [Cmdlet(VerbsCommon.Get, "AzureRmAutomationDscCompilationJobOutput")]
[OutputType(typeof(JobStream))]
public class GetAzureAutomationDscCompilationJobOutput : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationDscNode.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationDscNode.cs
index 8acb7caa5716..12f29d9bee4e 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationDscNode.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationDscNode.cs
@@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets azure automation dsc node.
///
- [Cmdlet(VerbsCommon.Get, "AzureRMAutomationDscNode", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
+ [Cmdlet(VerbsCommon.Get, "AzureRmAutomationDscNode", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
[OutputType(typeof(DscNode))]
public class GetAzureAutomationDscNode : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationDscNodeConfiguration.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationDscNodeConfiguration.cs
index 8a377703891f..200158e9e418 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationDscNodeConfiguration.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationDscNodeConfiguration.cs
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets Azure automation node configurations
///
- [Cmdlet(VerbsCommon.Get, "AzureRMAutomationDscNodeConfiguration", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
+ [Cmdlet(VerbsCommon.Get, "AzureRmAutomationDscNodeConfiguration", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
[OutputType(typeof(CompilationJob))]
public class GetAzureAutomationDscNodeConfiguration : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationDscNodeReport.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationDscNodeReport.cs
index 51316d2ce7dd..cdd3ec4b524c 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationDscNodeReport.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationDscNodeReport.cs
@@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets azure automation dsc node report.
///
- [Cmdlet(VerbsCommon.Get, "AzureRMAutomationDscNodeReport", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
+ [Cmdlet(VerbsCommon.Get, "AzureRmAutomationDscNodeReport", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
[OutputType(typeof(DscNode))]
public class GetAzureAutomationDscNodeReport : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationDscOnboardingMetaconfig.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationDscOnboardingMetaconfig.cs
index 960714e1d4e2..8f010224bf1c 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationDscOnboardingMetaconfig.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationDscOnboardingMetaconfig.cs
@@ -28,7 +28,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets azure automation dsc onboarding meta configuration information for a given account.
///
- [Cmdlet(VerbsCommon.Get, "AzureRMAutomationDscOnboardingMetaconfig")]
+ [Cmdlet(VerbsCommon.Get, "AzureRmAutomationDscOnboardingMetaconfig")]
[OutputType(typeof(DscOnboardingMetaconfig))]
public class GetAzureAutomationDscOnboardingMetaconfig : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationJob.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationJob.cs
index 9bd6f3789004..f505c158c0d1 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationJob.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationJob.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets a Job object for automation.
///
- [Cmdlet(VerbsCommon.Get, "AzureRMAutomationJob", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
+ [Cmdlet(VerbsCommon.Get, "AzureRmAutomationJob", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
[OutputType(typeof(Microsoft.Azure.Commands.Automation.Model.Job))]
public class GetAzureAutomationJob : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationJobOutput.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationJobOutput.cs
index 9890640dc733..83816dd37c75 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationJobOutput.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationJobOutput.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets azure automation variables for a given account.
///
- [Cmdlet(VerbsCommon.Get, "AzureRMAutomationJobOutput")]
+ [Cmdlet(VerbsCommon.Get, "AzureRmAutomationJobOutput")]
[OutputType(typeof(JobStream))]
public class GetAzureAutomationJobOutput : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationModule.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationModule.cs
index e696318cb4f7..82d7ce4d4892 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationModule.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationModule.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets a Module for automation.
///
- [Cmdlet(VerbsCommon.Get, "AzureRMAutomationModule", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
+ [Cmdlet(VerbsCommon.Get, "AzureRmAutomationModule", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
[OutputType(typeof(Module))]
public class GetAzureAutomationModule : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationRunbook.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationRunbook.cs
index 3df426bd5ca9..e5f01e2fa91a 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationRunbook.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationRunbook.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets azure automation runbooks for a given account.
///
- [Cmdlet(VerbsCommon.Get, "AzureRMAutomationRunbook", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
+ [Cmdlet(VerbsCommon.Get, "AzureRmAutomationRunbook", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
[OutputType(typeof(Runbook))]
public class GetAzureAutomationRunbook : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationSchedule.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationSchedule.cs
index 40f642f0d194..544472d83141 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationSchedule.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationSchedule.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets azure automation schedules for a given account.
///
- [Cmdlet(VerbsCommon.Get, "AzureRMAutomationSchedule", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
+ [Cmdlet(VerbsCommon.Get, "AzureRmAutomationSchedule", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
[OutputType(typeof(Schedule))]
public class GetAzureAutomationSchedule : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationScheduledRunbook.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationScheduledRunbook.cs
index 5fbbe32f49ce..54224369ea0d 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationScheduledRunbook.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationScheduledRunbook.cs
@@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets azure automation job schedules for a given account.
///
- [Cmdlet(VerbsCommon.Get, "AzureRMAutomationScheduledRunbook", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
+ [Cmdlet(VerbsCommon.Get, "AzureRmAutomationScheduledRunbook", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
[OutputType(typeof(JobSchedule))]
public class GetAzureAutomationScheduledRunbook : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationVariable.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationVariable.cs
index 662c51d57566..eb8b36bbe521 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationVariable.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationVariable.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets azure automation variables for a given account.
///
- [Cmdlet(VerbsCommon.Get, "AzureRMAutomationVariable", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
+ [Cmdlet(VerbsCommon.Get, "AzureRmAutomationVariable", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
[OutputType(typeof(Variable))]
public class GetAzureAutomationVariable : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationWebhook.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationWebhook.cs
index 1c9708cde4cf..6baa9959595b 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationWebhook.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationWebhook.cs
@@ -23,7 +23,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Get Webhook for automation.
///
- [Cmdlet(VerbsCommon.Get, "AzureRMAutomationWebhook", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
+ [Cmdlet(VerbsCommon.Get, "AzureRmAutomationWebhook", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
[OutputType(typeof(Webhook))]
public class GetAzureAutomationWebhook : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/ImportAzureAutomationDscConfiguration.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/ImportAzureAutomationDscConfiguration.cs
index 2126e82f4cb4..010740185730 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/ImportAzureAutomationDscConfiguration.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/ImportAzureAutomationDscConfiguration.cs
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Imports dsc configuration script
///
- [Cmdlet(VerbsData.Import, "AzureRMAutomationDscConfiguration")]
+ [Cmdlet(VerbsData.Import, "AzureRmAutomationDscConfiguration")]
[OutputType(typeof(DscConfiguration))]
public class ImportAzureAutomationDscConfiguration : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/ImportAzureAutomationRunbook.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/ImportAzureAutomationRunbook.cs
index bea9f900efc1..478a0b7be340 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/ImportAzureAutomationRunbook.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/ImportAzureAutomationRunbook.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Sets an azure automation runbook definition.
///
- [Cmdlet(VerbsData.Import, "AzureRMAutomationRunbook")]
+ [Cmdlet(VerbsData.Import, "AzureRmAutomationRunbook")]
[OutputType(typeof(Runbook))]
public class ImportAzureAutomationRunbook : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationAccount.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationAccount.cs
index d31033793337..21dd6249a468 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationAccount.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationAccount.cs
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Creates azure automation accounts based on automation account name and location.
///
- [Cmdlet(VerbsCommon.New, "AzureRMAutomationAccount")]
+ [Cmdlet(VerbsCommon.New, "AzureRmAutomationAccount")]
[OutputType(typeof(AutomationAccount))]
public class NewAzureAutomationAccount : ResourceManager.Common.AzureRMCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationCertificate.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationCertificate.cs
index d57397adb739..e92b77376388 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationCertificate.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationCertificate.cs
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Create a new Certificate for automation.
///
- [Cmdlet(VerbsCommon.New, "AzureRMAutomationCertificate", DefaultParameterSetName = AutomationCmdletParameterSets.ByCertificateName)]
+ [Cmdlet(VerbsCommon.New, "AzureRmAutomationCertificate", DefaultParameterSetName = AutomationCmdletParameterSets.ByCertificateName)]
[OutputType(typeof(CertificateInfo))]
public class NewAzureAutomationCertificate : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationConnection.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationConnection.cs
index 22f53818a8a4..38cabd1d4e15 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationConnection.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationConnection.cs
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Create a new Connection for automation.
///
- [Cmdlet(VerbsCommon.New, "AzureRMAutomationConnection", DefaultParameterSetName = AutomationCmdletParameterSets.ByConnectionName)]
+ [Cmdlet(VerbsCommon.New, "AzureRmAutomationConnection", DefaultParameterSetName = AutomationCmdletParameterSets.ByConnectionName)]
[OutputType(typeof(Connection))]
public class NewAzureAutomationConnection : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationCredential.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationCredential.cs
index a66bdace1893..5a21e0edd565 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationCredential.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationCredential.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Create a new Credential for automation.
///
- [Cmdlet(VerbsCommon.New, "AzureRMAutomationCredential", DefaultParameterSetName = AutomationCmdletParameterSets.ByName)]
+ [Cmdlet(VerbsCommon.New, "AzureRmAutomationCredential", DefaultParameterSetName = AutomationCmdletParameterSets.ByName)]
[OutputType(typeof(CredentialInfo))]
public class NewAzureAutomationCredential : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationKey.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationKey.cs
index 40ba5eec2952..11846628c4af 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationKey.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationKey.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Regenerates the agent registration key based on the key name.
///
- [Cmdlet(VerbsCommon.New, "AzureRMAutomationKey")]
+ [Cmdlet(VerbsCommon.New, "AzureRmAutomationKey")]
[OutputType(typeof(AgentRegistration))]
public class NewAzureAutomationKey : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationModule.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationModule.cs
index a544ccedf429..c71119ebc368 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationModule.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationModule.cs
@@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Create a new Module for automation.
///
- [Cmdlet(VerbsCommon.New, "AzureRMAutomationModule")]
+ [Cmdlet(VerbsCommon.New, "AzureRmAutomationModule")]
[OutputType(typeof(Module))]
public class NewAzureAutomationModule : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationRunbook.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationRunbook.cs
index b25f9f99cff9..fa905b61cb1b 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationRunbook.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationRunbook.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets azure automation schedules for a given account.
///
- [Cmdlet(VerbsCommon.New, "AzureRMAutomationRunbook", DefaultParameterSetName = AutomationCmdletParameterSets.ByRunbookName)]
+ [Cmdlet(VerbsCommon.New, "AzureRmAutomationRunbook", DefaultParameterSetName = AutomationCmdletParameterSets.ByRunbookName)]
[OutputType(typeof (Runbook))]
public class NewAzureAutomationRunbook : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationSchedule.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationSchedule.cs
index 60f380f976f2..7a7ab485527b 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationSchedule.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationSchedule.cs
@@ -23,7 +23,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Creates an azure automation Schedule.
///
- [Cmdlet(VerbsCommon.New, "AzureRMAutomationSchedule", DefaultParameterSetName = AutomationCmdletParameterSets.ByDaily)]
+ [Cmdlet(VerbsCommon.New, "AzureRmAutomationSchedule", DefaultParameterSetName = AutomationCmdletParameterSets.ByDaily)]
[OutputType(typeof(Schedule))]
public class NewAzureAutomationSchedule : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationVariable.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationVariable.cs
index 19e07e51441a..f2075c408bb8 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationVariable.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationVariable.cs
@@ -22,7 +22,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets azure automation variables for a given account.
///
- [Cmdlet(VerbsCommon.New, "AzureRMAutomationVariable")]
+ [Cmdlet(VerbsCommon.New, "AzureRmAutomationVariable")]
[OutputType(typeof(Variable))]
public class NewAzureAutomationVariable : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationWebhook.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationWebhook.cs
index b63095c837e7..61f751d7e3df 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationWebhook.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationWebhook.cs
@@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Create a new Webhook for automation.
///
- [Cmdlet(VerbsCommon.New, "AzureRMAutomationWebhook")]
+ [Cmdlet(VerbsCommon.New, "AzureRmAutomationWebhook")]
[OutputType(typeof(Webhook))]
public class NewAzureAutomationWebhook : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/PublishAzureAutomationRunbook.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/PublishAzureAutomationRunbook.cs
index 70f58efc5487..0fde4874afd3 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/PublishAzureAutomationRunbook.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/PublishAzureAutomationRunbook.cs
@@ -23,7 +23,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Publishes an azure automation runbook.
///
- [Cmdlet(VerbsData.Publish, "AzureRMAutomationRunbook", DefaultParameterSetName = AutomationCmdletParameterSets.ByRunbookName)]
+ [Cmdlet(VerbsData.Publish, "AzureRmAutomationRunbook", DefaultParameterSetName = AutomationCmdletParameterSets.ByRunbookName)]
[OutputType(typeof(Runbook))]
public class PublishAzureAutomationRunbook : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RegisterAzureAutomationDscNode.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RegisterAzureAutomationDscNode.cs
index f548e4e4ba43..e3c9aa0c41a8 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RegisterAzureAutomationDscNode.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RegisterAzureAutomationDscNode.cs
@@ -28,7 +28,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Registers the dsc node.
///
- [Cmdlet(VerbsLifecycle.Register, "AzureRMAutomationDscNode")]
+ [Cmdlet(VerbsLifecycle.Register, "AzureRmAutomationDscNode")]
// [OutputType(typeof(DscNode))]
public class RegisterAzureAutomationDscNode : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RegisterAzureAutomationScheduledRunbook.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RegisterAzureAutomationScheduledRunbook.cs
index 2d8b0d344d99..3cc9ce57f463 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RegisterAzureAutomationScheduledRunbook.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RegisterAzureAutomationScheduledRunbook.cs
@@ -23,7 +23,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Registers an azure automation scheduled runbook.
///
- [Cmdlet(VerbsLifecycle.Register, "AzureRMAutomationScheduledRunbook", DefaultParameterSetName = AutomationCmdletParameterSets.ByRunbookName)]
+ [Cmdlet(VerbsLifecycle.Register, "AzureRmAutomationScheduledRunbook", DefaultParameterSetName = AutomationCmdletParameterSets.ByRunbookName)]
[OutputType(typeof(JobSchedule))]
public class RegisterAzureAutomationScheduledRunbook : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationAccount.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationAccount.cs
index 964b7a68f010..8d9b784eba74 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationAccount.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationAccount.cs
@@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Removes azure automation accounts, filterd by automation account name and location.
///
- [Cmdlet(VerbsCommon.Remove, "AzureRMAutomationAccount")]
+ [Cmdlet(VerbsCommon.Remove, "AzureRmAutomationAccount")]
[OutputType(typeof(AutomationAccount))]
public class RemoveAzureAutomationAccount : ResourceManager.Common.AzureRMCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationCertificate.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationCertificate.cs
index 7d6bc7e77cad..648409734c77 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationCertificate.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationCertificate.cs
@@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Removes a Certificate for automation.
///
- [Cmdlet(VerbsCommon.Remove, "AzureRMAutomationCertificate", DefaultParameterSetName = AutomationCmdletParameterSets.ByCertificateName)]
+ [Cmdlet(VerbsCommon.Remove, "AzureRmAutomationCertificate", DefaultParameterSetName = AutomationCmdletParameterSets.ByCertificateName)]
public class RemoveAzureAutomationCertificate : AzureAutomationBaseCmdlet
{
///
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationConnection.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationConnection.cs
index 9408289677ff..a564dd7338d5 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationConnection.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationConnection.cs
@@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Removes a Connection for automation.
///
- [Cmdlet(VerbsCommon.Remove, "AzureRMAutomationConnection", DefaultParameterSetName = AutomationCmdletParameterSets.ByName)]
+ [Cmdlet(VerbsCommon.Remove, "AzureRmAutomationConnection", DefaultParameterSetName = AutomationCmdletParameterSets.ByName)]
public class RemoveAzureAutomationConnection : AzureAutomationBaseCmdlet
{
///
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationCredential.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationCredential.cs
index 800eaf3d5c11..33c7a5c30b7b 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationCredential.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationCredential.cs
@@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Removes a Credential for automation.
///
- [Cmdlet(VerbsCommon.Remove, "AzureRMAutomationCredential", DefaultParameterSetName = AutomationCmdletParameterSets.ByName)]
+ [Cmdlet(VerbsCommon.Remove, "AzureRmAutomationCredential", DefaultParameterSetName = AutomationCmdletParameterSets.ByName)]
public class RemoveAzureAutomationCredential : AzureAutomationBaseCmdlet
{
///
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationModule.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationModule.cs
index 3b79bb0a2911..fb05d667ef80 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationModule.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationModule.cs
@@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Remove a Module for automation.
///
- [Cmdlet(VerbsCommon.Remove, "AzureRMAutomationModule", DefaultParameterSetName = AutomationCmdletParameterSets.ByName)]
+ [Cmdlet(VerbsCommon.Remove, "AzureRmAutomationModule", DefaultParameterSetName = AutomationCmdletParameterSets.ByName)]
public class RemoveAzureAutomationModule : AzureAutomationBaseCmdlet
{
///
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationRunbook.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationRunbook.cs
index 26c8a797d112..075012bb9fc5 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationRunbook.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationRunbook.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Removes an azure automation runbook.
///
- [Cmdlet(VerbsCommon.Remove, "AzureRMAutomationRunbook", SupportsShouldProcess = true, DefaultParameterSetName = AutomationCmdletParameterSets.ByRunbookName)]
+ [Cmdlet(VerbsCommon.Remove, "AzureRmAutomationRunbook", SupportsShouldProcess = true, DefaultParameterSetName = AutomationCmdletParameterSets.ByRunbookName)]
public class RemoveAzureAutomationRunbook : AzureAutomationBaseCmdlet
{
///
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationSchedule.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationSchedule.cs
index 768ca52adfe2..06ee86e96038 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationSchedule.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationSchedule.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Removes an azure automation Schedule.
///
- [Cmdlet(VerbsCommon.Remove, "AzureRMAutomationSchedule", SupportsShouldProcess = true, DefaultParameterSetName = AutomationCmdletParameterSets.ByName)]
+ [Cmdlet(VerbsCommon.Remove, "AzureRmAutomationSchedule", SupportsShouldProcess = true, DefaultParameterSetName = AutomationCmdletParameterSets.ByName)]
public class RemoveAzureAutomationSchedule : AzureAutomationBaseCmdlet
{
///
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationVariable.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationVariable.cs
index 5673a6bd7ef2..0dc7e66b0f5a 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationVariable.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationVariable.cs
@@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets azure automation variables for a given account.
///
- [Cmdlet(VerbsCommon.Remove, "AzureRMAutomationVariable")]
+ [Cmdlet(VerbsCommon.Remove, "AzureRmAutomationVariable")]
[OutputType(typeof(Variable))]
public class RemoveAzureAutomationVariable : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationWebhook.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationWebhook.cs
index 0b961760aec3..17510ef0d6cd 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationWebhook.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/RemoveAzureAutomationWebhook.cs
@@ -21,7 +21,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Remove a new Webhook for automation.
///
- [Cmdlet(VerbsCommon.Remove, "AzureRMAutomationWebhook")]
+ [Cmdlet(VerbsCommon.Remove, "AzureRmAutomationWebhook")]
public class RemoveAzureAutomationWebhook : AzureAutomationBaseCmdlet
{
///
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/ResumeAzureAutomationJob.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/ResumeAzureAutomationJob.cs
index 5a793b4bcf18..f79643306608 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/ResumeAzureAutomationJob.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/ResumeAzureAutomationJob.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets a Credential for automation.
///
- [Cmdlet(VerbsLifecycle.Resume, "AzureRMAutomationJob")]
+ [Cmdlet(VerbsLifecycle.Resume, "AzureRmAutomationJob")]
public class ResumeAzureAutomationJob : AzureAutomationBaseCmdlet
{
///
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationAccount.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationAccount.cs
index 258fef229551..708f7ba8e75f 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationAccount.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationAccount.cs
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Creates azure automation accounts based on automation account name and location.
///
- [Cmdlet(VerbsCommon.Set, "AzureRMAutomationAccount")]
+ [Cmdlet(VerbsCommon.Set, "AzureRmAutomationAccount")]
[OutputType(typeof(AutomationAccount))]
public class SetAzureAutomationAccount : ResourceManager.Common.AzureRMCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationCertificate.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationCertificate.cs
index 6afed495cd70..819b4a4f6d7a 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationCertificate.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationCertificate.cs
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Create a new Certificate for automation.
///
- [Cmdlet(VerbsCommon.Set, "AzureRMAutomationCertificate", DefaultParameterSetName = AutomationCmdletParameterSets.ByCertificateName)]
+ [Cmdlet(VerbsCommon.Set, "AzureRmAutomationCertificate", DefaultParameterSetName = AutomationCmdletParameterSets.ByCertificateName)]
[OutputType(typeof(CertificateInfo))]
public class SetAzureAutomationCertificate : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationConnection.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationConnection.cs
index b6a78fd2332e..e789082da817 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationConnection.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationConnection.cs
@@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Create a new Connection for automation.
///
- [Cmdlet(VerbsCommon.Set, "AzureRMAutomationConnectionFieldValue", DefaultParameterSetName = AutomationCmdletParameterSets.ByConnectionName)]
+ [Cmdlet(VerbsCommon.Set, "AzureRmAutomationConnectionFieldValue", DefaultParameterSetName = AutomationCmdletParameterSets.ByConnectionName)]
[OutputType(typeof(Connection))]
public class SetAzureAutomationConnectionFieldValue : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationCredential.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationCredential.cs
index bc2ba7e9799e..3ef2df0cce17 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationCredential.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationCredential.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Sets a Credential for automation.
///
- [Cmdlet(VerbsCommon.Set, "AzureRMAutomationCredential", DefaultParameterSetName = AutomationCmdletParameterSets.ByName)]
+ [Cmdlet(VerbsCommon.Set, "AzureRmAutomationCredential", DefaultParameterSetName = AutomationCmdletParameterSets.ByName)]
[OutputType(typeof(CredentialInfo))]
public class SetAzureAutomationCredential : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationDscNode.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationDscNode.cs
index fe46f4d16384..81910fd5d60b 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationDscNode.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationDscNode.cs
@@ -28,7 +28,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Updates configuration on the dsc node.
///
- [Cmdlet(VerbsCommon.Set, "AzureRMAutomationDscNode")]
+ [Cmdlet(VerbsCommon.Set, "AzureRmAutomationDscNode")]
[OutputType(typeof(DscNode))]
public class SetAzureAutomationDscNode : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationModule.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationModule.cs
index c19a5ded7483..98945793e8e3 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationModule.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationModule.cs
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Sets a Module for automation.
///
- [Cmdlet(VerbsCommon.Set, "AzureRMAutomationModule", DefaultParameterSetName = AutomationCmdletParameterSets.ByName)]
+ [Cmdlet(VerbsCommon.Set, "AzureRmAutomationModule", DefaultParameterSetName = AutomationCmdletParameterSets.ByName)]
[OutputType(typeof(Module))]
public class SetAzureAutomationModule : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationRunbook.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationRunbook.cs
index a930ab71408e..39a689f0d988 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationRunbook.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationRunbook.cs
@@ -23,7 +23,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Sets an azure automation runbook's configuration values.
///
- [Cmdlet(VerbsCommon.Set, "AzureRMAutomationRunbook", DefaultParameterSetName = AutomationCmdletParameterSets.ByRunbookName)]
+ [Cmdlet(VerbsCommon.Set, "AzureRmAutomationRunbook", DefaultParameterSetName = AutomationCmdletParameterSets.ByRunbookName)]
[OutputType(typeof(Runbook))]
public class SetAzureAutomationRunbook : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationSchedule.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationSchedule.cs
index 5749e0f5b5bc..0530ef713cbb 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationSchedule.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationSchedule.cs
@@ -23,7 +23,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Sets an azure automation schedule.
///
- [Cmdlet(VerbsCommon.Set, "AzureRMAutomationSchedule", DefaultParameterSetName = AutomationCmdletParameterSets.ByName)]
+ [Cmdlet(VerbsCommon.Set, "AzureRmAutomationSchedule", DefaultParameterSetName = AutomationCmdletParameterSets.ByName)]
[OutputType(typeof(Schedule))]
public class SetAzureAutomationSchedule : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationVariable.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationVariable.cs
index eb36b3de72ea..6130c4ff92f7 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationVariable.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationVariable.cs
@@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets azure automation variables for a given account.
///
- [Cmdlet(VerbsCommon.Set, "AzureRMAutomationVariable")]
+ [Cmdlet(VerbsCommon.Set, "AzureRmAutomationVariable")]
[OutputType(typeof(Variable))]
public class SetAzureAutomationVariable : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationWebhook.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationWebhook.cs
index 887477614cce..bcb396820f0b 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationWebhook.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationWebhook.cs
@@ -23,7 +23,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Update a Webhook for automation.
///
- [Cmdlet(VerbsCommon.Set, "AzureRMAutomationWebhook")]
+ [Cmdlet(VerbsCommon.Set, "AzureRmAutomationWebhook")]
[OutputType(typeof(Webhook))]
public class SetAzureAutomationWebhook : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/StartAzureAutomationDscCompilationJob.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/StartAzureAutomationDscCompilationJob.cs
index 3599c7a524ac..842ed6bbfdc6 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/StartAzureAutomationDscCompilationJob.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/StartAzureAutomationDscCompilationJob.cs
@@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// starts azure automation compilation job
///
- [Cmdlet(VerbsLifecycle.Start, "AzureRMAutomationDscCompilationJob")]
+ [Cmdlet(VerbsLifecycle.Start, "AzureRmAutomationDscCompilationJob")]
[OutputType(typeof(CompilationJob))]
public class StartAzureAutomationDscCompilationJob : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/StartAzureAutomationRunbook.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/StartAzureAutomationRunbook.cs
index 5b4ffdd56309..04c562e53044 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/StartAzureAutomationRunbook.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/StartAzureAutomationRunbook.cs
@@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Starts an Azure automation runbook.
///
- [Cmdlet(VerbsLifecycle.Start, "AzureRMAutomationRunbook", DefaultParameterSetName = AutomationCmdletParameterSets.ByRunbookName)]
+ [Cmdlet(VerbsLifecycle.Start, "AzureRmAutomationRunbook", DefaultParameterSetName = AutomationCmdletParameterSets.ByRunbookName)]
[OutputType(typeof(Job))]
public class StartAzureAutomationRunbook : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/StopAzureAutomationJob.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/StopAzureAutomationJob.cs
index ff75954944a2..85886dd54931 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/StopAzureAutomationJob.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/StopAzureAutomationJob.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets a Credential for automation.
///
- [Cmdlet(VerbsLifecycle.Stop, "AzureRMAutomationJob")]
+ [Cmdlet(VerbsLifecycle.Stop, "AzureRmAutomationJob")]
public class StopAzureAutomationJob : AzureAutomationBaseCmdlet
{
///
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SuspendAzureAutomationJob.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SuspendAzureAutomationJob.cs
index f65cb91c4394..363db5e0b97c 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SuspendAzureAutomationJob.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/SuspendAzureAutomationJob.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Gets a Credential for automation.
///
- [Cmdlet(VerbsLifecycle.Suspend, "AzureRMAutomationJob")]
+ [Cmdlet(VerbsLifecycle.Suspend, "AzureRmAutomationJob")]
public class SuspendAzureAutomationJob : AzureAutomationBaseCmdlet
{
///
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/UnregisterAzureAutomationDscNode.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/UnregisterAzureAutomationDscNode.cs
index 8e64f53e76e8..593f1adb0c39 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/UnregisterAzureAutomationDscNode.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/UnregisterAzureAutomationDscNode.cs
@@ -28,7 +28,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Removes the dsc node.
///
- [Cmdlet(VerbsLifecycle.Unregister, "AzureRMAutomationDscNode")]
+ [Cmdlet(VerbsLifecycle.Unregister, "AzureRmAutomationDscNode")]
[OutputType(typeof(DscNode))]
public class UnregisterAzureAutomationDscNode : AzureAutomationBaseCmdlet
{
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/UnregisterAzureAutomationScheduledRunbook.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/UnregisterAzureAutomationScheduledRunbook.cs
index 0a7e7b23909c..6d4e0aa4fbb5 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/UnregisterAzureAutomationScheduledRunbook.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/UnregisterAzureAutomationScheduledRunbook.cs
@@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
///
/// Unregisters an azure automation scheduled runbook.
///
- [Cmdlet(VerbsLifecycle.Unregister, "AzureRMAutomationScheduledRunbook", DefaultParameterSetName = AutomationCmdletParameterSets.ByJobScheduleId)]
+ [Cmdlet(VerbsLifecycle.Unregister, "AzureRmAutomationScheduledRunbook", DefaultParameterSetName = AutomationCmdletParameterSets.ByJobScheduleId)]
public class UnregisterAzureAutomationScheduledRunbook : AzureAutomationBaseCmdlet
{
///
diff --git a/src/ResourceManager/Automation/Commands.Automation/Commands.Automation.csproj b/src/ResourceManager/Automation/Commands.Automation/Commands.Automation.csproj
index bbfeb59afe5d..d4ac83c06323 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Commands.Automation.csproj
+++ b/src/ResourceManager/Automation/Commands.Automation/Commands.Automation.csproj
@@ -60,7 +60,7 @@
..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.dll
- ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.3.0-preview\lib\net45\Microsoft.Azure.Common.Authentication.dll
+ ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.3.1-preview\lib\net45\Microsoft.Azure.Common.Authentication.dllTrue
@@ -266,6 +266,10 @@
+
+ {5ee72c53-1720-4309-b54b-5fb79703195f}
+ Commands.Common
+ {3819d8a7-c62c-4c47-8ddd-0332d9ce1252}Commands.ResourceManager.Common
diff --git a/src/ResourceManager/Automation/Commands.Automation/Common/AutomationClientDSC.cs b/src/ResourceManager/Automation/Commands.Automation/Common/AutomationClientDSC.cs
index f49e7b5e45ee..0cd240c8edf0 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Common/AutomationClientDSC.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Common/AutomationClientDSC.cs
@@ -751,7 +751,7 @@ public void RegisterDscNode(string resourceGroupName,
resourceGroupName,
automationAccountName);
- // prepare the parameters to be used in New-AzureRMResourceGroupDeployment cmdlet
+ // prepare the parameters to be used in New-AzureRmResourceGroupDeployment cmdlet
Hashtable templateParameters = new Hashtable();
templateParameters.Add("vmName", azureVMName);
templateParameters.Add("location", location);
@@ -767,10 +767,10 @@ public void RegisterDscNode(string resourceGroupName,
templateParameters.Add("actionAfterReboot", actionAfterReboot);
templateParameters.Add("allowModuleOverwrite", moduleOverwriteFlag);
- // invoke the New-AzureRMResourceGroupDeployment cmdlet
+ // invoke the New-AzureRmResourceGroupDeployment cmdlet
using (Pipeline pipe = Runspace.DefaultRunspace.CreateNestedPipeline())
{
- Command invokeCommand = new Command("New-AzureRMResourceGroupDeployment");
+ Command invokeCommand = new Command("New-AzureRmResourceGroupDeployment");
invokeCommand.Parameters.Add("Name", deploymentName);
invokeCommand.Parameters.Add("ResourceGroupName", azureVmResourceGroup);
invokeCommand.Parameters.Add("TemplateParameterObject", templateParameters);
diff --git a/src/ResourceManager/Automation/Commands.Automation/Microsoft.Azure.Commands.ResourceManager.Automation.dll-help.xml b/src/ResourceManager/Automation/Commands.Automation/Microsoft.Azure.Commands.ResourceManager.Automation.dll-help.xml
index da72097a683e..1fd2901765a6 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Microsoft.Azure.Commands.ResourceManager.Automation.dll-help.xml
+++ b/src/ResourceManager/Automation/Commands.Automation/Microsoft.Azure.Commands.ResourceManager.Automation.dll-help.xml
@@ -1,7 +1,7 @@
- Windows PowerShell® is a task-based command-line shell and scripting language designed especially for system administration. This reference topic for the information technology (IT) professional provides assistance in utilizing the Windows PowerShell cmdlets to script and automate tasks.Azure Automation cmdletsThe following table contains links to the help topics for the Azure Automation cmdlets.CmdletDescriptionExport-AzureRMAutomationDscConfigurationExports a DSC configuration from Automation to a local file.Export-AzureRMAutomationDscNodeReportContentExports the raw content of a DSC report sent from a DSC node to Automation.Get-AzureRMAutomationAccountGets Automation accounts in a resource group.Get-AzureRMAutomationDscCompilationJobGets DSC compilation jobs in Automation.Get-AzureRMAutomationDscCompilationJobOutputGets the logging streams of an Automation DSC compilation job.Get-AzureRMAutomationDscConfigurationGets DSC configurations from Automation.Get-AzureRMAutomationDscNodeGets DSC nodes from Automation.Get-AzureRMAutomationDscNodeConfigurationGets metadata for DSC node configurations in Automation.Get-AzureRMAutomationDscNodeReportGets reports sent from a DSC node to Automation.Get-AzureRMAutomationDscOnboardingMetaconfigCreates meta-configuration .mof files.Get-AzureRMAutomationModuleGets metadata for modules from Automation.Get-AzureRMAutomationRegistrationInfoGets registration information for onboarding a DSC node or hybrid worker to Automation.Import-AzureRMAutomationDscConfigurationImports a DSC configuration into Automation.New-AzureRMAutomationAccountCreates an Automation account.New-AzureRMAutomationKeyRegenerates registration keys for an Automation account.New-AzureRMAutomationModuleImports a module into Automation.Register-AzureRMAutomationDscNodeRegisters an Azure virtual machine as a DSC node for an Automation account.Remove-AzureRMAutomationAccountRemoves an Automation account.Remove-AzureRMAutomationModuleRemoves a module from Automation.Set-AzureRMAutomationAccountModifies an Automation account.Set-AzureRMAutomationDscNodeModifies the node configuration that a DSC node is mapped to.Set-AzureRMAutomationModuleUpdates a module in Automation.Start-AzureRMAutomationDscCompilationJobCompiles a DSC configuration in Automation.Unregister-AzureRMAutomationDscNodeRemoves a DSC node from management by an Automation account.To list all the cmdlets that are available, type Get-Command �Module AzureResourceManager -Name *automation.For more information about, or for the syntax of, any of the cmdlets, use the Get-Help <cmdlet name> cmdlet, where <cmdlet name> is the name of the cmdlet that you want to research. For more detailed information, you can run any of the following cmdlets: ? Get-Help <cmdlet name> -Detailed ? Get-Help <cmdlet name> -Examples ? Get-Help <cmdlet name> -Full Export-AzureRMAutomationDscConfigurationExports a DSC configuration from Automation to a local file. ExportAzureAutomationDscConfigurationThe Export-AzureRMAutomationDscConfiguration cmdlet exports a PowerShell Desired State Configuration (DSC) configuration from Azure Automation to a local file. The exported file has a .ps1 file name extension.Export-AzureRMAutomationDscConfigurationResourceGroupNameSpecifies the name of a resource group for which this cmdlet exports a DSC configuration.StringAutomationAccountNameSpecifies the name of the Automation account that contains the DSC that this cmdlet exports.StringForceIndicates that this cmdlet can replace an existing local file with a new file that has the same name.OutputFolderSpecifies the output folder where this cmdlet exports the DSC configuration.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileSlotSpecifies which version of the DSC configuration that this cmdlet exports. Valid values are:
+ Windows PowerShell® is a task-based command-line shell and scripting language designed especially for system administration. This reference topic for the information technology (IT) professional provides assistance in utilizing the Windows PowerShell cmdlets to script and automate tasks.Azure Automation cmdletsThe following table contains links to the help topics for the Azure Automation cmdlets.CmdletDescriptionExport-AzureRmAutomationDscConfigurationExports a DSC configuration from Automation to a local file.Export-AzureRmAutomationDscNodeReportContentExports the raw content of a DSC report sent from a DSC node to Automation.Get-AzureRmAutomationAccountGets Automation accounts in a resource group.Get-AzureRmAutomationDscCompilationJobGets DSC compilation jobs in Automation.Get-AzureRmAutomationDscCompilationJobOutputGets the logging streams of an Automation DSC compilation job.Get-AzureRmAutomationDscConfigurationGets DSC configurations from Automation.Get-AzureRmAutomationDscNodeGets DSC nodes from Automation.Get-AzureRmAutomationDscNodeConfigurationGets metadata for DSC node configurations in Automation.Get-AzureRmAutomationDscNodeReportGets reports sent from a DSC node to Automation.Get-AzureRmAutomationDscOnboardingMetaconfigCreates meta-configuration .mof files.Get-AzureRmAutomationModuleGets metadata for modules from Automation.Get-AzureRmAutomationRegistrationInfoGets registration information for onboarding a DSC node or hybrid worker to Automation.Import-AzureRmAutomationDscConfigurationImports a DSC configuration into Automation.New-AzureRmAutomationAccountCreates an Automation account.New-AzureRmAutomationKeyRegenerates registration keys for an Automation account.New-AzureRmAutomationModuleImports a module into Automation.Register-AzureRmAutomationDscNodeRegisters an Azure virtual machine as a DSC node for an Automation account.Remove-AzureRmAutomationAccountRemoves an Automation account.Remove-AzureRmAutomationModuleRemoves a module from Automation.Set-AzureRmAutomationAccountModifies an Automation account.Set-AzureRmAutomationDscNodeModifies the node configuration that a DSC node is mapped to.Set-AzureRmAutomationModuleUpdates a module in Automation.Start-AzureRmAutomationDscCompilationJobCompiles a DSC configuration in Automation.Unregister-AzureRmAutomationDscNodeRemoves a DSC node from management by an Automation account.To list all the cmdlets that are available, type Get-Command �Module AzureResourceManager -Name *automation.For more information about, or for the syntax of, any of the cmdlets, use the Get-Help <cmdlet name> cmdlet, where <cmdlet name> is the name of the cmdlet that you want to research. For more detailed information, you can run any of the following cmdlets: ? Get-Help <cmdlet name> -Detailed ? Get-Help <cmdlet name> -Examples ? Get-Help <cmdlet name> -Full Export-AzureRmAutomationDscConfigurationExports a DSC configuration from Automation to a local file. ExportAzureAutomationDscConfigurationThe Export-AzureRmAutomationDscConfiguration cmdlet exports a PowerShell Desired State Configuration (DSC) configuration from Azure Automation to a local file. The exported file has a .ps1 file name extension.Export-AzureRmAutomationDscConfigurationResourceGroupNameSpecifies the name of a resource group for which this cmdlet exports a DSC configuration.StringAutomationAccountNameSpecifies the name of the Automation account that contains the DSC that this cmdlet exports.StringForceIndicates that this cmdlet can replace an existing local file with a new file that has the same name.OutputFolderSpecifies the output folder where this cmdlet exports the DSC configuration.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileSlotSpecifies which version of the DSC configuration that this cmdlet exports. Valid values are:
-- Draft
-- Published
@@ -11,7 +11,7 @@ The default value is Published. StringStringnone 1: Get-AzureRMAutomationDscConfigurationImport-AzureRMAutomationDscConfigurationExport-AzureRMAutomationDscNodeReportContentExports the raw content of a DSC report sent from a DSC node to Automation.ExportAzureAutomationDscNodeReportContentThe Export-AzureRMAutomationDscNodeReportContent cmdlet exports the raw contents of a PowerShell Desired State Configuration (DSC) report. A DSC node sends a DSC report to Azure Automation.Export-AzureRMAutomationDscNodeReportContentResourceGroupNameSpecifies the name of a resource group. This cmdlet exports the contents of a report for the DSC node that belongs to the resource group that this cmdlet specifies. StringAutomationAccountNameSpecifies the name of an Automation account. This cmdlet exports report content for a DSC node that belongs to the Automation account that this parameter specifies. StringForceIndicates that this cmdlet can replace an existing local file with a new file that has the same name.OutputFolderSpecifies the output folder where this cmdlet exports report contents. StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileNodeIdSpecifies the unique ID of the DSC node for which this cmdlet exports report contents.GuidReportIdSpecifies the unique ID of the DSC node report that this cmdlet exports. GuidAutomationAccountNameSpecifies the name of an Automation account. This cmdlet exports report content for a DSC node that belongs to the Automation account that this parameter specifies. StringStringnoneForceIndicates that this cmdlet can replace an existing local file with a new file that has the same name.SwitchParameterSwitchParameternoneNodeIdSpecifies the unique ID of the DSC node for which this cmdlet exports report contents.GuidGuidnoneOutputFolderSpecifies the output folder where this cmdlet exports report contents. StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneReportIdSpecifies the unique ID of the DSC node report that this cmdlet exports. GuidGuidnoneResourceGroupNameSpecifies the name of a resource group. This cmdlet exports the contents of a report for the DSC node that belongs to the resource group that this cmdlet specifies. StringStringnone 1: Get-AzureRMAutomationDscNodeReportGet-AzureRMAutomationAccountGets Automation accounts in a resource group.GetAzureAutomationAccountThe Get-AzureRMAutomationAccount cmdlet gets Azure Automation accounts in a resource group. For more information about Automation accounts, type Get-Help New-AzureRMAutomationAccount.Get-AzureRMAutomationAccountResourceGroupNameSpecifies the name of a resource group in which this cmdlet gets Automation accounts.StringNameSpecifies the name of the Automation account that this cmdlet gets.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileGet-AzureRMAutomationAccountResourceGroupNameSpecifies the name of a resource group in which this cmdlet gets Automation accounts.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileNameSpecifies the name of the Automation account that this cmdlet gets.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group in which this cmdlet gets Automation accounts.StringStringnone 1: New-AzureRMAutomationAccountRemove-AzureRMAutomationAccountSet-AzureRMAutomationAccountGet-AzureRMAutomationDscCompilationJobOutputGets the logging streams of an Automation DSC compilation job.GetAzureAutomationDscCompilationJobOutputThe Get-AzureRMAutomationDscCompilationJobOutput cmdlet gets the stream records of a PowerShell Desired State Configuration (DSC) compilation job in Azure Automation.Get-AzureRMAutomationDscCompilationJobOutputResourceGroupNameSpecifies the name of the resource group that contains the DSC compilation job for which this cmdlet gets stream records.StringAutomationAccountNameSpecifies the name of the Automation account that contains the DSC compilation job.StringIdSpecifies the unique ID of the DSC compilation job for which this cmdlet gets output. GuidProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileStartTimeSpecifies a start time. This cmdlet gets stream records that the DSC compilation job outputs after this time. DateTimeOffsetStreamSpecifies the type of stream for the output that this cmdlet gets. Valid values are:
+The default value is Published. StringStringnone 1: Get-AzureRmAutomationDscConfigurationImport-AzureRmAutomationDscConfigurationExport-AzureRmAutomationDscNodeReportContentExports the raw content of a DSC report sent from a DSC node to Automation.ExportAzureAutomationDscNodeReportContentThe Export-AzureRmAutomationDscNodeReportContent cmdlet exports the raw contents of a PowerShell Desired State Configuration (DSC) report. A DSC node sends a DSC report to Azure Automation.Export-AzureRmAutomationDscNodeReportContentResourceGroupNameSpecifies the name of a resource group. This cmdlet exports the contents of a report for the DSC node that belongs to the resource group that this cmdlet specifies. StringAutomationAccountNameSpecifies the name of an Automation account. This cmdlet exports report content for a DSC node that belongs to the Automation account that this parameter specifies. StringForceIndicates that this cmdlet can replace an existing local file with a new file that has the same name.OutputFolderSpecifies the output folder where this cmdlet exports report contents. StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileNodeIdSpecifies the unique ID of the DSC node for which this cmdlet exports report contents.GuidReportIdSpecifies the unique ID of the DSC node report that this cmdlet exports. GuidAutomationAccountNameSpecifies the name of an Automation account. This cmdlet exports report content for a DSC node that belongs to the Automation account that this parameter specifies. StringStringnoneForceIndicates that this cmdlet can replace an existing local file with a new file that has the same name.SwitchParameterSwitchParameternoneNodeIdSpecifies the unique ID of the DSC node for which this cmdlet exports report contents.GuidGuidnoneOutputFolderSpecifies the output folder where this cmdlet exports report contents. StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneReportIdSpecifies the unique ID of the DSC node report that this cmdlet exports. GuidGuidnoneResourceGroupNameSpecifies the name of a resource group. This cmdlet exports the contents of a report for the DSC node that belongs to the resource group that this cmdlet specifies. StringStringnone 1: Get-AzureRmAutomationDscNodeReportGet-AzureRmAutomationAccountGets Automation accounts in a resource group.GetAzureAutomationAccountThe Get-AzureRmAutomationAccount cmdlet gets Azure Automation accounts in a resource group. For more information about Automation accounts, type Get-Help New-AzureRmAutomationAccount.Get-AzureRmAutomationAccountResourceGroupNameSpecifies the name of a resource group in which this cmdlet gets Automation accounts.StringNameSpecifies the name of the Automation account that this cmdlet gets.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileGet-AzureRmAutomationAccountResourceGroupNameSpecifies the name of a resource group in which this cmdlet gets Automation accounts.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileNameSpecifies the name of the Automation account that this cmdlet gets.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group in which this cmdlet gets Automation accounts.StringStringnone 1: New-AzureRmAutomationAccountRemove-AzureRmAutomationAccountSet-AzureRmAutomationAccountGet-AzureRmAutomationDscCompilationJobOutputGets the logging streams of an Automation DSC compilation job.GetAzureAutomationDscCompilationJobOutputThe Get-AzureRmAutomationDscCompilationJobOutput cmdlet gets the stream records of a PowerShell Desired State Configuration (DSC) compilation job in Azure Automation.Get-AzureRmAutomationDscCompilationJobOutputResourceGroupNameSpecifies the name of the resource group that contains the DSC compilation job for which this cmdlet gets stream records.StringAutomationAccountNameSpecifies the name of the Automation account that contains the DSC compilation job.StringIdSpecifies the unique ID of the DSC compilation job for which this cmdlet gets output. GuidProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileStartTimeSpecifies a start time. This cmdlet gets stream records that the DSC compilation job outputs after this time. DateTimeOffsetStreamSpecifies the type of stream for the output that this cmdlet gets. Valid values are:
-- Any
-- Warning
@@ -21,7 +21,7 @@ The default value is Published. CompilationJobStreamTypeCompilationJobStreamTypenone 1: Get-AzureRMAutomationDscCompilationJobStart-AzureRMAutomationDscCompilationJobGet-AzureRMAutomationDscCompilationJobGets DSC compilation jobs in Automation.GetAzureAutomationDscCompilationJobThe Get-AzureRMAutomationDscCompilationJob cmdlet gets PowerShell Desired State Configuration (DSC) compilation jobs in Azure Automation.Get-AzureRMAutomationDscCompilationJobResourceGroupNameSpecifies the name of a resource group in which this cmdlet gets DSC compilation jobs. StringAutomationAccountNameSpecifies the name of the Automation account that contains DSC compilation jobs that this cmdlet gets.StringEndTimeSpecifies an end time. This cmdlet gets compilations jobs that started up to the time that this parameter specifies. DateTimeOffsetProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileStartTimeSpecifies a start time. This cmdlet gets jobs that start at or after the time that this parameter specifies.DateTimeOffsetStatusSpecifies the status of jobs that this cmdlet gets. Valid values are:
+-- VerboseCompilationJobStreamTypeCompilationJobStreamTypenone 1: Get-AzureRmAutomationDscCompilationJobStart-AzureRmAutomationDscCompilationJobGet-AzureRmAutomationDscCompilationJobGets DSC compilation jobs in Automation.GetAzureAutomationDscCompilationJobThe Get-AzureRmAutomationDscCompilationJob cmdlet gets PowerShell Desired State Configuration (DSC) compilation jobs in Azure Automation.Get-AzureRmAutomationDscCompilationJobResourceGroupNameSpecifies the name of a resource group in which this cmdlet gets DSC compilation jobs. StringAutomationAccountNameSpecifies the name of the Automation account that contains DSC compilation jobs that this cmdlet gets.StringEndTimeSpecifies an end time. This cmdlet gets compilations jobs that started up to the time that this parameter specifies. DateTimeOffsetProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileStartTimeSpecifies a start time. This cmdlet gets jobs that start at or after the time that this parameter specifies.DateTimeOffsetStatusSpecifies the status of jobs that this cmdlet gets. Valid values are:
-- Completed
-- Failed
@@ -33,7 +33,7 @@ The default value is Published. CompletedFailedQueuedStartingResumingRunningStoppedStoppingSuspendedSuspendingActivatingGet-AzureRMAutomationDscCompilationJobResourceGroupNameSpecifies the name of a resource group in which this cmdlet gets DSC compilation jobs. StringAutomationAccountNameSpecifies the name of the Automation account that contains DSC compilation jobs that this cmdlet gets.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileIdSpecifies the unique ID of the DSC compilation job that this cmdlet gets. GuidGet-AzureRMAutomationDscCompilationJobResourceGroupNameSpecifies the name of a resource group in which this cmdlet gets DSC compilation jobs. StringAutomationAccountNameSpecifies the name of the Automation account that contains DSC compilation jobs that this cmdlet gets.StringEndTimeSpecifies an end time. This cmdlet gets compilations jobs that started up to the time that this parameter specifies. DateTimeOffsetProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileStartTimeSpecifies a start time. This cmdlet gets jobs that start at or after the time that this parameter specifies.DateTimeOffsetStatusSpecifies the status of jobs that this cmdlet gets. Valid values are:
+-- ActivatingCompletedFailedQueuedStartingResumingRunningStoppedStoppingSuspendedSuspendingActivatingGet-AzureRmAutomationDscCompilationJobResourceGroupNameSpecifies the name of a resource group in which this cmdlet gets DSC compilation jobs. StringAutomationAccountNameSpecifies the name of the Automation account that contains DSC compilation jobs that this cmdlet gets.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileIdSpecifies the unique ID of the DSC compilation job that this cmdlet gets. GuidGet-AzureRmAutomationDscCompilationJobResourceGroupNameSpecifies the name of a resource group in which this cmdlet gets DSC compilation jobs. StringAutomationAccountNameSpecifies the name of the Automation account that contains DSC compilation jobs that this cmdlet gets.StringEndTimeSpecifies an end time. This cmdlet gets compilations jobs that started up to the time that this parameter specifies. DateTimeOffsetProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileStartTimeSpecifies a start time. This cmdlet gets jobs that start at or after the time that this parameter specifies.DateTimeOffsetStatusSpecifies the status of jobs that this cmdlet gets. Valid values are:
-- Completed
-- Failed
@@ -57,48 +57,48 @@ The default value is Published. StringStringnone 1: Start-AzureRMAutomationDscCompilationJobGet-AzureRMAutomationDscCompilationJobOutputGet-AzureRMAutomationDscConfigurationGets DSC configurations from Automation.GetAzureAutomationDscConfigurationThe Get-AzureRMAutomationDscConfiguration cmdlet gets PowerShell Desired State Configuration (DSC) configurations from Azure Automation.Get-AzureRMAutomationDscConfigurationResourceGroupNameSpecifies the name of a resource group for which this cmdlet gets DSC configurations.StringAutomationAccountNameSpecifies the name of the Automation account that contains DSC configurations that this cmdlet gets.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileGet-AzureRMAutomationDscConfigurationResourceGroupNameSpecifies the name of a resource group for which this cmdlet gets DSC configurations.StringAutomationAccountNameSpecifies the name of the Automation account that contains DSC configurations that this cmdlet gets.StringNameSpecifies the name of the DSC configuration that this cmdlet gets.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAutomationAccountNameSpecifies the name of the Automation account that contains DSC configurations that this cmdlet gets.StringStringnoneNameSpecifies the name of the DSC configuration that this cmdlet gets.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group for which this cmdlet gets DSC configurations.StringStringnone 1: Export-AzureRMAutomationDscConfigurationImport-AzureRMAutomationDscConfigurationGet-AzureRMAutomationDscNodeConfigurationGets metadata for DSC node configurations in Automation. GetAzureAutomationDscNodeConfigurationThe Get-AzureRMAutomationDscNodeConfiguration cmdlet gets metadata for PowerShell Desired State Configuration (DSC) node configurations in Azure Automation. Automation stores DSC node configuration as a Managed Object Format (MOF) configuration document.Get-AzureRMAutomationDscNodeConfigurationResourceGroupNameSpecifies the name of a resource group. This cmdlet gets metadata for DSC node configurations in the resource group that this parameter specifies.StringAutomationAccountNameSpecifies the name of an Automation account that contains the DSC node configurations for which this cmdlet gets metadata.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileRollupStatusSpecifies the rollup status of DSC node configurations that this cmdlet gets. Valid values are: Bad and Good.GoodBadGet-AzureRMAutomationDscNodeConfigurationResourceGroupNameSpecifies the name of a resource group. This cmdlet gets metadata for DSC node configurations in the resource group that this parameter specifies.StringAutomationAccountNameSpecifies the name of an Automation account that contains the DSC node configurations for which this cmdlet gets metadata.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileNameSpecifies the name of the DSC node configuration for which this cmdlet gets metadata.StringGet-AzureRMAutomationDscNodeConfigurationResourceGroupNameSpecifies the name of a resource group. This cmdlet gets metadata for DSC node configurations in the resource group that this parameter specifies.StringAutomationAccountNameSpecifies the name of an Automation account that contains the DSC node configurations for which this cmdlet gets metadata.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileRollupStatusSpecifies the rollup status of DSC node configurations that this cmdlet gets. Valid values are: Bad and Good.GoodBadConfigurationNameSpecifies the name of DSC configuration for which this cmdlet gets node configuration metadata.StringAutomationAccountNameSpecifies the name of an Automation account that contains the DSC node configurations for which this cmdlet gets metadata.StringStringnoneConfigurationNameSpecifies the name of DSC configuration for which this cmdlet gets node configuration metadata.StringStringnoneNameSpecifies the name of the DSC node configuration for which this cmdlet gets metadata.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group. This cmdlet gets metadata for DSC node configurations in the resource group that this parameter specifies.StringStringnoneRollupStatusSpecifies the rollup status of DSC node configurations that this cmdlet gets. Valid values are: Bad and Good.StringStringnone 1: Get-AzureRMAutomationDscNodeReportGets reports sent from a DSC node to Automation.GetAzureAutomationDscNodeReportThe Get-AzureRMAutomationDscNodeReport cmdlet gets reports sent from a PowerShell Desired State Configuration (DSC) node to Azure Automation.Get-AzureRMAutomationDscNodeReportResourceGroupNameSpecifies the name of a resource group that contains the DSC node for which this cmdlet gets reports. StringAutomationAccountNameSpecifies the name of an Automation account. This cmdlet exports reports for a DSC node that belongs to the account that this parameter specifies. StringEndTimeSpecifies an end time. This cmdlet gets reports that Automation received before this time.DateTimeOffsetProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileStartTimeSpecifies a start time. This cmdlet gets reports that Automation received after this time.DateTimeOffsetNodeIdSpecifies the unique ID of the DSC node for which this cmdlet gets reports.GuidGet-AzureRMAutomationDscNodeReportResourceGroupNameSpecifies the name of a resource group that contains the DSC node for which this cmdlet gets reports. StringAutomationAccountNameSpecifies the name of an Automation account. This cmdlet exports reports for a DSC node that belongs to the account that this parameter specifies. StringLatestIndicates that this cmdlet gets the latest DSC report for the specified node only.ProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileNodeIdSpecifies the unique ID of the DSC node for which this cmdlet gets reports.GuidGet-AzureRMAutomationDscNodeReportResourceGroupNameSpecifies the name of a resource group that contains the DSC node for which this cmdlet gets reports. StringAutomationAccountNameSpecifies the name of an Automation account. This cmdlet exports reports for a DSC node that belongs to the account that this parameter specifies. StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileIdSpecifies the unique ID of the DSC node report for this cmdlet to get. GuidNodeIdSpecifies the unique ID of the DSC node for which this cmdlet gets reports.GuidAutomationAccountNameSpecifies the name of an Automation account. This cmdlet exports reports for a DSC node that belongs to the account that this parameter specifies. StringStringnoneEndTimeSpecifies an end time. This cmdlet gets reports that Automation received before this time.DateTimeOffsetDateTimeOffsetnoneIdSpecifies the unique ID of the DSC node report for this cmdlet to get. GuidGuidnoneLatestIndicates that this cmdlet gets the latest DSC report for the specified node only.SwitchParameterSwitchParameternoneNodeIdSpecifies the unique ID of the DSC node for which this cmdlet gets reports.GuidGuidnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group that contains the DSC node for which this cmdlet gets reports. StringStringnoneStartTimeSpecifies a start time. This cmdlet gets reports that Automation received after this time.DateTimeOffsetDateTimeOffsetnone 1: Export-AzureRMAutomationDscNodeReportContentGet-AzureRMAutomationDscNodeGets DSC nodes from Automation.GetAzureAutomationDscNodeThe Get-AzureRMAutomationDscNode cmdlet gets PowerShell Desired State Configuration (DSC) nodes from Azure Automation.Get-AzureRMAutomationDscNodeResourceGroupNameSpecifies the name of a resource group in which this cmdlet gets DSC nodes.StringAutomationAccountNameSpecifies the name of the Automation account that contains the DSC nodes that this cmdlet gets.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileStatusSpecifies the status of the DSC nodes that this cmdlet gets. Valid values are:
+-- ActivatingStringStringnone 1: Start-AzureRmAutomationDscCompilationJobGet-AzureRmAutomationDscCompilationJobOutputGet-AzureRmAutomationDscConfigurationGets DSC configurations from Automation.GetAzureAutomationDscConfigurationThe Get-AzureRmAutomationDscConfiguration cmdlet gets PowerShell Desired State Configuration (DSC) configurations from Azure Automation.Get-AzureRmAutomationDscConfigurationResourceGroupNameSpecifies the name of a resource group for which this cmdlet gets DSC configurations.StringAutomationAccountNameSpecifies the name of the Automation account that contains DSC configurations that this cmdlet gets.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileGet-AzureRmAutomationDscConfigurationResourceGroupNameSpecifies the name of a resource group for which this cmdlet gets DSC configurations.StringAutomationAccountNameSpecifies the name of the Automation account that contains DSC configurations that this cmdlet gets.StringNameSpecifies the name of the DSC configuration that this cmdlet gets.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAutomationAccountNameSpecifies the name of the Automation account that contains DSC configurations that this cmdlet gets.StringStringnoneNameSpecifies the name of the DSC configuration that this cmdlet gets.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group for which this cmdlet gets DSC configurations.StringStringnone 1: Export-AzureRmAutomationDscConfigurationImport-AzureRmAutomationDscConfigurationGet-AzureRmAutomationDscNodeConfigurationGets metadata for DSC node configurations in Automation. GetAzureAutomationDscNodeConfigurationThe Get-AzureRmAutomationDscNodeConfiguration cmdlet gets metadata for PowerShell Desired State Configuration (DSC) node configurations in Azure Automation. Automation stores DSC node configuration as a Managed Object Format (MOF) configuration document.Get-AzureRmAutomationDscNodeConfigurationResourceGroupNameSpecifies the name of a resource group. This cmdlet gets metadata for DSC node configurations in the resource group that this parameter specifies.StringAutomationAccountNameSpecifies the name of an Automation account that contains the DSC node configurations for which this cmdlet gets metadata.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileRollupStatusSpecifies the rollup status of DSC node configurations that this cmdlet gets. Valid values are: Bad and Good.GoodBadGet-AzureRmAutomationDscNodeConfigurationResourceGroupNameSpecifies the name of a resource group. This cmdlet gets metadata for DSC node configurations in the resource group that this parameter specifies.StringAutomationAccountNameSpecifies the name of an Automation account that contains the DSC node configurations for which this cmdlet gets metadata.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileNameSpecifies the name of the DSC node configuration for which this cmdlet gets metadata.StringGet-AzureRmAutomationDscNodeConfigurationResourceGroupNameSpecifies the name of a resource group. This cmdlet gets metadata for DSC node configurations in the resource group that this parameter specifies.StringAutomationAccountNameSpecifies the name of an Automation account that contains the DSC node configurations for which this cmdlet gets metadata.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileRollupStatusSpecifies the rollup status of DSC node configurations that this cmdlet gets. Valid values are: Bad and Good.GoodBadConfigurationNameSpecifies the name of DSC configuration for which this cmdlet gets node configuration metadata.StringAutomationAccountNameSpecifies the name of an Automation account that contains the DSC node configurations for which this cmdlet gets metadata.StringStringnoneConfigurationNameSpecifies the name of DSC configuration for which this cmdlet gets node configuration metadata.StringStringnoneNameSpecifies the name of the DSC node configuration for which this cmdlet gets metadata.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group. This cmdlet gets metadata for DSC node configurations in the resource group that this parameter specifies.StringStringnoneRollupStatusSpecifies the rollup status of DSC node configurations that this cmdlet gets. Valid values are: Bad and Good.StringStringnone 1: Get-AzureRmAutomationDscNodeReportGets reports sent from a DSC node to Automation.GetAzureAutomationDscNodeReportThe Get-AzureRmAutomationDscNodeReport cmdlet gets reports sent from a PowerShell Desired State Configuration (DSC) node to Azure Automation.Get-AzureRmAutomationDscNodeReportResourceGroupNameSpecifies the name of a resource group that contains the DSC node for which this cmdlet gets reports. StringAutomationAccountNameSpecifies the name of an Automation account. This cmdlet exports reports for a DSC node that belongs to the account that this parameter specifies. StringEndTimeSpecifies an end time. This cmdlet gets reports that Automation received before this time.DateTimeOffsetProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileStartTimeSpecifies a start time. This cmdlet gets reports that Automation received after this time.DateTimeOffsetNodeIdSpecifies the unique ID of the DSC node for which this cmdlet gets reports.GuidGet-AzureRmAutomationDscNodeReportResourceGroupNameSpecifies the name of a resource group that contains the DSC node for which this cmdlet gets reports. StringAutomationAccountNameSpecifies the name of an Automation account. This cmdlet exports reports for a DSC node that belongs to the account that this parameter specifies. StringLatestIndicates that this cmdlet gets the latest DSC report for the specified node only.ProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileNodeIdSpecifies the unique ID of the DSC node for which this cmdlet gets reports.GuidGet-AzureRmAutomationDscNodeReportResourceGroupNameSpecifies the name of a resource group that contains the DSC node for which this cmdlet gets reports. StringAutomationAccountNameSpecifies the name of an Automation account. This cmdlet exports reports for a DSC node that belongs to the account that this parameter specifies. StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileIdSpecifies the unique ID of the DSC node report for this cmdlet to get. GuidNodeIdSpecifies the unique ID of the DSC node for which this cmdlet gets reports.GuidAutomationAccountNameSpecifies the name of an Automation account. This cmdlet exports reports for a DSC node that belongs to the account that this parameter specifies. StringStringnoneEndTimeSpecifies an end time. This cmdlet gets reports that Automation received before this time.DateTimeOffsetDateTimeOffsetnoneIdSpecifies the unique ID of the DSC node report for this cmdlet to get. GuidGuidnoneLatestIndicates that this cmdlet gets the latest DSC report for the specified node only.SwitchParameterSwitchParameternoneNodeIdSpecifies the unique ID of the DSC node for which this cmdlet gets reports.GuidGuidnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group that contains the DSC node for which this cmdlet gets reports. StringStringnoneStartTimeSpecifies a start time. This cmdlet gets reports that Automation received after this time.DateTimeOffsetDateTimeOffsetnone 1: Export-AzureRmAutomationDscNodeReportContentGet-AzureRmAutomationDscNodeGets DSC nodes from Automation.GetAzureAutomationDscNodeThe Get-AzureRmAutomationDscNode cmdlet gets PowerShell Desired State Configuration (DSC) nodes from Azure Automation.Get-AzureRmAutomationDscNodeResourceGroupNameSpecifies the name of a resource group in which this cmdlet gets DSC nodes.StringAutomationAccountNameSpecifies the name of the Automation account that contains the DSC nodes that this cmdlet gets.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileStatusSpecifies the status of the DSC nodes that this cmdlet gets. Valid values are:
-- Compliant
-- NotCompliant
-- Failed
-- Pending
-- Received
--- UnresponsiveCompliantNotCompliantFailedPendingReceivedUnresponsiveGet-AzureRMAutomationDscNodeResourceGroupNameSpecifies the name of a resource group in which this cmdlet gets DSC nodes.StringAutomationAccountNameSpecifies the name of the Automation account that contains the DSC nodes that this cmdlet gets.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileIdSpecifies the unique ID of the DSC node that this cmdlet gets.GuidGet-AzureRMAutomationDscNodeResourceGroupNameSpecifies the name of a resource group in which this cmdlet gets DSC nodes.StringAutomationAccountNameSpecifies the name of the Automation account that contains the DSC nodes that this cmdlet gets.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileStatusSpecifies the status of the DSC nodes that this cmdlet gets. Valid values are:
+-- UnresponsiveCompliantNotCompliantFailedPendingReceivedUnresponsiveGet-AzureRmAutomationDscNodeResourceGroupNameSpecifies the name of a resource group in which this cmdlet gets DSC nodes.StringAutomationAccountNameSpecifies the name of the Automation account that contains the DSC nodes that this cmdlet gets.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileIdSpecifies the unique ID of the DSC node that this cmdlet gets.GuidGet-AzureRmAutomationDscNodeResourceGroupNameSpecifies the name of a resource group in which this cmdlet gets DSC nodes.StringAutomationAccountNameSpecifies the name of the Automation account that contains the DSC nodes that this cmdlet gets.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileStatusSpecifies the status of the DSC nodes that this cmdlet gets. Valid values are:
-- Compliant
-- NotCompliant
-- Failed
-- Pending
-- Received
--- UnresponsiveCompliantNotCompliantFailedPendingReceivedUnresponsiveNameSpecifies the name of a DSC node that this cmdlet gets.StringGet-AzureRMAutomationDscNodeResourceGroupNameSpecifies the name of a resource group in which this cmdlet gets DSC nodes.StringAutomationAccountNameSpecifies the name of the Automation account that contains the DSC nodes that this cmdlet gets.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileStatusSpecifies the status of the DSC nodes that this cmdlet gets. Valid values are:
+-- UnresponsiveCompliantNotCompliantFailedPendingReceivedUnresponsiveNameSpecifies the name of a DSC node that this cmdlet gets.StringGet-AzureRmAutomationDscNodeResourceGroupNameSpecifies the name of a resource group in which this cmdlet gets DSC nodes.StringAutomationAccountNameSpecifies the name of the Automation account that contains the DSC nodes that this cmdlet gets.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileStatusSpecifies the status of the DSC nodes that this cmdlet gets. Valid values are:
-- Compliant
-- NotCompliant
-- Failed
-- Pending
-- Received
--- UnresponsiveCompliantNotCompliantFailedPendingReceivedUnresponsiveNodeConfigurationNameSpecifies the name of a node configuration that this cmdlet gets. StringGet-AzureRMAutomationDscNodeResourceGroupNameSpecifies the name of a resource group in which this cmdlet gets DSC nodes.StringAutomationAccountNameSpecifies the name of the Automation account that contains the DSC nodes that this cmdlet gets.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileConfigurationNameSpecifies the name of a DSC configuration. This cmdlet gets DSC nodes that match the node configurations generated from the configuration that this parameter specifies. StringAutomationAccountNameSpecifies the name of the Automation account that contains the DSC nodes that this cmdlet gets.StringStringnoneConfigurationNameSpecifies the name of a DSC configuration. This cmdlet gets DSC nodes that match the node configurations generated from the configuration that this parameter specifies. StringStringnoneIdSpecifies the unique ID of the DSC node that this cmdlet gets.GuidGuidnoneNameSpecifies the name of a DSC node that this cmdlet gets.StringStringnoneNodeConfigurationNameSpecifies the name of a node configuration that this cmdlet gets. StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group in which this cmdlet gets DSC nodes.StringStringnoneStatusSpecifies the status of the DSC nodes that this cmdlet gets. Valid values are:
+-- UnresponsiveCompliantNotCompliantFailedPendingReceivedUnresponsiveNodeConfigurationNameSpecifies the name of a node configuration that this cmdlet gets. StringGet-AzureRmAutomationDscNodeResourceGroupNameSpecifies the name of a resource group in which this cmdlet gets DSC nodes.StringAutomationAccountNameSpecifies the name of the Automation account that contains the DSC nodes that this cmdlet gets.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileConfigurationNameSpecifies the name of a DSC configuration. This cmdlet gets DSC nodes that match the node configurations generated from the configuration that this parameter specifies. StringAutomationAccountNameSpecifies the name of the Automation account that contains the DSC nodes that this cmdlet gets.StringStringnoneConfigurationNameSpecifies the name of a DSC configuration. This cmdlet gets DSC nodes that match the node configurations generated from the configuration that this parameter specifies. StringStringnoneIdSpecifies the unique ID of the DSC node that this cmdlet gets.GuidGuidnoneNameSpecifies the name of a DSC node that this cmdlet gets.StringStringnoneNodeConfigurationNameSpecifies the name of a node configuration that this cmdlet gets. StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group in which this cmdlet gets DSC nodes.StringStringnoneStatusSpecifies the status of the DSC nodes that this cmdlet gets. Valid values are:
-- Compliant
-- NotCompliant
-- Failed
-- Pending
-- Received
--- UnresponsiveDscNodeStatusDscNodeStatusnone 1: Register-AzureRMAutomationDscNodeSet-AzureRMAutomationDscNodeUnregister-AzureRMAutomationDscNodeGet-AzureRMAutomationDscOnboardingMetaconfigCreates meta-configuration .mof files.GetAzureAutomationDscOnboardingMetaconfigThe Get-AzureRMAutomationDscOnboardingMetaconfig cmdlet creates PowerShell Desired State Configuration (DSC) meta-configuration Managed Object Format (MOF) files. This cmdlet creates a .mof file for each computer name that you specify. The cmdlet creates a folder for the .mof files. You can run the Set-DscLocalConfigurationManager cmdlet against this folder to onboard these computers into an Azure Automation account as DSC nodes.Get-AzureRMAutomationDscOnboardingMetaconfigResourceGroupNameSpecifies the name of a resource group. This cmdlet creates .mof files to onboard computers in the resource group that this parameter specifies. StringAutomationAccountNameSpecifies the name of an Automation account. You can onboard the computers that the ComputerName parameter specifies to the account that this parameter specifies. StringComputerNameSpecifies an array of names of computers for which this cmdlet generates .mof files. If you do not specify this parameter, the cmdlet generates an .mof file for the current computer (localhost). String[]ForceForces the command to run without prompting you for confirmation, and to replace existing .mof files that have the same name.OutputFolderSpecifies the name of a folder where this cmdlet stores .mof files. StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAutomationAccountNameSpecifies the name of an Automation account. You can onboard the computers that the ComputerName parameter specifies to the account that this parameter specifies. StringStringnoneComputerNameSpecifies an array of names of computers for which this cmdlet generates .mof files. If you do not specify this parameter, the cmdlet generates an .mof file for the current computer (localhost). String[]String[]noneForceForces the command to run without prompting you for confirmation, and to replace existing .mof files that have the same name.SwitchParameterSwitchParameternoneOutputFolderSpecifies the name of a folder where this cmdlet stores .mof files. StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group. This cmdlet creates .mof files to onboard computers in the resource group that this parameter specifies. StringStringnone 1: Get-AzureRMAutomationModuleGets metadata for modules from Automation.GetAzureAutomationModuleThe Get-AzureRMAutomationModule cmdlet gets metadata for modules from Azure Automation.Get-AzureRMAutomationModuleResourceGroupNameSpecifies the name of a resource group for which this cmdlet gets module metadata.StringAutomationAccountNameSpecifies the name of the Automation account for which this cmdlet gets module metadata. StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileGet-AzureRMAutomationModuleResourceGroupNameSpecifies the name of a resource group for which this cmdlet gets module metadata.StringAutomationAccountNameSpecifies the name of the Automation account for which this cmdlet gets module metadata. StringNameSpecifies the name of the module for which this cmdlet gets metadata. StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAutomationAccountNameSpecifies the name of the Automation account for which this cmdlet gets module metadata. StringStringnoneNameSpecifies the name of the module for which this cmdlet gets metadata. StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group for which this cmdlet gets module metadata.StringStringnone 1: New-AzureRMAutomationModuleRemove-AzureRMAutomationModuleSet-AzureRMAutomationModuleGet-AzureRMAutomationRegistrationInfoGets registration information for onboarding a DSC node or hybrid worker to Automation. GetAzureAutomationRegistrationInfoThe Get-AzureRMAutomationRegistrationInfo cmdlet gets the endpoint and keys required to onboard a PowerShell Desired State Configuration (DSC) node or hybrid worker into an Azure Automation account.Get-AzureRMAutomationRegistrationInfoResourceGroupNameSpecifies the name of a resource group. This cmdlet gets registration information for the resource group that this parameter specifies.StringAutomationAccountNameSpecifies the name of automation account for which this cmdlet gets registration information. StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAutomationAccountNameSpecifies the name of automation account for which this cmdlet gets registration information. StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group. This cmdlet gets registration information for the resource group that this parameter specifies.StringStringnone 1: Get-AzureRMAutomationAccountGet-AzureRMAutomationDscNodeNew-AzureRMAutomationKeyImport-AzureRMAutomationDscConfigurationImports a DSC configuration into Automation.ImportAzureAutomationDscConfigurationThe Import-AzureRMAutomationDscConfiguration cmdlet imports a PowerShell Desired State Configuration (DSC) configuration into Azure Automation. Specify the path of a PowerShell script that contains a single DSC configuration.Import-AzureRMAutomationDscConfigurationResourceGroupNameSpecifies the name of a resource group for which this cmdlet imports a DSC configuration.StringAutomationAccountNameSpecifies the name of the Automation account into which this cmdlet imports a DSC configuration.StringDescriptionSpecifies a description of the configuration that this cmdlet imports. StringForceIndicates that this cmdlet can replace an existing DSC configuration in Automation.LogVerboseSpecifies whether this cmdlet turns verbose logging on or off for compilation jobs of this DSC configuration. Specify a value of $True to turn verbose logging on or $False to turn it off.BooleanProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfilePublishedIndicates that this cmdlet imports the DSC configuration in the published state.TagsSpecifies a dictionary of tags.IDictionarySourcePathSpecifies the path of the PowerShell script that contains the DSC configuration that this cmdlet imports. StringAutomationAccountNameSpecifies the name of the Automation account into which this cmdlet imports a DSC configuration.StringStringnoneDescriptionSpecifies a description of the configuration that this cmdlet imports. StringStringnoneForceIndicates that this cmdlet can replace an existing DSC configuration in Automation.SwitchParameterSwitchParameternoneLogVerboseSpecifies whether this cmdlet turns verbose logging on or off for compilation jobs of this DSC configuration. Specify a value of $True to turn verbose logging on or $False to turn it off.BooleanBooleannoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenonePublishedIndicates that this cmdlet imports the DSC configuration in the published state.SwitchParameterSwitchParameternoneResourceGroupNameSpecifies the name of a resource group for which this cmdlet imports a DSC configuration.StringStringnoneSourcePathSpecifies the path of the PowerShell script that contains the DSC configuration that this cmdlet imports. StringStringnoneTagsSpecifies a dictionary of tags.IDictionaryIDictionarynone 1: Export-AzureRMAutomationDscConfigurationGet-AzureRMAutomationDscConfigurationNew-AzureRMAutomationAccountCreates an Automation account.NewAzureAutomationAccountThe New-AzureRMAutomationAccount cmdlet creates an Azure Automation account in a resource group.An Automation account is a container for Automation resources that is isolated from the resources of other Automation accounts. Automation resources include runbooks, DSC configurations, jobs, and assets.New-AzureRMAutomationAccountResourceGroupNameSpecifies the name of a resource group to which this cmdlet adds an Automation account.StringNameSpecifies a name for the Automation account.StringLocationSpecifies the location in which this cmdlet creates the Automation account. To obtain valid locations, use the Get-AzureRMLocation cmdlet. StringPlanSpecifies the plan for the Automation account. Valid values are: Basic and Free.FreeBasicProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileTagsSpecifies tags for the Automation account.IDictionaryLocationSpecifies the location in which this cmdlet creates the Automation account. To obtain valid locations, use the Get-AzureRMLocation cmdlet. StringStringnoneNameSpecifies a name for the Automation account.StringStringnonePlanSpecifies the plan for the Automation account. Valid values are: Basic and Free.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group to which this cmdlet adds an Automation account.StringStringnoneTagsSpecifies tags for the Automation account.IDictionaryIDictionarynone 1: Get-AzureRMAutomationAccountRemove-AzureRMAutomationAccountSet-AzureRMAutomationAccountNew-AzureRMAutomationKeyRegenerates registration keys for an Automation account.NewAzureAutomationKeyThe New-AzureRMAutomationKey cmdlet regenerates registration keys for an Azure Automation account.New-AzureRMAutomationKeyResourceGroupNameSpecifies the name of a resource group. This cmdlet regenerates keys for an Automation account in the resource group that this parameter specifies. StringAutomationAccountNameSpecifies the name of an Automation account for which this cmdlet regenerates keys.StringKeyTypeSpecifies the type of the agent registration key. Valid values are: Primary and Secondary.PrimarySecondaryProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAutomationAccountNameSpecifies the name of an Automation account for which this cmdlet regenerates keys.StringStringnoneKeyTypeSpecifies the type of the agent registration key. Valid values are: Primary and Secondary.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group. This cmdlet regenerates keys for an Automation account in the resource group that this parameter specifies. StringStringnone 1: Get-AzureRMAutomationAccountNew-AzureRMAutomationAccountNew-AzureRMAutomationModuleImports a module into Automation.NewAzureAutomationModuleThe New-AzureRMAutomationModule cmdlet imports a module into Azure Automation. This command accepts a compressed file that has a .zip file name extension. The file contains a folder that includes a file that is one of the following types:
+-- UnresponsiveDscNodeStatusDscNodeStatusnone 1: Register-AzureRmAutomationDscNodeSet-AzureRmAutomationDscNodeUnregister-AzureRmAutomationDscNodeGet-AzureRmAutomationDscOnboardingMetaconfigCreates meta-configuration .mof files.GetAzureAutomationDscOnboardingMetaconfigThe Get-AzureRmAutomationDscOnboardingMetaconfig cmdlet creates PowerShell Desired State Configuration (DSC) meta-configuration Managed Object Format (MOF) files. This cmdlet creates a .mof file for each computer name that you specify. The cmdlet creates a folder for the .mof files. You can run the Set-DscLocalConfigurationManager cmdlet against this folder to onboard these computers into an Azure Automation account as DSC nodes.Get-AzureRmAutomationDscOnboardingMetaconfigResourceGroupNameSpecifies the name of a resource group. This cmdlet creates .mof files to onboard computers in the resource group that this parameter specifies. StringAutomationAccountNameSpecifies the name of an Automation account. You can onboard the computers that the ComputerName parameter specifies to the account that this parameter specifies. StringComputerNameSpecifies an array of names of computers for which this cmdlet generates .mof files. If you do not specify this parameter, the cmdlet generates an .mof file for the current computer (localhost). String[]ForceForces the command to run without prompting you for confirmation, and to replace existing .mof files that have the same name.OutputFolderSpecifies the name of a folder where this cmdlet stores .mof files. StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAutomationAccountNameSpecifies the name of an Automation account. You can onboard the computers that the ComputerName parameter specifies to the account that this parameter specifies. StringStringnoneComputerNameSpecifies an array of names of computers for which this cmdlet generates .mof files. If you do not specify this parameter, the cmdlet generates an .mof file for the current computer (localhost). String[]String[]noneForceForces the command to run without prompting you for confirmation, and to replace existing .mof files that have the same name.SwitchParameterSwitchParameternoneOutputFolderSpecifies the name of a folder where this cmdlet stores .mof files. StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group. This cmdlet creates .mof files to onboard computers in the resource group that this parameter specifies. StringStringnone 1: Get-AzureRmAutomationModuleGets metadata for modules from Automation.GetAzureAutomationModuleThe Get-AzureRmAutomationModule cmdlet gets metadata for modules from Azure Automation.Get-AzureRmAutomationModuleResourceGroupNameSpecifies the name of a resource group for which this cmdlet gets module metadata.StringAutomationAccountNameSpecifies the name of the Automation account for which this cmdlet gets module metadata. StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileGet-AzureRmAutomationModuleResourceGroupNameSpecifies the name of a resource group for which this cmdlet gets module metadata.StringAutomationAccountNameSpecifies the name of the Automation account for which this cmdlet gets module metadata. StringNameSpecifies the name of the module for which this cmdlet gets metadata. StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAutomationAccountNameSpecifies the name of the Automation account for which this cmdlet gets module metadata. StringStringnoneNameSpecifies the name of the module for which this cmdlet gets metadata. StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group for which this cmdlet gets module metadata.StringStringnone 1: New-AzureRmAutomationModuleRemove-AzureRmAutomationModuleSet-AzureRmAutomationModuleGet-AzureRmAutomationRegistrationInfoGets registration information for onboarding a DSC node or hybrid worker to Automation. GetAzureAutomationRegistrationInfoThe Get-AzureRmAutomationRegistrationInfo cmdlet gets the endpoint and keys required to onboard a PowerShell Desired State Configuration (DSC) node or hybrid worker into an Azure Automation account.Get-AzureRmAutomationRegistrationInfoResourceGroupNameSpecifies the name of a resource group. This cmdlet gets registration information for the resource group that this parameter specifies.StringAutomationAccountNameSpecifies the name of automation account for which this cmdlet gets registration information. StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAutomationAccountNameSpecifies the name of automation account for which this cmdlet gets registration information. StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group. This cmdlet gets registration information for the resource group that this parameter specifies.StringStringnone 1: Get-AzureRmAutomationAccountGet-AzureRmAutomationDscNodeNew-AzureRmAutomationKeyImport-AzureRmAutomationDscConfigurationImports a DSC configuration into Automation.ImportAzureAutomationDscConfigurationThe Import-AzureRmAutomationDscConfiguration cmdlet imports a PowerShell Desired State Configuration (DSC) configuration into Azure Automation. Specify the path of a PowerShell script that contains a single DSC configuration.Import-AzureRmAutomationDscConfigurationResourceGroupNameSpecifies the name of a resource group for which this cmdlet imports a DSC configuration.StringAutomationAccountNameSpecifies the name of the Automation account into which this cmdlet imports a DSC configuration.StringDescriptionSpecifies a description of the configuration that this cmdlet imports. StringForceIndicates that this cmdlet can replace an existing DSC configuration in Automation.LogVerboseSpecifies whether this cmdlet turns verbose logging on or off for compilation jobs of this DSC configuration. Specify a value of $True to turn verbose logging on or $False to turn it off.BooleanProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfilePublishedIndicates that this cmdlet imports the DSC configuration in the published state.TagsSpecifies a dictionary of tags.IDictionarySourcePathSpecifies the path of the PowerShell script that contains the DSC configuration that this cmdlet imports. StringAutomationAccountNameSpecifies the name of the Automation account into which this cmdlet imports a DSC configuration.StringStringnoneDescriptionSpecifies a description of the configuration that this cmdlet imports. StringStringnoneForceIndicates that this cmdlet can replace an existing DSC configuration in Automation.SwitchParameterSwitchParameternoneLogVerboseSpecifies whether this cmdlet turns verbose logging on or off for compilation jobs of this DSC configuration. Specify a value of $True to turn verbose logging on or $False to turn it off.BooleanBooleannoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenonePublishedIndicates that this cmdlet imports the DSC configuration in the published state.SwitchParameterSwitchParameternoneResourceGroupNameSpecifies the name of a resource group for which this cmdlet imports a DSC configuration.StringStringnoneSourcePathSpecifies the path of the PowerShell script that contains the DSC configuration that this cmdlet imports. StringStringnoneTagsSpecifies a dictionary of tags.IDictionaryIDictionarynone 1: Export-AzureRmAutomationDscConfigurationGet-AzureRmAutomationDscConfigurationNew-AzureRmAutomationAccountCreates an Automation account.NewAzureAutomationAccountThe New-AzureRmAutomationAccount cmdlet creates an Azure Automation account in a resource group.An Automation account is a container for Automation resources that is isolated from the resources of other Automation accounts. Automation resources include runbooks, DSC configurations, jobs, and assets.New-AzureRmAutomationAccountResourceGroupNameSpecifies the name of a resource group to which this cmdlet adds an Automation account.StringNameSpecifies a name for the Automation account.StringLocationSpecifies the location in which this cmdlet creates the Automation account. To obtain valid locations, use the Get-AzureRmLocation cmdlet. StringPlanSpecifies the plan for the Automation account. Valid values are: Basic and Free.FreeBasicProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileTagsSpecifies tags for the Automation account.IDictionaryLocationSpecifies the location in which this cmdlet creates the Automation account. To obtain valid locations, use the Get-AzureRmLocation cmdlet. StringStringnoneNameSpecifies a name for the Automation account.StringStringnonePlanSpecifies the plan for the Automation account. Valid values are: Basic and Free.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group to which this cmdlet adds an Automation account.StringStringnoneTagsSpecifies tags for the Automation account.IDictionaryIDictionarynone 1: Get-AzureRmAutomationAccountRemove-AzureRmAutomationAccountSet-AzureRmAutomationAccountNew-AzureRmAutomationKeyRegenerates registration keys for an Automation account.NewAzureAutomationKeyThe New-AzureRmAutomationKey cmdlet regenerates registration keys for an Azure Automation account.New-AzureRmAutomationKeyResourceGroupNameSpecifies the name of a resource group. This cmdlet regenerates keys for an Automation account in the resource group that this parameter specifies. StringAutomationAccountNameSpecifies the name of an Automation account for which this cmdlet regenerates keys.StringKeyTypeSpecifies the type of the agent registration key. Valid values are: Primary and Secondary.PrimarySecondaryProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAutomationAccountNameSpecifies the name of an Automation account for which this cmdlet regenerates keys.StringStringnoneKeyTypeSpecifies the type of the agent registration key. Valid values are: Primary and Secondary.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group. This cmdlet regenerates keys for an Automation account in the resource group that this parameter specifies. StringStringnone 1: Get-AzureRmAutomationAccountNew-AzureRmAutomationAccountNew-AzureRmAutomationModuleImports a module into Automation.NewAzureAutomationModuleThe New-AzureRmAutomationModule cmdlet imports a module into Azure Automation. This command accepts a compressed file that has a .zip file name extension. The file contains a folder that includes a file that is one of the following types:
-- Azure PowerShell module, which has a .psm1 file name extension
-- Azure PowerShell module manifest, which has a .psd1 file name extension
--- Dynamic link library, which has a .dll file name extensionThe name of the .zip file, the name of the folder, and the name of the file in the folder must be the same.Specify the .zip file as a URL that this computer can access.New-AzureRMAutomationModuleResourceGroupNameSpecifies the name of a resource group for which this cmdlet imports a module.StringAutomationAccountNameSpecifies the name of the Automation account for which this cmdlet imports a module. StringNameSpecifies the name of the module that this cmdlet imports.StringContentLinkSpecifies the URL of the .zip file that contains a module that this cmdlet imports.UriProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAutomationAccountNameSpecifies the name of the Automation account for which this cmdlet imports a module. StringStringnoneContentLinkSpecifies the URL of the .zip file that contains a module that this cmdlet imports.UriUrinoneNameSpecifies the name of the module that this cmdlet imports.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group for which this cmdlet imports a module.StringStringnone 1: Get-AzureRMAutomationModuleRemove-AzureRMAutomationModuleSet-AzureRMAutomationModuleRegister-AzureRMAutomationDscNodeRegisters an Azure virtual machine as a DSC node for an Automation account.RegisterAzureAutomationDscNodeThe Register-AzureRMAutomationDscNode cmdlet registers an Azure virtual machine as an Azure PowerShell Desired State Configuration (DSC) node in an Azure Automation account.Register-AzureRMAutomationDscNodeResourceGroupNameSpecifies the name of a resource group. The Automation account with which this cmdlet registers a virtual machine belongs to the resource group that this parameter specifies.StringAutomationAccountNameSpecifies the name of an Automation account in which this cmdlet registers a virtual machine.StringActionAfterRebootSpecifies the action that the virtual machine takes after it restarts. Valid values are: ContinueConfiguration and StopConfiguration. ContinueConfigurationStopConfigurationAllowModuleOverwriteSpecifies whether new configurations that this DSC node downloads from the Azure Automation DSC pull server replace the existing modules already on the target node.BooleanAzureVMLocationSpecifies the location in which this cmdlet registers a virtual machine. To obtain valid locations, use the Get-AzureRMLocation cmdlet. StringAzureVMResourceGroupSpecifies the name of the resource group of the Azure virtual machine that this cmdlet registers.StringConfigurationModeSpecifies the DSC configuration mode. Valid values are:
+-- Dynamic link library, which has a .dll file name extensionThe name of the .zip file, the name of the folder, and the name of the file in the folder must be the same.Specify the .zip file as a URL that this computer can access.New-AzureRmAutomationModuleResourceGroupNameSpecifies the name of a resource group for which this cmdlet imports a module.StringAutomationAccountNameSpecifies the name of the Automation account for which this cmdlet imports a module. StringNameSpecifies the name of the module that this cmdlet imports.StringContentLinkSpecifies the URL of the .zip file that contains a module that this cmdlet imports.UriProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAutomationAccountNameSpecifies the name of the Automation account for which this cmdlet imports a module. StringStringnoneContentLinkSpecifies the URL of the .zip file that contains a module that this cmdlet imports.UriUrinoneNameSpecifies the name of the module that this cmdlet imports.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group for which this cmdlet imports a module.StringStringnone 1: Get-AzureRmAutomationModuleRemove-AzureRmAutomationModuleSet-AzureRmAutomationModuleRegister-AzureRmAutomationDscNodeRegisters an Azure virtual machine as a DSC node for an Automation account.RegisterAzureAutomationDscNodeThe Register-AzureRmAutomationDscNode cmdlet registers an Azure virtual machine as an Azure PowerShell Desired State Configuration (DSC) node in an Azure Automation account.Register-AzureRmAutomationDscNodeResourceGroupNameSpecifies the name of a resource group. The Automation account with which this cmdlet registers a virtual machine belongs to the resource group that this parameter specifies.StringAutomationAccountNameSpecifies the name of an Automation account in which this cmdlet registers a virtual machine.StringActionAfterRebootSpecifies the action that the virtual machine takes after it restarts. Valid values are: ContinueConfiguration and StopConfiguration. ContinueConfigurationStopConfigurationAllowModuleOverwriteSpecifies whether new configurations that this DSC node downloads from the Azure Automation DSC pull server replace the existing modules already on the target node.BooleanAzureVMLocationSpecifies the location in which this cmdlet registers a virtual machine. To obtain valid locations, use the Get-AzureRmLocation cmdlet. StringAzureVMResourceGroupSpecifies the name of the resource group of the Azure virtual machine that this cmdlet registers.StringConfigurationModeSpecifies the DSC configuration mode. Valid values are:
-- ApplyAndMonitor
-- ApplyAndAutocorrect
--- ApplyOnlyApplyAndMonitorApplyAndAutocorrectApplyOnlyConfigurationModeFrequencyMinsSpecifies the frequency, in minutes, at which the background application of DSC attempts to implement the current configuration on the target node.Int32NodeConfigurationNameSpecifies the name of the node configuration that this cmdlet configures the virtual machine to pull from Azure Automation DSC.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileRebootNodeIfNeededSpecifies whether to restart the virtual machine, if needed. BooleanRefreshFrequencyMinsSpecifies the frequency, in minutes, at which the local Configuration Manager contacts the Azure Automation DSC pull server to download the latest node configuration.Int32AzureVMNameSpecifies the name of the Azure virtual machine that this cmdlet registers for management. StringActionAfterRebootSpecifies the action that the virtual machine takes after it restarts. Valid values are: ContinueConfiguration and StopConfiguration. StringStringnoneAllowModuleOverwriteSpecifies whether new configurations that this DSC node downloads from the Azure Automation DSC pull server replace the existing modules already on the target node.BooleanBooleannoneAutomationAccountNameSpecifies the name of an Automation account in which this cmdlet registers a virtual machine.StringStringnoneAzureVMLocationSpecifies the location in which this cmdlet registers a virtual machine. To obtain valid locations, use the Get-AzureRMLocation cmdlet. StringStringnoneAzureVMNameSpecifies the name of the Azure virtual machine that this cmdlet registers for management. StringStringnoneAzureVMResourceGroupSpecifies the name of the resource group of the Azure virtual machine that this cmdlet registers.StringStringnoneConfigurationModeSpecifies the DSC configuration mode. Valid values are:
+-- ApplyOnlyApplyAndMonitorApplyAndAutocorrectApplyOnlyConfigurationModeFrequencyMinsSpecifies the frequency, in minutes, at which the background application of DSC attempts to implement the current configuration on the target node.Int32NodeConfigurationNameSpecifies the name of the node configuration that this cmdlet configures the virtual machine to pull from Azure Automation DSC.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileRebootNodeIfNeededSpecifies whether to restart the virtual machine, if needed. BooleanRefreshFrequencyMinsSpecifies the frequency, in minutes, at which the local Configuration Manager contacts the Azure Automation DSC pull server to download the latest node configuration.Int32AzureVMNameSpecifies the name of the Azure virtual machine that this cmdlet registers for management. StringActionAfterRebootSpecifies the action that the virtual machine takes after it restarts. Valid values are: ContinueConfiguration and StopConfiguration. StringStringnoneAllowModuleOverwriteSpecifies whether new configurations that this DSC node downloads from the Azure Automation DSC pull server replace the existing modules already on the target node.BooleanBooleannoneAutomationAccountNameSpecifies the name of an Automation account in which this cmdlet registers a virtual machine.StringStringnoneAzureVMLocationSpecifies the location in which this cmdlet registers a virtual machine. To obtain valid locations, use the Get-AzureRmLocation cmdlet. StringStringnoneAzureVMNameSpecifies the name of the Azure virtual machine that this cmdlet registers for management. StringStringnoneAzureVMResourceGroupSpecifies the name of the resource group of the Azure virtual machine that this cmdlet registers.StringStringnoneConfigurationModeSpecifies the DSC configuration mode. Valid values are:
-- ApplyAndMonitor
-- ApplyAndAutocorrect
--- ApplyOnlyStringStringnoneConfigurationModeFrequencyMinsSpecifies the frequency, in minutes, at which the background application of DSC attempts to implement the current configuration on the target node.Int32Int32noneNodeConfigurationNameSpecifies the name of the node configuration that this cmdlet configures the virtual machine to pull from Azure Automation DSC.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneRebootNodeIfNeededSpecifies whether to restart the virtual machine, if needed. BooleanBooleannoneRefreshFrequencyMinsSpecifies the frequency, in minutes, at which the local Configuration Manager contacts the Azure Automation DSC pull server to download the latest node configuration.Int32Int32noneResourceGroupNameSpecifies the name of a resource group. The Automation account with which this cmdlet registers a virtual machine belongs to the resource group that this parameter specifies.StringStringnone 1: Get-AzureRMAutomationDscNodeSet-AzureRMAutomationDscNodeUnregister-AzureRMAutomationDscNodeRemove-AzureRMAutomationAccountRemoves an Automation account.RemoveAzureAutomationAccountThe Remove-AzureRMAutomationAccount cmdlet removes an Azure Automation account from a resource group.For more information about Automation accounts, type Get-Help New-AzureRMAutomationAccount.Remove-AzureRMAutomationAccountResourceGroupNameSpecifies the name of the resource group from which this cmdlet removes an Automation account.StringNameSpecifies the name of the Automation account that this cmdlet removes.StringForceForces the command to run without asking for user confirmation.ProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileForceForces the command to run without asking for user confirmation.SwitchParameterSwitchParameternoneNameSpecifies the name of the Automation account that this cmdlet removes.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of the resource group from which this cmdlet removes an Automation account.StringStringnone 1: Get-AzureRMAutomationAccountNew-AzureRMAutomationAccountSet-AzureRMAutomationAccountRemove-AzureRMAutomationModuleRemoves a module from Automation.RemoveAzureAutomationModuleThe Remove-AzureRMAutomationModule cmdlet removes a module from an Automation account in Azure Automation.Remove-AzureRMAutomationModuleResourceGroupNameSpecifies the name of a resource group in which this cmdlet removes a module. StringAutomationAccountNameSpecifies the name of the Automation account from which this cmdlet removes a module.StringNameSpecifies the name of the module that this cmdlet removes.StringForceForces the command to run without asking for user confirmation.ProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAutomationAccountNameSpecifies the name of the Automation account from which this cmdlet removes a module.StringStringnoneForceForces the command to run without asking for user confirmation.SwitchParameterSwitchParameternoneNameSpecifies the name of the module that this cmdlet removes.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group in which this cmdlet removes a module. StringStringnone 1: Get-AzureRMAutomationModuleNew-AzureRMAutomationModuleSet-AzureRMAutomationModuleSet-AzureRMAutomationAccountModifies an Automation account.SetAzureAutomationAccountThe Set-AzureRMAutomationAccount cmdlet modifies an Azure Automation account.For more information about Automation accounts, type Get-Help New-AzureRMAutomationAccount.Set-AzureRMAutomationAccountResourceGroupNameSpecifies the name of a resource group that contains the Automation account that this cmdlet modifies.StringNameSpecifies the name of the Automation account that this cmdlet modifies.StringPlanSpecifies the plan for the Automation account. Valid values are: Basic and Free.FreeBasicProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileTagsSpecifies Automation account tags for the Automation account.IDictionaryNameSpecifies the name of the Automation account that this cmdlet modifies.StringStringnonePlanSpecifies the plan for the Automation account. Valid values are: Basic and Free.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group that contains the Automation account that this cmdlet modifies.StringStringnoneTagsSpecifies Automation account tags for the Automation account.IDictionaryIDictionarynone 1: Get-AzureRMAutomationAccountNew-AzureRMAutomationAccountRemove-AzureRMAutomationAccountSet-AzureRMAutomationDscNodeModifies the node configuration that a DSC node is mapped to.SetAzureAutomationDscNodeThe Set-AzureRMAutomationDscNode cmdlet modifies a PowerShell Desired State Configuration (DSC) node configuration. Azure Automation stores DSC node configuration as a Managed Object Format (MOF) configuration document.Set-AzureRMAutomationDscNodeResourceGroupNameSpecifies the name of a resource group in which this cmdlet modifies a DSC node configuration.StringAutomationAccountNameSpecifies the name of the Automation account that contains the DSC node for which this cmdlet modifies the configuration.StringForceForces the command to run without asking for user confirmation.ProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileIdSpecifies the unique ID of the DSC node for which this cmdlet modifies the configuration.GuidNodeConfigurationNameSpecifies the name of the node configuration to which this cmdlet maps the node.StringAutomationAccountNameSpecifies the name of the Automation account that contains the DSC node for which this cmdlet modifies the configuration.StringStringnoneForceForces the command to run without asking for user confirmation.SwitchParameterSwitchParameternoneIdSpecifies the unique ID of the DSC node for which this cmdlet modifies the configuration.GuidGuidnoneNodeConfigurationNameSpecifies the name of the node configuration to which this cmdlet maps the node.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group in which this cmdlet modifies a DSC node configuration.StringStringnone 1: Get-AzureRMAutomationDscNodeRegister-AzureRMAutomationDscNodeUnregister-AzureRMAutomationDscNodeSet-AzureRMAutomationModuleUpdates a module in Automation.SetAzureAutomationModuleThe Set-AzureRMAutomationModule cmdlet updates a module in Azure Automation. This command accepts a compressed file that has a .zip file name extension. The file contains a folder that includes a file that is one of the following types:
+-- ApplyOnlyStringStringnoneConfigurationModeFrequencyMinsSpecifies the frequency, in minutes, at which the background application of DSC attempts to implement the current configuration on the target node.Int32Int32noneNodeConfigurationNameSpecifies the name of the node configuration that this cmdlet configures the virtual machine to pull from Azure Automation DSC.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneRebootNodeIfNeededSpecifies whether to restart the virtual machine, if needed. BooleanBooleannoneRefreshFrequencyMinsSpecifies the frequency, in minutes, at which the local Configuration Manager contacts the Azure Automation DSC pull server to download the latest node configuration.Int32Int32noneResourceGroupNameSpecifies the name of a resource group. The Automation account with which this cmdlet registers a virtual machine belongs to the resource group that this parameter specifies.StringStringnone 1: Get-AzureRmAutomationDscNodeSet-AzureRmAutomationDscNodeUnregister-AzureRmAutomationDscNodeRemove-AzureRmAutomationAccountRemoves an Automation account.RemoveAzureAutomationAccountThe Remove-AzureRmAutomationAccount cmdlet removes an Azure Automation account from a resource group.For more information about Automation accounts, type Get-Help New-AzureRmAutomationAccount.Remove-AzureRmAutomationAccountResourceGroupNameSpecifies the name of the resource group from which this cmdlet removes an Automation account.StringNameSpecifies the name of the Automation account that this cmdlet removes.StringForceForces the command to run without asking for user confirmation.ProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileForceForces the command to run without asking for user confirmation.SwitchParameterSwitchParameternoneNameSpecifies the name of the Automation account that this cmdlet removes.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of the resource group from which this cmdlet removes an Automation account.StringStringnone 1: Get-AzureRmAutomationAccountNew-AzureRmAutomationAccountSet-AzureRmAutomationAccountRemove-AzureRmAutomationModuleRemoves a module from Automation.RemoveAzureAutomationModuleThe Remove-AzureRmAutomationModule cmdlet removes a module from an Automation account in Azure Automation.Remove-AzureRmAutomationModuleResourceGroupNameSpecifies the name of a resource group in which this cmdlet removes a module. StringAutomationAccountNameSpecifies the name of the Automation account from which this cmdlet removes a module.StringNameSpecifies the name of the module that this cmdlet removes.StringForceForces the command to run without asking for user confirmation.ProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAutomationAccountNameSpecifies the name of the Automation account from which this cmdlet removes a module.StringStringnoneForceForces the command to run without asking for user confirmation.SwitchParameterSwitchParameternoneNameSpecifies the name of the module that this cmdlet removes.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group in which this cmdlet removes a module. StringStringnone 1: Get-AzureRmAutomationModuleNew-AzureRmAutomationModuleSet-AzureRmAutomationModuleSet-AzureRmAutomationAccountModifies an Automation account.SetAzureAutomationAccountThe Set-AzureRmAutomationAccount cmdlet modifies an Azure Automation account.For more information about Automation accounts, type Get-Help New-AzureRmAutomationAccount.Set-AzureRmAutomationAccountResourceGroupNameSpecifies the name of a resource group that contains the Automation account that this cmdlet modifies.StringNameSpecifies the name of the Automation account that this cmdlet modifies.StringPlanSpecifies the plan for the Automation account. Valid values are: Basic and Free.FreeBasicProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileTagsSpecifies Automation account tags for the Automation account.IDictionaryNameSpecifies the name of the Automation account that this cmdlet modifies.StringStringnonePlanSpecifies the plan for the Automation account. Valid values are: Basic and Free.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group that contains the Automation account that this cmdlet modifies.StringStringnoneTagsSpecifies Automation account tags for the Automation account.IDictionaryIDictionarynone 1: Get-AzureRmAutomationAccountNew-AzureRmAutomationAccountRemove-AzureRmAutomationAccountSet-AzureRmAutomationDscNodeModifies the node configuration that a DSC node is mapped to.SetAzureAutomationDscNodeThe Set-AzureRmAutomationDscNode cmdlet modifies a PowerShell Desired State Configuration (DSC) node configuration. Azure Automation stores DSC node configuration as a Managed Object Format (MOF) configuration document.Set-AzureRmAutomationDscNodeResourceGroupNameSpecifies the name of a resource group in which this cmdlet modifies a DSC node configuration.StringAutomationAccountNameSpecifies the name of the Automation account that contains the DSC node for which this cmdlet modifies the configuration.StringForceForces the command to run without asking for user confirmation.ProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileIdSpecifies the unique ID of the DSC node for which this cmdlet modifies the configuration.GuidNodeConfigurationNameSpecifies the name of the node configuration to which this cmdlet maps the node.StringAutomationAccountNameSpecifies the name of the Automation account that contains the DSC node for which this cmdlet modifies the configuration.StringStringnoneForceForces the command to run without asking for user confirmation.SwitchParameterSwitchParameternoneIdSpecifies the unique ID of the DSC node for which this cmdlet modifies the configuration.GuidGuidnoneNodeConfigurationNameSpecifies the name of the node configuration to which this cmdlet maps the node.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group in which this cmdlet modifies a DSC node configuration.StringStringnone 1: Get-AzureRmAutomationDscNodeRegister-AzureRmAutomationDscNodeUnregister-AzureRmAutomationDscNodeSet-AzureRmAutomationModuleUpdates a module in Automation.SetAzureAutomationModuleThe Set-AzureRmAutomationModule cmdlet updates a module in Azure Automation. This command accepts a compressed file that has a .zip file name extension. The file contains a folder that includes a file that is one of the following types:
-- Azure PowerShell module, which has a .psm1 file name extension
-- Azure PowerShell module manifest, which has a .psd1 file name extension
--- Dynamic link library, which has a .dll file name extensionThe name of the .zip file, the name of the folder, and the name of the file in the folder must be the same.Specify the .zip file as a URL that this computer can access.Set-AzureRMAutomationModuleResourceGroupNameSpecifies the name of a resource group for which this cmdlet updates a module.StringAutomationAccountNameSpecifies the name of the Automation account for which this cmdlet updates a module.StringNameSpecifies the name of the module that this cmdlet imports.StringContentLinkUriSpecifies the URL of the .zip file that contains the new version of a module that this cmdlet imports.UriContentLinkVersionSpecifies the version of the module to which this cmdlet updates Automation.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAutomationAccountNameSpecifies the name of the Automation account for which this cmdlet updates a module.StringStringnoneContentLinkUriSpecifies the URL of the .zip file that contains the new version of a module that this cmdlet imports.UriUrinoneContentLinkVersionSpecifies the version of the module to which this cmdlet updates Automation.StringStringnoneNameSpecifies the name of the module that this cmdlet imports.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group for which this cmdlet updates a module.StringStringnone 1: Get-AzureRMAutomationModuleNew-AzureRMAutomationModuleRemove-AzureRMAutomationModuleStart-AzureRMAutomationDscCompilationJobCompiles a DSC configuration in Automation.StartAzureAutomationDscCompilationJobThe Start-AzureRMAutomationDscCompilationJob cmdlet compiles an Azure PowerShell Desired State Configuration (DSC) configuration in Azure Automation. Start-AzureRMAutomationDscCompilationJobResourceGroupNameSpecifies the name of a resource group in which this cmdlet compiles a configuration.StringAutomationAccountNameSpecifies the name of the Automation account that contains the DSC configuration that this cmdlet compiles. StringConfigurationNameSpecifies the name of the DSC configuration that this cmdlet compiles. StringParametersSpecifies a dictionary of parameters that this cmdlet uses to compile the DSC configuration. IDictionaryProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAutomationAccountNameSpecifies the name of the Automation account that contains the DSC configuration that this cmdlet compiles. StringStringnoneConfigurationNameSpecifies the name of the DSC configuration that this cmdlet compiles. StringStringnoneParametersSpecifies a dictionary of parameters that this cmdlet uses to compile the DSC configuration. IDictionaryIDictionarynoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group in which this cmdlet compiles a configuration.StringStringnone 1: Get-AzureRMAutomationDscCompilationJobGet-AzureRMAutomationDscCompilationJobOutputUnregister-AzureRMAutomationDscNodeRemoves a DSC node from management by an Automation account.UnregisterAzureAutomationDscNodeThe Unregister-AzureRMAutomationDscNode cmdlet removes an Azure PowerShell Desired State Configuration (DSC) node from management by an Azure Automation account.Unregister-AzureRMAutomationDscNodeResourceGroupNameSpecifies the name of a resource group in which this cmdlet unregisters a DSC node.StringAutomationAccountNameSpecifies the name of the Automation account from which this cmdlet removes a DSC node.StringForceForces the command to run without asking for user confirmation.ProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileIdSpecifies the unique ID of the DSC node that this cmdlet removes.GuidAutomationAccountNameSpecifies the name of the Automation account from which this cmdlet removes a DSC node.StringStringnoneForceForces the command to run without asking for user confirmation.SwitchParameterSwitchParameternoneIdSpecifies the unique ID of the DSC node that this cmdlet removes.GuidGuidnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group in which this cmdlet unregisters a DSC node.StringStringnone 1: Get-AzureRMAutomationDscNodeRegister-AzureRMAutomationDscNodeSet-AzureRMAutomationDscNode
+-- Dynamic link library, which has a .dll file name extensionThe name of the .zip file, the name of the folder, and the name of the file in the folder must be the same.Specify the .zip file as a URL that this computer can access.Set-AzureRmAutomationModuleResourceGroupNameSpecifies the name of a resource group for which this cmdlet updates a module.StringAutomationAccountNameSpecifies the name of the Automation account for which this cmdlet updates a module.StringNameSpecifies the name of the module that this cmdlet imports.StringContentLinkUriSpecifies the URL of the .zip file that contains the new version of a module that this cmdlet imports.UriContentLinkVersionSpecifies the version of the module to which this cmdlet updates Automation.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAutomationAccountNameSpecifies the name of the Automation account for which this cmdlet updates a module.StringStringnoneContentLinkUriSpecifies the URL of the .zip file that contains the new version of a module that this cmdlet imports.UriUrinoneContentLinkVersionSpecifies the version of the module to which this cmdlet updates Automation.StringStringnoneNameSpecifies the name of the module that this cmdlet imports.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group for which this cmdlet updates a module.StringStringnone 1: Get-AzureRmAutomationModuleNew-AzureRmAutomationModuleRemove-AzureRmAutomationModuleStart-AzureRmAutomationDscCompilationJobCompiles a DSC configuration in Automation.StartAzureAutomationDscCompilationJobThe Start-AzureRmAutomationDscCompilationJob cmdlet compiles an Azure PowerShell Desired State Configuration (DSC) configuration in Azure Automation. Start-AzureRmAutomationDscCompilationJobResourceGroupNameSpecifies the name of a resource group in which this cmdlet compiles a configuration.StringAutomationAccountNameSpecifies the name of the Automation account that contains the DSC configuration that this cmdlet compiles. StringConfigurationNameSpecifies the name of the DSC configuration that this cmdlet compiles. StringParametersSpecifies a dictionary of parameters that this cmdlet uses to compile the DSC configuration. IDictionaryProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAutomationAccountNameSpecifies the name of the Automation account that contains the DSC configuration that this cmdlet compiles. StringStringnoneConfigurationNameSpecifies the name of the DSC configuration that this cmdlet compiles. StringStringnoneParametersSpecifies a dictionary of parameters that this cmdlet uses to compile the DSC configuration. IDictionaryIDictionarynoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group in which this cmdlet compiles a configuration.StringStringnone 1: Get-AzureRmAutomationDscCompilationJobGet-AzureRmAutomationDscCompilationJobOutputUnregister-AzureRmAutomationDscNodeRemoves a DSC node from management by an Automation account.UnregisterAzureAutomationDscNodeThe Unregister-AzureRmAutomationDscNode cmdlet removes an Azure PowerShell Desired State Configuration (DSC) node from management by an Azure Automation account.Unregister-AzureRmAutomationDscNodeResourceGroupNameSpecifies the name of a resource group in which this cmdlet unregisters a DSC node.StringAutomationAccountNameSpecifies the name of the Automation account from which this cmdlet removes a DSC node.StringForceForces the command to run without asking for user confirmation.ProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileIdSpecifies the unique ID of the DSC node that this cmdlet removes.GuidAutomationAccountNameSpecifies the name of the Automation account from which this cmdlet removes a DSC node.StringStringnoneForceForces the command to run without asking for user confirmation.SwitchParameterSwitchParameternoneIdSpecifies the unique ID of the DSC node that this cmdlet removes.GuidGuidnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the name of a resource group in which this cmdlet unregisters a DSC node.StringStringnone 1: Get-AzureRmAutomationDscNodeRegister-AzureRmAutomationDscNodeSet-AzureRmAutomationDscNode
diff --git a/src/ResourceManager/Automation/Commands.Automation/packages.config b/src/ResourceManager/Automation/Commands.Automation/packages.config
index 94bde317b5e4..e35b6970d9d3 100644
--- a/src/ResourceManager/Automation/Commands.Automation/packages.config
+++ b/src/ResourceManager/Automation/Commands.Automation/packages.config
@@ -2,7 +2,7 @@
-
+
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/Commands.AzureBackup.Test.csproj b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/Commands.AzureBackup.Test.csproj
index 0d7daab37859..03148ac58ace 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/Commands.AzureBackup.Test.csproj
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/Commands.AzureBackup.Test.csproj
@@ -36,7 +36,7 @@
- ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.3.0-preview\lib\net45\Microsoft.Azure.Common.Authentication.dll
+ ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.3.1-preview\lib\net45\Microsoft.Azure.Common.Authentication.dllTrue
@@ -130,7 +130,6 @@
-
@@ -172,9 +171,6 @@
Always
-
- Always
- Always
@@ -229,9 +225,6 @@
Always
-
- Always
- Always
@@ -248,7 +241,9 @@
Always
-
+
+
+
@@ -259,7 +254,7 @@
-
- Backup-AzureRMBackupItem
+ Backup-AzureRmBackupItemTrigger backup for a protected item
@@ -20,7 +20,7 @@
- Backup-AzureRMBackupItem
+ Backup-AzureRmBackupItemItem
@@ -103,7 +103,7 @@
PS C:\>
- Get-AzureRMBackupItem -Container $c | Backup-AzureRMBackupItem
+ Get-AzureRmBackupItem -Container $c | Backup-AzureRmBackupItem
@@ -125,7 +125,7 @@ test-vm Backup InProgress 26-Aug-15 12:24:01 PM 01-Jan-01
PS C:\>
- Get-AzureRMBackupItem -Container $c | Backup-AzureRMBackupItem
+ Get-AzureRmBackupItem -Container $c | Backup-AzureRmBackupItem
@@ -149,7 +149,7 @@ test-vm Backup Failed 26-Aug-15 12:30:30 PM 26-Aug-15
- Disable-AzureRMBackupProtection
+ Disable-AzureRmBackupProtectionDisable protection for a protected item
@@ -165,7 +165,7 @@ test-vm Backup Failed 26-Aug-15 12:30:30 PM 26-Aug-15
- Disable-AzureRMBackupProtection
+ Disable-AzureRmBackupProtectionRemoveRecoveryPoints
@@ -291,7 +291,7 @@ test-vm Backup Failed 26-Aug-15 12:30:30 PM 26-Aug-15
- Enable-AzureRMBackupContainerReregistration
+ Enable-AzureRmBackupContainerReregistrationAllow re-registration of the server to connect the server back to the vault and continue the backup points chain.
@@ -308,7 +308,7 @@ test-vm Backup Failed 26-Aug-15 12:30:30 PM 26-Aug-15
- Enable-AzureRMBackupContainerReregistration
+ Enable-AzureRmBackupContainerReregistrationContainer
@@ -391,7 +391,7 @@ test-vm Backup Failed 26-Aug-15 12:30:30 PM 26-Aug-15
- Enable-AzureRMBackupProtection
+ Enable-AzureRmBackupProtectionAssociate an item with a protection policy
@@ -407,7 +407,7 @@ test-vm Backup Failed 26-Aug-15 12:30:30 PM 26-Aug-15
- Enable-AzureRMBackupProtection
+ Enable-AzureRmBackupProtectionPolicy
@@ -507,7 +507,7 @@ test-vm Backup Failed 26-Aug-15 12:30:30 PM 26-Aug-15
PS C:\>
- Get-AzureRMBackupContainer -Type AzureVM -Status Registered -Vault $v | Get-AzureRMBackupItem | Enable-AzureRMBackupProtection -Policy $policies[0]
+ Get-AzureRmBackupContainer -Type AzureVM -Status Registered -Vault $v | Get-AzureRmBackupItem | Enable-AzureRmBackupProtection -Policy $policies[0]
@@ -527,15 +527,15 @@ test-vm ConfigureBackup Completed 26-Aug-15 12:19:49 PM 26-Aug-1
- Get-AzureRMBackupItem
+ Get-AzureRmBackupItem
- Get-AzureRMBackupProtectionPolicy
+ Get-AzureRmBackupProtectionPolicy
- Backup-AzureRMBackupItem
+ Backup-AzureRmBackupItem
@@ -543,7 +543,7 @@ test-vm ConfigureBackup Completed 26-Aug-15 12:19:49 PM 26-Aug-1
- Get-AzureRMBackupContainer
+ Get-AzureRmBackupContainerRetrieves one or more Azure Backup containers that match the filter criteria specified.
@@ -563,7 +563,7 @@ test-vm ConfigureBackup Completed 26-Aug-15 12:19:49 PM 26-Aug-1
- Get-AzureRMBackupContainer
+ Get-AzureRmBackupContainerName
@@ -720,7 +720,7 @@ test-vm ConfigureBackup Completed 26-Aug-15 12:19:49 PM 26-Aug-1
PS C:\>
- Get-AzureRMBackupContainer -vault $v -type Windows
+ Get-AzureRmBackupContainer -vault $v -type WindowsGets a list of all containers of type "Windows" from the specified vault.
@@ -743,7 +743,7 @@ SERVER2.CONTOSO.COM Windows Registered
PS C:\>
- Get-AzureRMBackupContainer -vault $v -type SCDPM -name "DPMSERVER.CONTOSO.COM"
+ Get-AzureRmBackupContainer -vault $v -type SCDPM -name "DPMSERVER.CONTOSO.COM"Gets the container representing a specific DPM server registered to the specified vault.
@@ -765,7 +765,7 @@ DPMSERVER.CONTOSO.COM SCDPM Registered
PS C:\>
- Get-AzureRMBackupContainer -Type AzureVM -Status Registered -Vault $v
+ Get-AzureRmBackupContainer -Type AzureVM -Status Registered -Vault $v
@@ -785,11 +785,11 @@ test-vm AzureVM Registered
- Register-AzureRMBackupContainer
+ Register-AzureRmBackupContainer
- Unregister-AzureRMBackupContainer
+ Unregister-AzureRmBackupContainer
@@ -797,7 +797,7 @@ test-vm AzureVM Registered
- Get-AzureRMBackupItem
+ Get-AzureRmBackupItemGets the items under a container
@@ -809,11 +809,11 @@ test-vm AzureVM Registered
- A container registered to the Azure Backup vault can have one or more items that can be protected. These items are enabled for protection using the Enable-AzureRMBackupProtection commandlet. This commandlet gets all the items under the container and their protection status.
+ A container registered to the Azure Backup vault can have one or more items that can be protected. These items are enabled for protection using the Enable-AzureRmBackupProtection commandlet. This commandlet gets all the items under the container and their protection status.
- Get-AzureRMBackupItem
+ Get-AzureRmBackupItemProtectionStatus
@@ -838,7 +838,7 @@ test-vm AzureVM Registered
Container
- The parent container object for which we are querying the items. Use the Get-AzureRMBackupContainer commandlet to get the list of containers in the vault.
+ The parent container object for which we are querying the items. Use the Get-AzureRmBackupContainer commandlet to get the list of containers in the vault.AzureRMBackupContainer
@@ -891,7 +891,7 @@ test-vm AzureVM Registered
Container
- The parent container object for which we are querying the items. Use the Get-AzureRMBackupContainer commandlet to get the list of containers in the vault.
+ The parent container object for which we are querying the items. Use the Get-AzureRmBackupContainer commandlet to get the list of containers in the vault.AzureRMBackupContainer
@@ -951,7 +951,7 @@ test-vm AzureVM Registered
PS C:\>
- Get-AzureRMBackupContainer -Type AzureVM -Name "test-vm" -Vault $v | Get-AzureRMBackupItem
+ Get-AzureRmBackupContainer -Type AzureVM -Name "test-vm" -Vault $v | Get-AzureRmBackupItem
@@ -973,7 +973,7 @@ test-vm NotProtected 0
PS C:\>
- Get-AzureRMBackupItem -Container $c | select *
+ Get-AzureRmBackupItem -Container $c | select *
@@ -1003,23 +1003,23 @@ Location : southeastasia
- Restore-AzureRMBackupItem
+ Restore-AzureRmBackupItem
- Get-AzureRMBackupContainer
+ Get-AzureRmBackupContainer
- Enable-AzureRMBackupProtection
+ Enable-AzureRmBackupProtection
- Backup-AzureRMBackupItem
+ Backup-AzureRmBackupItem
- Disable-AzureRMBackupProtection
+ Disable-AzureRmBackupProtection
@@ -1027,7 +1027,7 @@ Location : southeastasia
- Get-AzureRMBackupJob
+ Get-AzureRmBackupJobRetrieves a list of jobs or a specific job
@@ -1043,11 +1043,11 @@ Location : southeastasia
- Get-AzureRMBackupJob
+ Get-AzureRmBackupJobVault
- The specific Azure Backup vault object for which the jobs are being retrieved. The vault is the parent container for an Azure Backup job, and any given job must be a part of a specified vault. Use the Get-AzureRMBackupVault to get a list of vaults.
+ The specific Azure Backup vault object for which the jobs are being retrieved. The vault is the parent container for an Azure Backup job, and any given job must be a part of a specified vault. Use the Get-AzureRmBackupVault to get a list of vaults.AzureRMBackupVault
@@ -1120,11 +1120,11 @@ Location : southeastasia
- Get-AzureRMBackupJob
+ Get-AzureRmBackupJobJob
- When you use the -Job parameter, the commandlet fetches the latest status for the job. Identifying the job is done using the details provided in the input object. This input object would also have been returned earlier from Get-AzureRMBackupJob.
+ When you use the -Job parameter, the commandlet fetches the latest status for the job. Identifying the job is done using the details provided in the input object. This input object would also have been returned earlier from Get-AzureRmBackupJob.AzureRMBackupJob
@@ -1141,7 +1141,7 @@ Location : southeastasia
Vault
- The specific Azure Backup vault object for which the jobs are being retrieved. The vault is the parent container for an Azure Backup job, and any given job must be a part of a specified vault. Use the Get-AzureRMBackupVault to get a list of vaults.
+ The specific Azure Backup vault object for which the jobs are being retrieved. The vault is the parent container for an Azure Backup job, and any given job must be a part of a specified vault. Use the Get-AzureRmBackupVault to get a list of vaults.AzureRMBackupVault
@@ -1255,7 +1255,7 @@ Location : southeastasia
Job
- When you use the -Job parameter, the commandlet fetches the latest status for the job. Identifying the job is done using the details provided in the input object. This input object would also have been returned earlier from Get-AzureRMBackupJob.
+ When you use the -Job parameter, the commandlet fetches the latest status for the job. Identifying the job is done using the details provided in the input object. This input object would also have been returned earlier from Get-AzureRmBackupJob.AzureRMBackupJob
@@ -1304,7 +1304,7 @@ Array of AzureRMBackupJob objects
PS C:\>
- Get-AzureRMBackupJob -Vault $v
+ Get-AzureRmBackupJob -Vault $v
@@ -1328,7 +1328,7 @@ test-vm Register Completed 25-Aug-15 3:23:53 PM 25-Aug-15
PS C:\>
- Get-AzureRMBackupJob -Vault $v -Status Completed
+ Get-AzureRmBackupJob -Vault $v -Status Completed
@@ -1350,7 +1350,7 @@ test-vm Register Completed 25-Aug-15 3:23:53 PM 25-Aug-15
PS C:\>
- Get-AzureRMBackupJob -Vault $v -From (Get-Date).AddDays(-7) -Status Failed
+ Get-AzureRmBackupJob -Vault $v -From (Get-Date).AddDays(-7) -Status Failed
@@ -1370,14 +1370,14 @@ test-vm Register Completed 25-Aug-15 3:23:53 PM 25-Aug-15
PS C:\>
- $joblist = Get-AzureRMBackupJob -Vault $v -Status InProgress
+ $joblist = Get-AzureRmBackupJob -Vault $v -Status InProgress
$job = $joblist[0]
while ( $job.Status -ne Completed )
{
Write-Host "Waiting for completion..."
Start-Sleep -s 10
- $job = Get-AzureRMBackupJob -Vault $v -Job $job
+ $job = Get-AzureRmBackupJob -Vault $v -Job $job
}
Write-Host "Done!"
@@ -1404,7 +1404,7 @@ Done!
- Get-AzureRMBackupJobDetails
+ Get-AzureRmBackupJobDetailsGet the details of a job
@@ -1420,7 +1420,7 @@ Done!
- Get-AzureRMBackupJobDetails
+ Get-AzureRmBackupJobDetailsJob
@@ -1437,7 +1437,7 @@ Done!
- Get-AzureRMBackupJobDetails
+ Get-AzureRmBackupJobDetailsVault
@@ -1550,7 +1550,7 @@ Done!
PS C:\>
- $jd = Get-AzureRMBackupJobDetails -Job $j
+ $jd = Get-AzureRmBackupJobDetails -Job $j
PS C:\> $jd.ErrorDetails
@@ -1596,7 +1596,7 @@ PS C:\> $jd.ErrorDetails
- Get-AzureRMBackupProtectionPolicy
+ Get-AzureRmBackupProtectionPolicyFetches the backup policies in a backup vault
@@ -1608,11 +1608,11 @@ PS C:\> $jd.ErrorDetails
- The backup policy is used in the Enable-AzureRMBackupProtection commandlet to enable protection on an item. The policy must be created using the New-AzureRMBackupProtectionPolicy commandlet, or an existing policy can be used. This commandlet gets the list of existing policies in the backup vault.
+ The backup policy is used in the Enable-AzureRmBackupProtection commandlet to enable protection on an item. The policy must be created using the New-AzureRmBackupProtectionPolicy commandlet, or an existing policy can be used. This commandlet gets the list of existing policies in the backup vault.
- Get-AzureRMBackupProtectionPolicy
+ Get-AzureRmBackupProtectionPolicyName
@@ -1712,7 +1712,7 @@ PS C:\> $jd.ErrorDetails
PS C:\>
- Get-AzureRMBackupProtectionPolicy -Vault $v
+ Get-AzureRmBackupProtectionPolicy -Vault $v
@@ -1738,7 +1738,7 @@ test2 AzureVM Daily 26-Aug-15 3:00:0
PS C:\>
- Get-AzureRMBackupProtectionPolicy -Vault $v -Name DefaultPolicy
+ Get-AzureRmBackupProtectionPolicy -Vault $v -Name DefaultPolicy
@@ -1758,15 +1758,15 @@ DefaultPolicy AzureVM Daily 26-Aug-15 12:30:
- New-AzureRMBackupProtectionPolicy
+ New-AzureRmBackupProtectionPolicy
- Enable-AzureRMBackupProtection
+ Enable-AzureRmBackupProtection
- Remove-AzureRMBackupProtectionPolicy
+ Remove-AzureRmBackupProtectionPolicy
@@ -1774,7 +1774,7 @@ DefaultPolicy AzureVM Daily 26-Aug-15 12:30:
- Get-AzureRMBackupRecoveryPoint
+ Get-AzureRmBackupRecoveryPointGet the recovery point(s) for a backed-up item
@@ -1790,7 +1790,7 @@ DefaultPolicy AzureVM Daily 26-Aug-15 12:30:
- Get-AzureRMBackupRecoveryPoint
+ Get-AzureRmBackupRecoveryPointRecoveryPointId
@@ -1891,7 +1891,7 @@ DefaultPolicy AzureVM Daily 26-Aug-15 12:30:
PS C:\>
- Get-AzureRMBackupRecoveryPoint -Item $backupitem
+ Get-AzureRmBackupRecoveryPoint -Item $backupitem
@@ -1915,7 +1915,7 @@ DefaultPolicy AzureVM Daily 26-Aug-15 12:30:
- Get-AzureRMBackupVault
+ Get-AzureRmBackupVaultRetrieves one or more vault objects based on the parameters that are specified.
@@ -1927,11 +1927,11 @@ DefaultPolicy AzureVM Daily 26-Aug-15 12:30:
- The Get-AzureRMBackupVault commandlet retrieves existing Azure Backup vaults and returns objects of type AzurePSBackupVault. The vault object is used in some Azure Backup commandlets as a mandatory parameter.
+ The Get-AzureRmBackupVault commandlet retrieves existing Azure Backup vaults and returns objects of type AzurePSBackupVault. The vault object is used in some Azure Backup commandlets as a mandatory parameter.
- Get-AzureRMBackupVault
+ Get-AzureRmBackupVaultResourceGroupName
@@ -2031,7 +2031,7 @@ DefaultPolicy AzureVM Daily 26-Aug-15 12:30:
PS C:\>
- Get-AzureRMBackupVault
+ Get-AzureRmBackupVault
@@ -2051,7 +2051,7 @@ DefaultPolicy AzureVM Daily 26-Aug-15 12:30:
PS C:\>
- Get-AzureRMBackupVault | Where-Object { $_.Region -eq "westus" }
+ Get-AzureRmBackupVault | Where-Object { $_.Region -eq "westus" }
@@ -2071,7 +2071,7 @@ DefaultPolicy AzureVM Daily 26-Aug-15 12:30:
PS C:\>
- Get-AzureRMBackupVault -Name "myvault"
+ Get-AzureRmBackupVault -Name "myvault"
@@ -2096,7 +2096,7 @@ Storage : GeoRedundant
PS C:\>
- Get-AzureRMBackupVault | Where-Object { $_.Storage –match ‘LocallyRedundant’ } | Measure-Object
+ Get-AzureRmBackupVault | Where-Object { $_.Storage –match ‘LocallyRedundant’ } | Measure-Object
@@ -2119,19 +2119,19 @@ Property :
- New-AzureRMBackupVault
+ New-AzureRmBackupVault
- Set-AzureRMBackupVault
+ Set-AzureRmBackupVault
- Remove-AzureRMBackupVault
+ Remove-AzureRmBackupVault
- Get-AzureRMBackupContainer
+ Get-AzureRmBackupContainer
@@ -2139,7 +2139,7 @@ Property :
- Get-AzureRMBackupVaultCredentials
+ Get-AzureRmBackupVaultCredentialsDownloads the Vault Credentials file to a specified location.
@@ -2151,11 +2151,11 @@ Property :
- To enable hybrid backup scenarios the Vault Credentials file is a critical component. The vault credential file is used to connect a server to the Azure Backup vault and register it. Only after registration can backup data be sent to the vault. The Get-AzureRMBackupVaultCredentials commandlet downloads and places a vault credential file at the location specified by the user.
+ To enable hybrid backup scenarios the Vault Credentials file is a critical component. The vault credential file is used to connect a server to the Azure Backup vault and register it. Only after registration can backup data be sent to the vault. The Get-AzureRmBackupVaultCredentials commandlet downloads and places a vault credential file at the location specified by the user.
- Get-AzureRMBackupVaultCredentials
+ Get-AzureRmBackupVaultCredentialsTargetLocation
@@ -2166,7 +2166,7 @@ Property :
Vault
- The specific Azure Backup vault object for which the Vault Credential file is generated. Use the Get-AzureRMBackupVault to get a list of vaults.
+ The specific Azure Backup vault object for which the Vault Credential file is generated. Use the Get-AzureRmBackupVault to get a list of vaults.AzureRMBackupVault
@@ -2195,7 +2195,7 @@ Property :
Vault
- The specific Azure Backup vault object for which the Vault Credential file is generated. Use the Get-AzureRMBackupVault to get a list of vaults.
+ The specific Azure Backup vault object for which the Vault Credential file is generated. Use the Get-AzureRmBackupVault to get a list of vaults.AzureRMBackupVault
@@ -2258,7 +2258,7 @@ This section details out the type of the objects that you can pipe to the cmdlet
- New-AzureRMBackupProtectionPolicy
+ New-AzureRmBackupProtectionPolicyCreates a PowerShell object that holds backup policy information
@@ -2270,12 +2270,12 @@ This section details out the type of the objects that you can pipe to the cmdlet
- A backup policy defines when and how often the backup of an item is done. This commandlet creates a PowerShell object that holds backup policy information. The backup policy is used as an input to the Enable-AzureRMBackupProtection commandlet.
+ A backup policy defines when and how often the backup of an item is done. This commandlet creates a PowerShell object that holds backup policy information. The backup policy is used as an input to the Enable-AzureRmBackupProtection commandlet.There are 4 types of retention - Daily, Weekly, Monthly, and Yearly. You need to create one object for each type of retention that you plan to use.
- New-AzureRMBackupProtectionPolicy
+ New-AzureRmBackupProtectionPolicyName
@@ -2307,7 +2307,7 @@ This section details out the type of the objects that you can pipe to the cmdlet
RetentionPolicy
- A list of one or more retention policies that are associated with this backup policy. Use the New-AzureRMBackupRetentionPolicyObject to create retention policies.
+ A list of one or more retention policies that are associated with this backup policy. Use the New-AzureRmBackupRetentionPolicyObject to create retention policies.AzureRMBackupRetentionPolicy[]
@@ -2327,7 +2327,7 @@ This section details out the type of the objects that you can pipe to the cmdlet
- New-AzureRMBackupProtectionPolicy
+ New-AzureRmBackupProtectionPolicyName
@@ -2359,7 +2359,7 @@ This section details out the type of the objects that you can pipe to the cmdlet
RetentionPolicy
- A list of one or more retention policies that are associated with this backup policy. Use the New-AzureRMBackupRetentionPolicyObject to create retention policies.
+ A list of one or more retention policies that are associated with this backup policy. Use the New-AzureRmBackupRetentionPolicyObject to create retention policies.AzureRMBackupRetentionPolicy[]
@@ -2379,7 +2379,7 @@ This section details out the type of the objects that you can pipe to the cmdlet
- New-AzureRMBackupProtectionPolicy
+ New-AzureRmBackupProtectionPolicyName
@@ -2418,7 +2418,7 @@ This section details out the type of the objects that you can pipe to the cmdlet
RetentionPolicy
- A list of one or more retention policies that are associated with this backup policy. Use the New-AzureRMBackupRetentionPolicyObject to create retention policies.
+ A list of one or more retention policies that are associated with this backup policy. Use the New-AzureRmBackupRetentionPolicyObject to create retention policies.AzureRMBackupRetentionPolicy[]
@@ -2490,7 +2490,7 @@ This section details out the type of the objects that you can pipe to the cmdlet
RetentionPolicy
- A list of one or more retention policies that are associated with this backup policy. Use the New-AzureRMBackupRetentionPolicyObject to create retention policies.
+ A list of one or more retention policies that are associated with this backup policy. Use the New-AzureRmBackupRetentionPolicyObject to create retention policies.AzureRMBackupRetentionPolicy[]
@@ -2587,10 +2587,10 @@ This section details out the type of the objects that you can pipe to the cmdlet
PS C:\>
- $bp = New-AzureRMBackupProtectionPolicy -Name DailyBackup01 -Type AzureVM -Daily -BackupTime ([datetime]"3:30 PM") -RetentionPolicy ($Daily,$Monthly) -Vault $v
+ $bp = New-AzureRmBackupProtectionPolicy -Name DailyBackup01 -Type AzureVM -Daily -BackupTime ([datetime]"3:30 PM") -RetentionPolicy ($Daily,$Monthly) -Vault $v
- The backup policy in this example has a daily backup time of 3:00 PM, and the backup data is stored as per the $Daily and $Monthly retention policies created using the New-AzureRMBackupRetentionPolicyObject commandlet.
+ The backup policy in this example has a daily backup time of 3:00 PM, and the backup data is stored as per the $Daily and $Monthly retention policies created using the New-AzureRmBackupRetentionPolicyObject commandlet.Name Type ScheduleType BackupTime
@@ -2608,23 +2608,23 @@ DailyBkp AzureVM Daily 26-Aug-15 3:00:0
- New-AzureRMBackupRetentionPolicyObject
+ New-AzureRmBackupRetentionPolicyObject
- Enable-AzureRMBackupProtection
+ Enable-AzureRmBackupProtection
- Get-AzureRMBackupProtectionPolicy
+ Get-AzureRmBackupProtectionPolicy
- Set-AzureRMBackupProtectionPolicy
+ Set-AzureRmBackupProtectionPolicy
- Remove-AzureRMBackupProtectionPolicy
+ Remove-AzureRmBackupProtectionPolicy
@@ -2632,7 +2632,7 @@ DailyBkp AzureVM Daily 26-Aug-15 3:00:0
- New-AzureRMBackupRetentionPolicyObject
+ New-AzureRmBackupRetentionPolicyObjectCreates a PowerShell object that holds retention policy information
@@ -2644,12 +2644,12 @@ DailyBkp AzureVM Daily 26-Aug-15 3:00:0
- A backup policy is associated with at least one retention policy. The retention policy defines how long a recovery point is kept with Azure Backup. This commandlet creates PowerShell objects that hold retention policy information. These retention policy objects are used as inputs to the New-AzureRMBackupProtectionPolicy commandlet, or directly with the Enable-AzureRMBackupProtection commandlet.
+ A backup policy is associated with at least one retention policy. The retention policy defines how long a recovery point is kept with Azure Backup. This commandlet creates PowerShell objects that hold retention policy information. These retention policy objects are used as inputs to the New-AzureRmBackupProtectionPolicy commandlet, or directly with the Enable-AzureRmBackupProtection commandlet.There are 4 types of retention - Daily, Weekly, Monthly, and Yearly. You need to create one object for each type of retention that you plan to use.
- New-AzureRMBackupRetentionPolicyObject
+ New-AzureRmBackupRetentionPolicyObjectDailyRetention
@@ -2673,7 +2673,7 @@ DailyBkp AzureVM Daily 26-Aug-15 3:00:0
- New-AzureRMBackupRetentionPolicyObject
+ New-AzureRmBackupRetentionPolicyObjectWeeklyRetention
@@ -2705,7 +2705,7 @@ DailyBkp AzureVM Daily 26-Aug-15 3:00:0
- New-AzureRMBackupRetentionPolicyObject
+ New-AzureRmBackupRetentionPolicyObjectMonthlyRetentionInDailyFormat
@@ -2737,7 +2737,7 @@ DailyBkp AzureVM Daily 26-Aug-15 3:00:0
- New-AzureRMBackupRetentionPolicyObject
+ New-AzureRmBackupRetentionPolicyObjectMonthlyRetentionInWeeklyFormat
@@ -2776,7 +2776,7 @@ DailyBkp AzureVM Daily 26-Aug-15 3:00:0
- New-AzureRMBackupRetentionPolicyObject
+ New-AzureRmBackupRetentionPolicyObjectYearlyRetentionInDailyFormat
@@ -2815,7 +2815,7 @@ DailyBkp AzureVM Daily 26-Aug-15 3:00:0
- New-AzureRMBackupRetentionPolicyObject
+ New-AzureRmBackupRetentionPolicyObjectYearlyRetentionInWeeklyFormat
@@ -3048,7 +3048,7 @@ DailyBkp AzureVM Daily 26-Aug-15 3:00:0
PS C:\>
- $Daily = New-AzureRMBackupRetentionPolicyObject -DailyRetention -Retention 30
+ $Daily = New-AzureRmBackupRetentionPolicyObject -DailyRetention -Retention 30
PS C:\> $Daily
@@ -3071,7 +3071,7 @@ Daily 30PS C:\>
- $Monthly = New-AzureRMBackupRetentionPolicyObject -MonthlyRetentionInDailyFormat -DaysOfMonth (10, 20) -Retention 12
+ $Monthly = New-AzureRmBackupRetentionPolicyObject -MonthlyRetentionInDailyFormat -DaysOfMonth (10, 20) -Retention 12
PS C:\> $Monthly | select *This policy keeps the backup on the 10th and the 20th of each month for 12 months
@@ -3096,7 +3096,7 @@ RetentionTimes :
- New-AzureRMBackupProtectionPolicy
+ New-AzureRmBackupProtectionPolicy
@@ -3104,7 +3104,7 @@ RetentionTimes :
- New-AzureRMBackupVault
+ New-AzureRmBackupVaultCreates a new Azure Backup vault based on the parameters that are specified. A vault is the start point for all backup operations with Azure Backup.
@@ -3116,15 +3116,15 @@ RetentionTimes :
- The New-AzureRMBackupVault commandlet creates and Azure Backup vault and returns an object of type AzurePSBackupVault that acts as a reference to the vault entity. The vault has some important properties that define the scope of backup – the region and the storage type.
+ The New-AzureRmBackupVault commandlet creates and Azure Backup vault and returns an object of type AzurePSBackupVault that acts as a reference to the vault entity. The vault has some important properties that define the scope of backup – the region and the storage type.
- New-AzureRMBackupVault
+ New-AzureRmBackupVaultResourceGroupName
- Specifies the name of an existing resource group. In order to create a resource group, use the New-AzureRMResourceGroup commandlet. There is no requirement that the Azure ResourceGroup and the Azure Backup vault be in the same region.
+ Specifies the name of an existing resource group. In order to create a resource group, use the New-AzureRmResourceGroup commandlet. There is no requirement that the Azure ResourceGroup and the Azure Backup vault be in the same region.String
@@ -3162,7 +3162,7 @@ RetentionTimes :
ResourceGroupName
- Specifies the name of an existing resource group. In order to create a resource group, use the New-AzureRMResourceGroup commandlet. There is no requirement that the Azure ResourceGroup and the Azure Backup vault be in the same region.
+ Specifies the name of an existing resource group. In order to create a resource group, use the New-AzureRmResourceGroup commandlet. There is no requirement that the Azure ResourceGroup and the Azure Backup vault be in the same region.String
@@ -3258,7 +3258,7 @@ RetentionTimes :
PS C:\>
- New-AzureRMBackupVault –ResourceGroupName “rg1” –Name “vault1” –Region “westus”
+ New-AzureRmBackupVault –ResourceGroupName “rg1” –Name “vault1” –Region “westus”
@@ -3283,7 +3283,7 @@ Storage : GeoRedundant
PS C:\>
- New-AzureRMBackupVault –ResourceGroupName “rg2” –Name “vault2” –Region “westus” –Storage LocallyRedundant
+ New-AzureRmBackupVault –ResourceGroupName “rg2” –Name “vault2” –Region “westus” –Storage LocallyRedundant
@@ -3306,19 +3306,19 @@ Storage : LocallyRedundant
- New-AzureRMResourceGroup
+ New-AzureRmResourceGrouphttps://msdn.microsoft.com/en-us/library/dn654594.aspx
- Get-AzureRMBackupVault
+ Get-AzureRmBackupVault
- Set-AzureRMBackupVault
+ Set-AzureRmBackupVault
- Remove-AzureRMBackupVault
+ Remove-AzureRmBackupVault
@@ -3326,7 +3326,7 @@ Storage : LocallyRedundant
- Register-AzureRMBackupContainer
+ Register-AzureRmBackupContainerRegister the container with the Azure Backup vault
@@ -3342,7 +3342,7 @@ Storage : LocallyRedundant
- Register-AzureRMBackupContainer
+ Register-AzureRmBackupContainerName
@@ -3353,7 +3353,7 @@ Storage : LocallyRedundant
ServiceName
- The cloud service name of the Azure VM to be registered. Typically the cloud service name has a suffix ".cloudapp.net". Do not include the suffix as input to this commandlet! You can use the Get-AzureRMVM commandlet (in the AzureServiceManagement mode) to get the VM information; the service name is the DeploymentName property in the VM object.
+ The cloud service name of the Azure VM to be registered. Typically the cloud service name has a suffix ".cloudapp.net". Do not include the suffix as input to this commandlet! You can use the Get-AzureRmVM commandlet (in the AzureServiceManagement mode) to get the VM information; the service name is the DeploymentName property in the VM object.String
@@ -3373,7 +3373,7 @@ Storage : LocallyRedundant
- Register-AzureRMBackupContainer
+ Register-AzureRmBackupContainerName
@@ -3420,7 +3420,7 @@ Storage : LocallyRedundant
ServiceName
- The cloud service name of the Azure VM to be registered. Typically the cloud service name has a suffix ".cloudapp.net". Do not include the suffix as input to this commandlet! You can use the Get-AzureRMVM commandlet (in the AzureServiceManagement mode) to get the VM information; the service name is the DeploymentName property in the VM object.
+ The cloud service name of the Azure VM to be registered. Typically the cloud service name has a suffix ".cloudapp.net". Do not include the suffix as input to this commandlet! You can use the Get-AzureRmVM commandlet (in the AzureServiceManagement mode) to get the VM information; the service name is the DeploymentName property in the VM object.String
@@ -3505,7 +3505,7 @@ Storage : LocallyRedundant
PS C:\>
- $job = Register-AzureRMBackupContainer -Vault $v -Name "testvm" -ServiceName "testvm"
+ $job = Register-AzureRmBackupContainer -Vault $v -Name "testvm" -ServiceName "testvm"
@@ -3523,7 +3523,7 @@ Storage : LocallyRedundant
- Get-AzureRMVM
+ Get-AzureRmVM
@@ -3531,7 +3531,7 @@ Storage : LocallyRedundant
- Remove-AzureRMBackupProtectionPolicy
+ Remove-AzureRmBackupProtectionPolicyDeletes a backup policy from the vault
@@ -3547,11 +3547,11 @@ Storage : LocallyRedundant
- Remove-AzureRMBackupProtectionPolicy
+ Remove-AzureRmBackupProtectionPolicyProtectionPolicy
- The protection policy object that has information about the policy. Use the Get-AzureRMBackupProtectionPolicy commandlet to get a list of protection policy objects.
+ The protection policy object that has information about the policy. Use the Get-AzureRmBackupProtectionPolicy commandlet to get a list of protection policy objects.AzureRMBackupProtectionPolicy
@@ -3568,7 +3568,7 @@ Storage : LocallyRedundant
ProtectionPolicy
- The protection policy object that has information about the policy. Use the Get-AzureRMBackupProtectionPolicy commandlet to get a list of protection policy objects.
+ The protection policy object that has information about the policy. Use the Get-AzureRmBackupProtectionPolicy commandlet to get a list of protection policy objects.AzureRMBackupProtectionPolicy
@@ -3621,7 +3621,7 @@ Storage : LocallyRedundant
- The policy must not have any associated Items that are protected. If you need to delete the policy, ensure that each associated item is protected with some other policy first. To associate another policy with a backup item, use the Enable-AzureRMBackupProtection commandlet.
+ The policy must not have any associated Items that are protected. If you need to delete the policy, ensure that each associated item is protected with some other policy first. To associate another policy with a backup item, use the Enable-AzureRmBackupProtection commandlet.
@@ -3630,7 +3630,7 @@ Storage : LocallyRedundant
PS C:\>
- Get-AzureRMBackupProtectionPolicy -Vault $v -Name DailyBackup | Remove-AzureRMBackupProtectionPolicy
+ Get-AzureRmBackupProtectionPolicy -Vault $v -Name DailyBackup | Remove-AzureRmBackupProtectionPolicyIn this example, we fetch a policy named "DailyBackup" and pipe the policy object to the Remove commandlet.
@@ -3648,11 +3648,11 @@ Storage : LocallyRedundant
- Get-AzureRMBackupProtectionPolicy
+ Get-AzureRmBackupProtectionPolicy
- New-AzureRMBackupProtectionPolicy
+ New-AzureRmBackupProtectionPolicy
@@ -3660,7 +3660,7 @@ Storage : LocallyRedundant
- Remove-AzureRMBackupVault
+ Remove-AzureRmBackupVaultDeletes the Azure Backup vault object based on the parameters that are specified.
@@ -3672,16 +3672,16 @@ Storage : LocallyRedundant
- The Remove-AzureRMBackupVault commandlet deletes the backup vault. However, before a vault can be removed, it must first be empty – it must contain no backup data or protected items or registered servers. This ensures that a vault cannot be deleted inadvertently; the deletion of a backup vault is a planned operation.
- Use the Remove-AzureRMBackupContainer commandlet to clear up IaaS VM backup data from the vault, or use the Delete-RegisteredServer commandlet to clear up other registered servers and backup data.
+ The Remove-AzureRmBackupVault commandlet deletes the backup vault. However, before a vault can be removed, it must first be empty – it must contain no backup data or protected items or registered servers. This ensures that a vault cannot be deleted inadvertently; the deletion of a backup vault is a planned operation.
+ Use the Remove-AzureRmBackupContainer commandlet to clear up IaaS VM backup data from the vault, or use the Delete-RegisteredServer commandlet to clear up other registered servers and backup data.
- Remove-AzureRMBackupVault
+ Remove-AzureRmBackupVaultVault
- The specific Azure Backup vault object which needs to be removed. Use the Get-AzureRMBackupVault to get a list of vaults.
+ The specific Azure Backup vault object which needs to be removed. Use the Get-AzureRmBackupVault to get a list of vaults.AzureRMBackupVault
@@ -3698,7 +3698,7 @@ Storage : LocallyRedundant
Vault
- The specific Azure Backup vault object which needs to be removed. Use the Get-AzureRMBackupVault to get a list of vaults.
+ The specific Azure Backup vault object which needs to be removed. Use the Get-AzureRmBackupVault to get a list of vaults.AzureRMBackupVault
@@ -3758,7 +3758,7 @@ Storage : LocallyRedundant
PS C:\>
- Get-AzureRMBackupVault -Name "myvault" | Remove-AzureRMBackupVault
+ Get-AzureRmBackupVault -Name "myvault" | Remove-AzureRmBackupVault
@@ -3780,15 +3780,15 @@ Storage : LocallyRedundant
- New-AzureRMBackupVault
+ New-AzureRmBackupVault
- Get-AzureRMBackupVault
+ Get-AzureRmBackupVault
- Set-AzureRMBackupVault
+ Set-AzureRmBackupVault
@@ -3796,7 +3796,7 @@ Storage : LocallyRedundant
- Restore-AzureRMBackupItem
+ Restore-AzureRmBackupItemRestores the data and config for a point in time
@@ -3808,11 +3808,11 @@ Storage : LocallyRedundant
- In order to restore backup data, you need to identify the backed-up item and the recovery point that holds the point-in-time data that needs to be restored. This information is supplied to the Restore-AzureRMBackupItem commandlet to initiate a restore of data from the vault to the customer's account.
+ In order to restore backup data, you need to identify the backed-up item and the recovery point that holds the point-in-time data that needs to be restored. This information is supplied to the Restore-AzureRmBackupItem commandlet to initiate a restore of data from the vault to the customer's account.
- Restore-AzureRMBackupItem
+ Restore-AzureRmBackupItemStorageAccountName
@@ -3914,8 +3914,8 @@ Storage : LocallyRedundant
PS C:\>
- $rp = Get-AzureRMBackupContainer -Type AzureVM -Status Registered -Vault $v | Get-AzureRMBackupItem | Get-AzureRMBackupRecoveryPoint
-PS C:\> Restore-AzureRMBackupItem -StorageAccountName "destaccount" -RecoveryPoint $rp
+ $rp = Get-AzureRmBackupContainer -Type AzureVM -Status Registered -Vault $v | Get-AzureRmBackupItem | Get-AzureRmBackupRecoveryPoint
+PS C:\> Restore-AzureRmBackupItem -StorageAccountName "destaccount" -RecoveryPoint $rp
@@ -3939,7 +3939,7 @@ test-vm Restore InProgress 26-Aug-15 1:14:01 PM 01-Jan-01
- Set-AzureRMBackupProtectionPolicy
+ Set-AzureRmBackupProtectionPolicyUpdate an existing protection policy
@@ -3959,7 +3959,7 @@ test-vm Restore InProgress 26-Aug-15 1:14:01 PM 01-Jan-01
- Set-AzureRMBackupProtectionPolicy
+ Set-AzureRmBackupProtectionPolicyNewName
@@ -3997,7 +3997,7 @@ test-vm Restore InProgress 26-Aug-15 1:14:01 PM 01-Jan-01
- Set-AzureRMBackupProtectionPolicy
+ Set-AzureRmBackupProtectionPolicyNewName
@@ -4008,7 +4008,7 @@ test-vm Restore InProgress 26-Aug-15 1:14:01 PM 01-Jan-01
Daily
- An optional parameter that sets the backup operation to run at a Daily schedule. Refer to New-AzureRMBackupProtectionPolicy for examples.
+ An optional parameter that sets the backup operation to run at a Daily schedule. Refer to New-AzureRmBackupProtectionPolicy for examples.SwitchParameter
@@ -4042,7 +4042,7 @@ test-vm Restore InProgress 26-Aug-15 1:14:01 PM 01-Jan-01
- Set-AzureRMBackupProtectionPolicy
+ Set-AzureRmBackupProtectionPolicyNewName
@@ -4053,7 +4053,7 @@ test-vm Restore InProgress 26-Aug-15 1:14:01 PM 01-Jan-01
Weekly
- An optional parameter that sets the backup operation to run at a Weekly schedule. Refer to New-AzureRMBackupProtectionPolicy for examples.
+ An optional parameter that sets the backup operation to run at a Weekly schedule. Refer to New-AzureRmBackupProtectionPolicy for examples.SwitchParameter
@@ -4074,7 +4074,7 @@ test-vm Restore InProgress 26-Aug-15 1:14:01 PM 01-Jan-01
DaysOfWeek
- An optional parameter that sets the backup operation to run on specific days of the week. Used in conjunction with the -Weekly parameter. Refer to New-AzureRMBackupProtectionPolicy for examples.
+ An optional parameter that sets the backup operation to run on specific days of the week. Used in conjunction with the -Weekly parameter. Refer to New-AzureRmBackupProtectionPolicy for examples.String[]
@@ -4158,7 +4158,7 @@ test-vm Restore InProgress 26-Aug-15 1:14:01 PM 01-Jan-01
Daily
- An optional parameter that sets the backup operation to run at a Daily schedule. Refer to New-AzureRMBackupProtectionPolicy for examples.
+ An optional parameter that sets the backup operation to run at a Daily schedule. Refer to New-AzureRmBackupProtectionPolicy for examples.SwitchParameter
@@ -4170,7 +4170,7 @@ test-vm Restore InProgress 26-Aug-15 1:14:01 PM 01-Jan-01
Weekly
- An optional parameter that sets the backup operation to run at a Weekly schedule. Refer to New-AzureRMBackupProtectionPolicy for examples.
+ An optional parameter that sets the backup operation to run at a Weekly schedule. Refer to New-AzureRmBackupProtectionPolicy for examples.SwitchParameter
@@ -4182,7 +4182,7 @@ test-vm Restore InProgress 26-Aug-15 1:14:01 PM 01-Jan-01
DaysOfWeek
- An optional parameter that sets the backup operation to run on specific days of the week. Used in conjunction with the -Weekly parameter. Refer to New-AzureRMBackupProtectionPolicy for examples.
+ An optional parameter that sets the backup operation to run on specific days of the week. Used in conjunction with the -Weekly parameter. Refer to New-AzureRmBackupProtectionPolicy for examples.String[]
@@ -4229,7 +4229,7 @@ test-vm Restore InProgress 26-Aug-15 1:14:01 PM 01-Jan-01
- New-AzureRMBackupProtectionPolicy
+ New-AzureRmBackupProtectionPolicy
@@ -4237,7 +4237,7 @@ test-vm Restore InProgress 26-Aug-15 1:14:01 PM 01-Jan-01
- Set-AzureRMBackupVault
+ Set-AzureRmBackupVaultChanges the properties of the Azure Backup vault object based on the parameters that are specified.
@@ -4249,11 +4249,11 @@ test-vm Restore InProgress 26-Aug-15 1:14:01 PM 01-Jan-01
- The Set-AzureRMBackupVault commandlet allows you to change the storage type of the backup vault. The other parameters like Region, Name, and ResourceGroupName are not editable.
+ The Set-AzureRmBackupVault commandlet allows you to change the storage type of the backup vault. The other parameters like Region, Name, and ResourceGroupName are not editable.
- Set-AzureRMBackupVault
+ Set-AzureRmBackupVaultStorage
@@ -4264,7 +4264,7 @@ test-vm Restore InProgress 26-Aug-15 1:14:01 PM 01-Jan-01
Vault
- The specific Azure Backup vault object for which the properties need to be updated. Use the Get-AzureRMBackupVault to get a list of vaults.
+ The specific Azure Backup vault object for which the properties need to be updated. Use the Get-AzureRmBackupVault to get a list of vaults.AzureRMBackupVault
@@ -4293,7 +4293,7 @@ test-vm Restore InProgress 26-Aug-15 1:14:01 PM 01-Jan-01
Vault
- The specific Azure Backup vault object for which the properties need to be updated. Use the Get-AzureRMBackupVault to get a list of vaults.
+ The specific Azure Backup vault object for which the properties need to be updated. Use the Get-AzureRmBackupVault to get a list of vaults.AzureRMBackupVault
@@ -4353,7 +4353,7 @@ test-vm Restore InProgress 26-Aug-15 1:14:01 PM 01-Jan-01
PS C:\>
- Get-AzureRMBackupVault –Name “myvault” | Set-AzureRMBackupVault –Storage LocallyRedundant
+ Get-AzureRmBackupVault –Name “myvault” | Set-AzureRmBackupVault –Storage LocallyRedundant
@@ -4371,15 +4371,15 @@ test-vm Restore InProgress 26-Aug-15 1:14:01 PM 01-Jan-01
- New-AzureRMBackupVault
+ New-AzureRmBackupVault
- Get-AzureRMBackupVault
+ Get-AzureRmBackupVault
- Remove-AzureRMBackupVault
+ Remove-AzureRmBackupVault
@@ -4387,7 +4387,7 @@ test-vm Restore InProgress 26-Aug-15 1:14:01 PM 01-Jan-01
- Stop-AzureRMBackupJob
+ Stop-AzureRmBackupJobCancels an ongoing Azure Backup job
@@ -4407,18 +4407,18 @@ test-vm Restore InProgress 26-Aug-15 1:14:01 PM 01-Jan-01
- Stop-AzureRMBackupJob
+ Stop-AzureRmBackupJobVault
- Use the Get-AzureRMBackupVault to get a list of vaults.
+ Use the Get-AzureRmBackupVault to get a list of vaults.AzureRMBackupVaultJobID
- The GUID that uniquely identifies a job in the Azure Backup service. Use the Get-AzureRMBackupJob commandlet to get one or more jobs. From the AzureRMBackupJob object, use the InstanceId field for this value.
+ The GUID that uniquely identifies a job in the Azure Backup service. Use the Get-AzureRmBackupJob commandlet to get one or more jobs. From the AzureRMBackupJob object, use the InstanceId field for this value.String
@@ -4431,7 +4431,7 @@ test-vm Restore InProgress 26-Aug-15 1:14:01 PM 01-Jan-01
- Stop-AzureRMBackupJob
+ Stop-AzureRmBackupJobJob
@@ -4452,7 +4452,7 @@ test-vm Restore InProgress 26-Aug-15 1:14:01 PM 01-Jan-01
Vault
- Use the Get-AzureRMBackupVault to get a list of vaults.
+ Use the Get-AzureRmBackupVault to get a list of vaults.AzureRMBackupVault
@@ -4464,7 +4464,7 @@ test-vm Restore InProgress 26-Aug-15 1:14:01 PM 01-Jan-01
JobID
- The GUID that uniquely identifies a job in the Azure Backup service. Use the Get-AzureRMBackupJob commandlet to get one or more jobs. From the AzureRMBackupJob object, use the InstanceId field for this value.
+ The GUID that uniquely identifies a job in the Azure Backup service. Use the Get-AzureRmBackupJob commandlet to get one or more jobs. From the AzureRMBackupJob object, use the InstanceId field for this value.String
@@ -4536,8 +4536,8 @@ test-vm Restore InProgress 26-Aug-15 1:14:01 PM 01-Jan-01
PS C:\>
- $j = Get-AzureRMBackupJob -Vault $v -Operation Backup
-PS C:\> Stop-AzureRMBackupJob -Vault $v -JobID $j.InstanceId
+ $j = Get-AzureRmBackupJob -Vault $v -Operation Backup
+PS C:\> Stop-AzureRmBackupJob -Vault $v -JobID $j.InstanceId
@@ -4557,9 +4557,9 @@ PS C:\> Stop-AzureRMBackupJob -Vault $v -JobID $j.InstanceIdPS C:\>
- Get-AzureRMBackupJob -Vault $v -Operation Restore | Stop-AzureRMBackupJob
+ Get-AzureRmBackupJob -Vault $v -Operation Restore | Stop-AzureRmBackupJob
- In this example, the AzureRMBackupJob objects returned by the Get-AzureRMBackupJob commandlet are piped to the Stop-AzureRMBackupJob commandlet.
+ In this example, the AzureRMBackupJob objects returned by the Get-AzureRmBackupJob commandlet are piped to the Stop-AzureRmBackupJob commandlet.
@@ -4579,7 +4579,7 @@ PS C:\> Stop-AzureRMBackupJob -Vault $v -JobID $j.InstanceId
- Unregister-AzureRMBackupContainer
+ Unregister-AzureRmBackupContainerUnregisters the specified Windows Server or Azure virtual machine from the Azure Backup vault.
@@ -4595,7 +4595,7 @@ PS C:\> Stop-AzureRMBackupJob -Vault $v -JobID $j.InstanceId
- Unregister-AzureRMBackupContainer
+ Unregister-AzureRmBackupContainerForce
@@ -4696,10 +4696,10 @@ PS C:\> Stop-AzureRMBackupJob -Vault $v -JobID $j.InstanceId
PS C:\>
- $c = Get-AzureRMBackupContainer -vault $v -type Windows -name "server1.contoso.com"
-PS C:\> Unregister-AzureRMBackupContainer -container $c[0]
+ $c = Get-AzureRmBackupContainer -vault $v -type Windows -name "server1.contoso.com"
+PS C:\> Unregister-AzureRmBackupContainer -container $c[0]
- The user first gets the container that needs to be unregistered using the Get-AzureRMBackupContainer commandlet. This container object is passed to the unregister commandlet. This unregisters the specified Windows Server from the Azure Backup vault.
+ The user first gets the container that needs to be unregistered using the Get-AzureRmBackupContainer commandlet. This container object is passed to the unregister commandlet. This unregisters the specified Windows Server from the Azure Backup vault.Unregister Server
@@ -4719,7 +4719,7 @@ This operation will delete all data in the backup vault that is associated with
PS C:\>
- Unregister-AzureRMBackupContainer -container $c –force
+ Unregister-AzureRmBackupContainer -container $c –forceThe -Force option does not ask the user for confirmation before deleting the data and unregistering the server.
@@ -4737,7 +4737,7 @@ This operation will delete all data in the backup vault that is associated with
- Get-AzureRMBackupContainer
+ Get-AzureRmBackupContainer
@@ -4745,7 +4745,7 @@ This operation will delete all data in the backup vault that is associated with
- Wait-AzureRMBackupJob
+ Wait-AzureRmBackupJobWaits for an Azure Backup job to complete
@@ -4762,7 +4762,7 @@ This operation will delete all data in the backup vault that is associated with
- Wait-AzureRMBackupJob
+ Wait-AzureRmBackupJobJob
@@ -4861,7 +4861,7 @@ Array of AzureRMBackupJob objects
- Get-AzureRMBackupJob
+ Get-AzureRmBackupJob
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Properties/Resources.Designer.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Properties/Resources.Designer.cs
index 5f78194dd775..a26fb69fc7f8 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Properties/Resources.Designer.cs
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Properties/Resources.Designer.cs
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
-// Runtime Version:4.0.30319.18449
+// Runtime Version:4.0.30319.34209
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -139,7 +139,7 @@ internal static string BackupItemCmdletCalled {
}
///
- /// Looks up a localized string similar to For daily backup schedule, protection policy cannot have DaysOfWeek param in backup schedule.
+ /// Looks up a localized string similar to For a daily backup schedule, using the DaysOfWeek parameter is not allowed.
///
internal static string BackupScheduleDailyParamException {
get {
@@ -148,7 +148,7 @@ internal static string BackupScheduleDailyParamException {
}
///
- /// Looks up a localized string similar to For weekly backup schedule, DaysOfWeek in backup schedule is mandatory and cannot be empty.
+ /// Looks up a localized string similar to For a weekly backup schedule, using the DaysOfWeek parameter is mandatory.
///
internal static string BackupScheduleWeeklyParamException {
get {
@@ -265,7 +265,7 @@ internal static string CreatingBackupVault {
}
///
- /// Looks up a localized string similar to Only one AzureBackupDailyRetentionPolicy in RetentionPolicies is allowed.
+ /// Looks up a localized string similar to Only one daily retention policy is allowed for a Protection Policy.
///
internal static string DailyRetentionPolicyException {
get {
@@ -274,7 +274,7 @@ internal static string DailyRetentionPolicyException {
}
///
- /// Looks up a localized string similar to For AzureBackupDailyRetentionPolicy , valid values of retention are {0} to {1}.
+ /// Looks up a localized string similar to The daily retention value should be between {0} and {1}.
///
internal static string DailyRetentionPolicyValueException {
get {
@@ -283,7 +283,7 @@ internal static string DailyRetentionPolicyValueException {
}
///
- /// Looks up a localized string similar to For Daily Schedule, AzureBackupDailyRetentionPolicy in RetentionPolicies param is mandatory.
+ /// Looks up a localized string similar to For a daily backup schedule, setting a daily retention policy is mandatory.
///
internal static string DailyScheduleException {
get {
@@ -292,7 +292,7 @@ internal static string DailyScheduleException {
}
///
- /// Looks up a localized string similar to Days of the month in Monthly/Yearly retention is not allowed for weekly backup Schedules.
+ /// Looks up a localized string similar to Using the DaysOfMonth parameter in retention policies is not allowed when weekly backup schedules are used.
///
internal static string DaysOfMonthsNotAllowedinMonthlyYearlyFormat {
get {
@@ -301,7 +301,7 @@ internal static string DaysOfMonthsNotAllowedinMonthlyYearlyFormat {
}
///
- /// Looks up a localized string similar to DaysofTheWeek list in Weekly retention schedule must be same of backup schedule DaysOfTheWeek.
+ /// Looks up a localized string similar to The DaysOfWeek specified in a weekly retention schedule should be same as of DaysOfWeek value specified in the backup schedule.
///
internal static string DaysofTheWeekInWeeklyRetentionException {
get {
@@ -310,7 +310,7 @@ internal static string DaysofTheWeekInWeeklyRetentionException {
}
///
- /// Looks up a localized string similar to DaysOfTheWeek of retention schedule must be same of backup schedule DaysOfTheWeek.
+ /// Looks up a localized string similar to The DaysOfWeek specified in a weekly retention schedule should be same as of DaysOfWeek value specified in the backup schedule.
///
internal static string DaysOfTheWeekOfRetentionScheduleException {
get {
@@ -463,7 +463,7 @@ internal static string MakingClientCall {
}
///
- /// Looks up a localized string similar to For AzureBackupMonthlyRetentionPolicy and RetentionFormat in Days, DaysOfMonth param is mandatory and can not be empty.
+ /// Looks up a localized string similar to For a monthly retention policy specified in days, using the DaysOfMonth parameter is mandatory.
///
internal static string MonthlyRetentionPolicyDaysOfMonthParamException {
get {
@@ -472,7 +472,7 @@ internal static string MonthlyRetentionPolicyDaysOfMonthParamException {
}
///
- /// Looks up a localized string similar to For AzureBackupMonthlyRetentionPolicy and RetentionFormat in Weeks, DaysOfMonth param is not allowed..
+ /// Looks up a localized string similar to For a monthly retention policy specified in weeks, using the DaysOfMonth parameter is not allowed.
///
internal static string MonthlyRetentionPolicyDaysOfMonthsException {
get {
@@ -481,7 +481,7 @@ internal static string MonthlyRetentionPolicyDaysOfMonthsException {
}
///
- /// Looks up a localized string similar to For AzureBackupMonthlyRetentionPolicy and RetentionFormat in Weeks, DaysOfWeek param is mandatory and can not be empty.
+ /// Looks up a localized string similar to For a monthly retention policy specified in weeks, using the DaysOfWeek parameter is mandatory.
///
internal static string MonthlyRetentionPolicyDaysOfWeekException {
get {
@@ -490,7 +490,7 @@ internal static string MonthlyRetentionPolicyDaysOfWeekException {
}
///
- /// Looks up a localized string similar to For AzureBackupMonthlyRetentionPolicy and RetentionFormat in Days, DaysOfWeek or WeekNumber params are not allowed.
+ /// Looks up a localized string similar to For a monthly retention policy specified in days, using the DaysOfWeek and WeekNumber parameters is not allowed.
///
internal static string MonthlyRetentionPolicyDaysOfWeekParamException {
get {
@@ -499,7 +499,7 @@ internal static string MonthlyRetentionPolicyDaysOfWeekParamException {
}
///
- /// Looks up a localized string similar to Only one AzureBackupMonthlyRetentionPolicy in RetentionPolicies is allowed.
+ /// Looks up a localized string similar to Only one monthly retention policy is allowed for a Protection Policy.
///
internal static string MonthlyRetentionPolicyException {
get {
@@ -508,7 +508,7 @@ internal static string MonthlyRetentionPolicyException {
}
///
- /// Looks up a localized string similar to For AzureBackupMonthlyRetentionPolicy , valid values of retention are {0} to {1}.
+ /// Looks up a localized string similar to The monthly retention value should be between {0} and {1}.
///
internal static string MonthlyRetentionPolicyValueException {
get {
@@ -517,7 +517,7 @@ internal static string MonthlyRetentionPolicyValueException {
}
///
- /// Looks up a localized string similar to For AzureBackupMonthlyRetentionPolicy and RetentionFormat in Weeks, WeekNumber param is mandatory and can not be empty.
+ /// Looks up a localized string similar to For a monthly retention policy specified in weeks, using the WeekNumber parameter is mandatory.
///
internal static string MonthlyRetentionPolicyWeekNumException {
get {
@@ -526,7 +526,7 @@ internal static string MonthlyRetentionPolicyWeekNumException {
}
///
- /// Looks up a localized string similar to Days of the week list in Monthly/Yearly retention schedule should be subset of Day of week list in Backup Schedule.
+ /// Looks up a localized string similar to The DaysOfWeek specified for monthly and yearly retention policies should be a subset of the DaysOfWeek value specified in the backup schedule.
///
internal static string MonthlyYearlyRetentionArgumentException {
get {
@@ -580,7 +580,7 @@ internal static string OperationStatus {
}
///
- /// Looks up a localized string similar to A protection policy with the specified name already exists..
+ /// Looks up a localized string similar to A protection policy with the specified name already exists.
///
internal static string PolicyAlreadyExist {
get {
@@ -589,7 +589,7 @@ internal static string PolicyAlreadyExist {
}
///
- /// Looks up a localized string similar to For DaysOfWeek, weekly switch param is required.
+ /// Looks up a localized string similar to The DaysOfWeek parameter should be used in conjunction with the –Weekly switch parameter.
///
internal static string PolicyArgumentException {
get {
@@ -723,6 +723,46 @@ internal static string RegisteringVM {
}
}
+ ///
+ /// Looks up a localized string similar to Remove Protection Policy Message.
+ ///
+ internal static string RemoveProtectionPolicyMessage {
+ get {
+ return ResourceManager.GetString("RemoveProtectionPolicyMessage", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Remove Protection Policy Warning;.
+ ///
+ internal static string RemoveProtectionPolicyWarning {
+ get {
+ return ResourceManager.GetString("RemoveProtectionPolicyWarning", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Disable Protection Message.
+ ///
+ internal static string DisableProtectionMessage
+ {
+ get
+ {
+ return ResourceManager.GetString("DisableProtectionMessage", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Disable Protection Warning;.
+ ///
+ internal static string DisableProtectionWarning
+ {
+ get
+ {
+ return ResourceManager.GetString("DisableProtectionWarning", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Going to retry Discovery if retry count is not exceeded.
///
@@ -949,7 +989,7 @@ internal static string WebException {
}
///
- /// Looks up a localized string similar to For AzureBackupWeeklyRetentionPolicy , DaysOfWeek param is mandatory and can not be empty.
+ /// Looks up a localized string similar to For a weekly retention policy, using the DaysOfWeek parameter is mandatory.
///
internal static string WeeklyRetentionPolicyDaysOfWeekException {
get {
@@ -958,7 +998,7 @@ internal static string WeeklyRetentionPolicyDaysOfWeekException {
}
///
- /// Looks up a localized string similar to Only one AzureBackupWeeklyRetentionPolicy in RetentionPolicies is allowed.
+ /// Looks up a localized string similar to Only one weekly retention policy is allowed for a Protection Policy.
///
internal static string WeeklyRetentionPolicyException {
get {
@@ -967,7 +1007,7 @@ internal static string WeeklyRetentionPolicyException {
}
///
- /// Looks up a localized string similar to For AzureBackupWeeklyRetentionPolicy , valid values of retention are {0} to {1}.
+ /// Looks up a localized string similar to The weekly retention value should be between {0} and {1}.
///
internal static string WeeklyRetentionPolicyValueException {
get {
@@ -976,7 +1016,7 @@ internal static string WeeklyRetentionPolicyValueException {
}
///
- /// Looks up a localized string similar to For Weekly Schedule, AzureBackupWeeklyRetentionPolicy in RetentionPolicies param is mandatory.
+ /// Looks up a localized string similar to For a weekly backup schedule, setting a weekly retention policy is mandatory.
///
internal static string WeeklyScheduleException {
get {
@@ -985,7 +1025,7 @@ internal static string WeeklyScheduleException {
}
///
- /// Looks up a localized string similar to For weekly scheduletype , ScheduleRunDays param is mandatory and can not be empty..
+ /// Looks up a localized string similar to For a weekly backup schedule, using the DaysOfWeek parameter is mandatory.
///
internal static string WeeklyScheduleRunDaysException {
get {
@@ -994,7 +1034,7 @@ internal static string WeeklyScheduleRunDaysException {
}
///
- /// Looks up a localized string similar to For Weekly Schedule, AzureBackupDailyRetentionPolicy in RetentionPolicies param is not allowed.
+ /// Looks up a localized string similar to For a weekly backup schedule, setting a daily retention policy is not allowed.
///
internal static string WeeklyScheduleWithDailyException {
get {
@@ -1003,7 +1043,7 @@ internal static string WeeklyScheduleWithDailyException {
}
///
- /// Looks up a localized string similar to For AzureBackupYearlyRetentionPolicy and RetentionFormat in Weeks, DaysOfMonth param is not allowed.
+ /// Looks up a localized string similar to For a yearly retention policy specified in days, using the MonthsOfYear and DaysOfMonth parameters is not allowed.
///
internal static string YearlyRetentionPolicyDaysOfMonthInWeekFormatException {
get {
@@ -1012,7 +1052,7 @@ internal static string YearlyRetentionPolicyDaysOfMonthInWeekFormatException {
}
///
- /// Looks up a localized string similar to For AzureBackupYearlyRetentionPolicy and RetentionFormat in Days, DaysOfMonth param is mandatory and can not be empty.
+ /// Looks up a localized string similar to For a yearly retention policy specified in days, using the MonthsOfYear and DaysOfMonth parameters is mandatory.
///
internal static string YearlyRetentionPolicyDaysOfMonthParamException {
get {
@@ -1021,7 +1061,7 @@ internal static string YearlyRetentionPolicyDaysOfMonthParamException {
}
///
- /// Looks up a localized string similar to For AzureBackupYearlyRetentionPolicy and RetentionFormat in Weeks, DaysOfWeek param is mandatory and can not be empty.
+ /// Looks up a localized string similar to For a yearly retention policy specified in weeks, using the DaysOfWeek and WeekNumber parameters is mandatory.
///
internal static string YearlyRetentionPolicyDaysOfWeekInWeeksFormatParamException {
get {
@@ -1030,7 +1070,7 @@ internal static string YearlyRetentionPolicyDaysOfWeekInWeeksFormatParamExceptio
}
///
- /// Looks up a localized string similar to For AzureBackupYearlyRetentionPolicy and RetentionFormat in Days, DaysOfWeek or WeekNumber params are not allowed.
+ /// Looks up a localized string similar to For a yearly retention policy specified in days, using the DaysOfWeek and WeekNumber parameters is not allowed.
///
internal static string YearlyRetentionPolicyDaysOfWeekParamException {
get {
@@ -1039,7 +1079,7 @@ internal static string YearlyRetentionPolicyDaysOfWeekParamException {
}
///
- /// Looks up a localized string similar to Only one AzureBackupYearlyRetentionPolicy in RetentionPolicies is allowed.
+ /// Looks up a localized string similar to Only one yearly retention policy is allowed for a Protection Policy.
///
internal static string YearlyRetentionPolicyException {
get {
@@ -1048,7 +1088,7 @@ internal static string YearlyRetentionPolicyException {
}
///
- /// Looks up a localized string similar to For AzureBackupYearlyRetentionPolicy and RetentionFormat in days, MonthsOfYear param is mandatory and can not be empty.
+ /// Looks up a localized string similar to For a yearly retention policy specified in days, using the MonthsOfYear and DaysOfMonth parameters is mandatory.
///
internal static string YearlyRetentionPolicyMonthOfYearParamException {
get {
@@ -1057,7 +1097,7 @@ internal static string YearlyRetentionPolicyMonthOfYearParamException {
}
///
- /// Looks up a localized string similar to For AzureBackupYearlyRetentionPolicy , valid values of retention are {0} to {1}.
+ /// Looks up a localized string similar to Yearly retention value should be between {0} and {1}.
///
internal static string YearlyRetentionPolicyValueException {
get {
@@ -1066,7 +1106,7 @@ internal static string YearlyRetentionPolicyValueException {
}
///
- /// Looks up a localized string similar to For AzureBackupYearlyRetentionPolicy and RetentionFormat in Weeks, WeekNumber param is mandatory and can not be empty.
+ /// Looks up a localized string similar to For a yearly retention policy specified in weeks, using the DaysOfWeek and WeekNumber parameters is mandatory.
///
internal static string YearlyRetentionPolicyWeekNumParamException {
get {
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Properties/Resources.resx b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Properties/Resources.resx
index b6bca7072396..2cd8f7ffdf93 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Properties/Resources.resx
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Properties/Resources.resx
@@ -493,4 +493,16 @@ Please contact Microsoft for further assistant.
For a yearly retention policy specified in weeks, using the DaysOfWeek and WeekNumber parameters is mandatoryScrubbed
+
+ Disabling protection for the item
+
+
+ Are you sure you want to disable protection for the item '{0}'
+
+
+ Removing the protection policy
+
+
+ Are you sure you want to remove the protection policy '{0}'
+
\ No newline at end of file
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/packages.config b/src/ResourceManager/AzureBackup/Commands.AzureBackup/packages.config
index 370e6034616d..ec875e2b5092 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/packages.config
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/packages.config
@@ -2,7 +2,7 @@
-
+
diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/BatchTestHelpers.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/BatchTestHelpers.cs
index 4ad820aa28e4..c1ee935411bd 100644
--- a/src/ResourceManager/AzureBatch/Commands.Batch.Test/BatchTestHelpers.cs
+++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/BatchTestHelpers.cs
@@ -12,26 +12,16 @@
// limitations under the License.
// ----------------------------------------------------------------------------------
-using System.IO;
using System.Linq;
using System.Net;
-using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Azure.Batch;
-using Microsoft.Azure.Batch.Common;
using Microsoft.Azure.Batch.Protocol;
-using Microsoft.Azure.Commands.Batch.Models;
-using Microsoft.Azure.Commands.Batch.Test.ScenarioTests;
-using Microsoft.Azure.Management.Batch;
using Microsoft.Azure.Management.Batch.Models;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
-using Microsoft.Azure.Management.Resources;
-using Microsoft.Azure.Management.Resources.Models;
-using Microsoft.Azure.Test.HttpRecorder;
-using Microsoft.WindowsAzure.Storage.Shared.Protocol;
using Xunit;
using ProxyModels = Microsoft.Azure.Batch.Protocol.Models;
@@ -114,16 +104,22 @@ public static void AssertBatchAccountContextsAreEqual(BatchAccountContext contex
/// Creates a RequestInterceptor that does not contact the Batch Service but instead uses the supplied response body.
///
/// The response the interceptor should return. If none is specified, then a new instance of the response type is instantiated.
+ /// An action to perform on the request.
/// The type of the request parameters.
/// The type of the expected response.
- public static RequestInterceptor CreateNoOpInterceptor(TResponse responseToUse = null)
+ public static RequestInterceptor CreateFakeServiceResponseInterceptor(TResponse responseToUse = null,
+ Action> requestAction = null)
where TParameters : ProxyModels.BatchParameters
where TResponse : ProxyModels.BatchOperationResponse, new()
{
RequestInterceptor interceptor = new RequestInterceptor((baseRequest) =>
{
- BatchRequest request =
- (BatchRequest)baseRequest;
+ BatchRequest request = (BatchRequest)baseRequest;
+
+ if (requestAction != null)
+ {
+ requestAction(request);
+ }
request.ServiceRequestFunc = (cancellationToken) =>
{
@@ -140,12 +136,12 @@ public static RequestInterceptor CreateNoOpInterceptor(T
/// The interceptor must handle both request types since it's possible for one OM node file method to perform both REST APIs.
///
/// The name of the file to put in the response body.
- public static RequestInterceptor CreateNoOpGetFileAndPropertiesInterceptor(string fileName)
+ public static RequestInterceptor CreateFakGetFileAndPropertiesResponseInterceptor(string fileName)
{
RequestInterceptor interceptor = new RequestInterceptor((baseRequest) =>
{
BatchRequest fileRequest = baseRequest as
- BatchRequest;
+ BatchRequest;
if (fileRequest != null)
{
@@ -401,6 +397,106 @@ public static ProxyModels.NodeFileListResponse CreateNodeFileListResponse(IEnume
return response;
}
+ ///
+ /// Fabricates a CloudJob that's in the bound state
+ ///
+ public static CloudJob CreateFakeBoundJob(BatchAccountContext context)
+ {
+ string jobId = "testJob";
+
+ RequestInterceptor interceptor = new RequestInterceptor((baseRequest) =>
+ {
+ BatchRequest request =
+ (BatchRequest)baseRequest;
+
+ request.ServiceRequestFunc = (cancellationToken) =>
+ {
+ ProxyModels.CloudJobGetResponse response = new ProxyModels.CloudJobGetResponse();
+ response.Job = new ProxyModels.CloudJob(jobId, new ProxyModels.PoolInformation());
+
+ Task task = Task.FromResult(response);
+ return task;
+ };
+ });
+
+ return context.BatchOMClient.JobOperations.GetJob(jobId, additionalBehaviors: new BatchClientBehavior[] { interceptor });
+ }
+
+ ///
+ /// Fabricates a CloudJobSchedule that's in the bound state
+ ///
+ public static CloudJobSchedule CreateFakeBoundJobSchedule(BatchAccountContext context)
+ {
+ string jobScheduleId = "testJobSchedule";
+
+ RequestInterceptor interceptor = new RequestInterceptor((baseRequest) =>
+ {
+ BatchRequest request =
+ (BatchRequest)baseRequest;
+
+ request.ServiceRequestFunc = (cancellationToken) =>
+ {
+ ProxyModels.CloudJobScheduleGetResponse response = new ProxyModels.CloudJobScheduleGetResponse();
+ response.JobSchedule = new ProxyModels.CloudJobSchedule(jobScheduleId, new ProxyModels.Schedule(), new ProxyModels.JobSpecification());
+
+ Task task = Task.FromResult(response);
+ return task;
+ };
+ });
+
+ return context.BatchOMClient.JobScheduleOperations.GetJobSchedule(jobScheduleId, additionalBehaviors: new BatchClientBehavior[] { interceptor });
+ }
+
+ ///
+ /// Fabricates a CloudPool that's in the bound state
+ ///
+ public static CloudPool CreateFakeBoundPool(BatchAccountContext context)
+ {
+ string poolId = "testPool";
+
+ RequestInterceptor interceptor = new RequestInterceptor((baseRequest) =>
+ {
+ BatchRequest request =
+ (BatchRequest)baseRequest;
+
+ request.ServiceRequestFunc = (cancellationToken) =>
+ {
+ ProxyModels.CloudPoolGetResponse response = new ProxyModels.CloudPoolGetResponse();
+ response.Pool = new ProxyModels.CloudPool(poolId, "small", "4");
+
+ Task task = Task.FromResult(response);
+ return task;
+ };
+ });
+
+ return context.BatchOMClient.PoolOperations.GetPool(poolId, additionalBehaviors: new BatchClientBehavior[] { interceptor });
+ }
+
+ ///
+ /// Fabricates a CloudTask that's in the bound state
+ ///
+ public static CloudTask CreateFakeBoundTask(BatchAccountContext context)
+ {
+ string taskId = "testTask";
+
+ RequestInterceptor interceptor = new RequestInterceptor((baseRequest) =>
+ {
+ BatchRequest request =
+ (BatchRequest)baseRequest;
+
+ request.ServiceRequestFunc = (cancellationToken) =>
+ {
+ ProxyModels.CloudTaskGetResponse response = new ProxyModels.CloudTaskGetResponse();
+ response.Task = new ProxyModels.CloudTask(taskId, "cmd /c dir /s");
+
+ Task task = Task.FromResult(response);
+ return task;
+ };
+ });
+
+ return context.BatchOMClient.JobOperations.GetTask("jobId", taskId, additionalBehaviors: new BatchClientBehavior[] { interceptor });
+ }
+
///
/// Uses Reflection to set a property value on an object. Can be used to bypass restricted set accessors.
///
diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/Commands.Batch.Test.csproj b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Commands.Batch.Test.csproj
index 43152a12633a..497039704b5f 100644
--- a/src/ResourceManager/AzureBatch/Commands.Batch.Test/Commands.Batch.Test.csproj
+++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Commands.Batch.Test.csproj
@@ -51,7 +51,7 @@
..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.dll
- ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.3.0-preview\lib\net45\Microsoft.Azure.Common.Authentication.dll
+ ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.3.1-preview\lib\net45\Microsoft.Azure.Common.Authentication.dllTrue
@@ -178,17 +178,20 @@
+
+
+
@@ -196,6 +199,7 @@
+
@@ -220,6 +224,7 @@
+
@@ -311,6 +316,9 @@
Always
+
+ Always
+ Always
@@ -395,6 +403,9 @@
Always
+
+ Always
+ Always
@@ -428,6 +439,9 @@
Always
+
+ Always
+ Always
@@ -485,6 +499,9 @@
PreserveNewest
+
+ Always
+ Always
@@ -512,8 +529,15 @@
Always
+
+ Always
+
+
+ {5ee72c53-1720-4309-b54b-5fb79703195f}
+ Commands.Common
+ {3819d8a7-c62c-4c47-8ddd-0332d9ce1252}Commands.ResourceManager.Common
@@ -544,7 +568,7 @@
-
- Get-AzureRMBatchAccountKeys
+ Get-AzureRmBatchAccountKeysGets the specified key of the specified Batch accounts under the current subscription.
@@ -15,11 +15,11 @@
- The Get-AzureRMBatchAccountKeys cmdlet gets the specified key of the specified Azure Batch accounts under the current subscription.
+ The Get-AzureRmBatchAccountKeys cmdlet gets the specified key of the specified Azure Batch accounts under the current subscription.
- Get-AzureRMBatchAccountKeys
+ Get-AzureRmBatchAccountKeysAccountName
@@ -133,7 +133,7 @@
- New-AzureRMBatchAccountKey
+ New-AzureRmBatchAccountKey
@@ -144,7 +144,7 @@
- Get-AzureRMBatchAccount
+ Get-AzureRmBatchAccountGets a Batch account under the current subscription.
@@ -156,11 +156,11 @@
- The Get-AzureRMBatchAccount cmdlet gets an Azure Batch account under the current subscription. You can use the AccountName parameter to get a single account, or you can use the ResourceGroupName parameter to get accounts under that resource group.
+ The Get-AzureRmBatchAccount cmdlet gets an Azure Batch account under the current subscription. You can use the AccountName parameter to get a single account, or you can use the ResourceGroupName parameter to get accounts under that resource group.
- Get-AzureRMBatchAccount
+ Get-AzureRmBatchAccountAccountName
@@ -283,7 +283,7 @@
- PS C:\>Get-AzureRMBatchAccount -AccountName "pfuller"
+ PS C:\>Get-AzureRmBatchAccount -AccountName "pfuller"
AccountName Location ResourceGroupName Tags TaskTenantUrl
----------- -------- ----------------- ---- -------------
pfuller westus CmdletExampleRG https://pfuller.westus.batch.azure.com
@@ -305,7 +305,7 @@ pfuller westus CmdletExampleRG https:
- PS C:\>Get-AzureRMBatchAccount -ResourceGroupName "CmdletExampleRG"
+ PS C:\>Get-AzureRmBatchAccount -ResourceGroupName "CmdletExampleRG"
AccountName Location ResourceGroupName Tags TaskTenantUrl
----------- -------- ----------------- ---- -------------
cmdletexample westus CmdletExampleRG https://cmdletexample.westus.batch.azure.com
@@ -325,15 +325,15 @@ cmdletexample2 westus CmdletExampleRG https:
- New-AzureRMBatchAccount
+ New-AzureRmBatchAccount
- Remove-AzureRMBatchAccount
+ Remove-AzureRmBatchAccount
- Set-AzureRMBatchAccount
+ Set-AzureRmBatchAccount
@@ -385,7 +385,7 @@ cmdletexample2 westus CmdletExampleRG https:
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -423,7 +423,7 @@ cmdletexample2 westus CmdletExampleRG https:
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -461,7 +461,7 @@ cmdletexample2 westus CmdletExampleRG https:
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -471,7 +471,7 @@ cmdletexample2 westus CmdletExampleRG https:
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -613,7 +613,7 @@ CertificateReferences :
Errors :
- This command gets the compute node that has the ID tvm-2316545714_1-20150725t213220z from the pool that has the ID Pool06. Use the Get-AzureRMBatchAccountKeys cmdlet to assign a context to the $Context variable.
+ This command gets the compute node that has the ID tvm-2316545714_1-20150725t213220z from the pool that has the ID Pool06. Use the Get-AzureRmBatchAccountKeys cmdlet to assign a context to the $Context variable.
@@ -786,7 +786,7 @@ Errors :
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet. BatchAccountContext
@@ -810,7 +810,7 @@ Errors :
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet. BatchAccountContext
@@ -820,7 +820,7 @@ Errors :
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet. BatchAccountContext
@@ -1064,7 +1064,7 @@ Url : https://cmdletexample.westus.batch.azure.com/jobsc
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -1088,7 +1088,7 @@ Url : https://cmdletexample.westus.batch.azure.com/jobsc
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -1126,7 +1126,7 @@ Url : https://cmdletexample.westus.batch.azure.com/jobsc
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -1136,7 +1136,7 @@ Url : https://cmdletexample.westus.batch.azure.com/jobsc
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -1374,7 +1374,7 @@ Url : https://cmdletexample.westus.batch.azure.com/jobs/
- Get-AzureRMBatchAccountKeys
+ Get-AzureRmBatchAccountKeys
@@ -1441,7 +1441,7 @@ Url : https://cmdletexample.westus.batch.azure.com/jobs/
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -1465,7 +1465,7 @@ Url : https://cmdletexample.westus.batch.azure.com/jobs/
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -1531,7 +1531,7 @@ Url : https://cmdletexample.westus.batch.azure.com/jobs/
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -1576,7 +1576,7 @@ Url : https://cmdletexample.westus.batch.azure.com/jobs/
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -1607,7 +1607,7 @@ Url : https://cmdletexample.westus.batch.azure.com/jobs/
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -1638,7 +1638,7 @@ Url : https://cmdletexample.westus.batch.azure.com/jobs/
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -1655,7 +1655,7 @@ Url : https://cmdletexample.westus.batch.azure.com/jobs/
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -1819,7 +1819,7 @@ Url : https://cmdletexample.westus.batch.azure.com/jobs/
PS C:\>Get-AzureBatchNodeFileContent -JobId "Job01" -TaskId "Task01" -Name "StdOut.txt" -DestinationPath "E:\PowerShell\StdOut.txt" -BatchContext $Context
- This command gets the node file that is named StdOut.txt, and saves it to the E:\PowerShell\StdOut.txt file path on the local computer. The StdOut.txt node file is associated with task that has the ID Task01 for the job that has the ID Job01. Use the Get-AzureRMBatchAccountKeys cmdlet to assign a context to the $Context variable.
+ This command gets the node file that is named StdOut.txt, and saves it to the E:\PowerShell\StdOut.txt file path on the local computer. The StdOut.txt node file is associated with task that has the ID Task01 for the job that has the ID Job01. Use the Get-AzureRmBatchAccountKeys cmdlet to assign a context to the $Context variable.
@@ -1931,7 +1931,7 @@ PS C:\> Get-AzureBatchNodeFileContent -PoolId "Pool01" -ComputeNodeId "Comput
- Get-AzureRMBatchAccountKeys
+ Get-AzureRmBatchAccountKeys
@@ -1994,7 +1994,7 @@ PS C:\> Get-AzureBatchNodeFileContent -PoolId "Pool01" -ComputeNodeId "Comput
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -2031,7 +2031,7 @@ PS C:\> Get-AzureBatchNodeFileContent -PoolId "Pool01" -ComputeNodeId "Comput
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -2069,7 +2069,7 @@ PS C:\> Get-AzureBatchNodeFileContent -PoolId "Pool01" -ComputeNodeId "Comput
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -2127,7 +2127,7 @@ PS C:\> Get-AzureBatchNodeFileContent -PoolId "Pool01" -ComputeNodeId "Comput
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -2178,7 +2178,7 @@ PS C:\> Get-AzureBatchNodeFileContent -PoolId "Pool01" -ComputeNodeId "Comput
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -2222,7 +2222,7 @@ PS C:\> Get-AzureBatchNodeFileContent -PoolId "Pool01" -ComputeNodeId "Comput
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -2232,7 +2232,7 @@ PS C:\> Get-AzureBatchNodeFileContent -PoolId "Pool01" -ComputeNodeId "Comput
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -2424,7 +2424,7 @@ IsDirectory Name Properties Url
False StdOut.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso...
- This command gets the properties of the StdOut.txt node file associated with the task that has the ID Task26 in the job that has the ID Job-000001. Use the Get-AzureRMBatchAccountKeys cmdlet to assign a context to the $Context variable.
+ This command gets the properties of the StdOut.txt node file associated with the task that has the ID Task26 in the job that has the ID Job-000001. Use the Get-AzureRmBatchAccountKeys cmdlet to assign a context to the $Context variable.
@@ -2563,7 +2563,7 @@ True workitems https://cmdletexample.westus.Batch.c
- Get-AzureRMBatchAccountKeys
+ Get-AzureRmBatchAccountKeys
@@ -2623,7 +2623,7 @@ True workitems https://cmdletexample.westus.Batch.c
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -2647,7 +2647,7 @@ True workitems https://cmdletexample.westus.Batch.c
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -2657,7 +2657,7 @@ True workitems https://cmdletexample.westus.Batch.c
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -2849,7 +2849,7 @@ VirtualMachineSize : small
- Get-AzureRMBatchAccountKeys
+ Get-AzureRmBatchAccountKeys
@@ -2909,7 +2909,7 @@ VirtualMachineSize : small
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -2947,7 +2947,7 @@ VirtualMachineSize : small
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -2978,7 +2978,7 @@ VirtualMachineSize : small
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -3009,7 +3009,7 @@ VirtualMachineSize : small
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -3026,7 +3026,7 @@ VirtualMachineSize : small
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -3154,7 +3154,7 @@ VirtualMachineSize : small
PS C:\>Get-AzureBatchRemoteDesktopProtocolFile -PoolId "Pool06" -ComputeNodeId "ComputeNode01" -DestinationPath "C:\PowerShell\ComputeNode01.rdp" -BatchContext $Context
- This command gets an RDP file from the compute node that has the ID ComputeNode01 in the pool that has the ID Pool06. The command saves the .rdp file as C:\PowerShell\MyComputeNode.rdp. Use the Get-AzureRMBatchAccountKeys cmdlet to assign a context to the $Context variable.
+ This command gets an RDP file from the compute node that has the ID ComputeNode01 in the pool that has the ID Pool06. The command saves the .rdp file as C:\PowerShell\MyComputeNode.rdp. Use the Get-AzureRmBatchAccountKeys cmdlet to assign a context to the $Context variable.
@@ -3207,7 +3207,7 @@ VirtualMachineSize : small
- Get-AzureRMBatchAccountKeys
+ Get-AzureRmBatchAccountKeys
@@ -3270,7 +3270,7 @@ VirtualMachineSize : small
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -3301,7 +3301,7 @@ VirtualMachineSize : small
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -3339,7 +3339,7 @@ VirtualMachineSize : small
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -3349,7 +3349,7 @@ VirtualMachineSize : small
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -3564,7 +3564,7 @@ Url : https://cmdletexample.westus.batch.azure.com/jobs/
- Get-AzureRMBatchAccountKeys
+ Get-AzureRmBatchAccountKeys
@@ -3587,7 +3587,7 @@ Url : https://cmdletexample.westus.batch.azure.com/jobs/
- New-AzureRMBatchAccountKey
+ New-AzureRmBatchAccountKeyRegenerates the specified key of the specified Batch account.
@@ -3599,11 +3599,11 @@ Url : https://cmdletexample.westus.batch.azure.com/jobs/
- The New-AzureRMBatchAccountKey cmdlet regenerates the specified key of the specified Azure Batch account. The cmdlet outputs a BatchAccountContext object with its PrimaryAccountKey and SecondaryAccountKey properties populated with the latest access keys.
+ The New-AzureRmBatchAccountKey cmdlet regenerates the specified key of the specified Azure Batch account. The cmdlet outputs a BatchAccountContext object with its PrimaryAccountKey and SecondaryAccountKey properties populated with the latest access keys.
- New-AzureRMBatchAccountKey
+ New-AzureRmBatchAccountKeyAccountName
@@ -3729,7 +3729,7 @@ Url : https://cmdletexample.westus.batch.azure.com/jobs/
- PS C:\>New-AzureRMBatchAccountKey -AccountName "CmdletExample" -KeyType "Primary"
+ PS C:\>New-AzureRmBatchAccountKey -AccountName "CmdletExample" -KeyType "Primary"
AccountName Location ResourceGroupName Tags TaskTenantUrl
----------- -------- ----------------- ---- -------------
cmdletexample westus CmdletExample https://batch.core.contoso.net
@@ -3748,7 +3748,7 @@ cmdletexample westus CmdletExample https:
- Get-AzureRMBatchAccountKeys
+ Get-AzureRmBatchAccountKeys
@@ -3759,7 +3759,7 @@ cmdletexample westus CmdletExample https:
- New-AzureRMBatchAccount
+ New-AzureRmBatchAccountCreates a new Batch account.
@@ -3771,11 +3771,11 @@ cmdletexample westus CmdletExample https:
- The New-AzureRMBatchAccount cmdlet creates a new Azure Batch account under the specified resource group and location.
+ The New-AzureRmBatchAccount cmdlet creates a new Azure Batch account under the specified resource group and location.
- New-AzureRMBatchAccount
+ New-AzureRmBatchAccountAccountName
@@ -3917,7 +3917,7 @@ cmdletexample westus CmdletExample https:
- PS C:\>New-AzureRMBatchAccount -AccountName "cmdletexample" -ResourceGroupName "CmdletExampleRG" -Location "WestUS"
+ PS C:\>New-AzureRmBatchAccount -AccountName "cmdletexample" -ResourceGroupName "CmdletExampleRG" -Location "WestUS"
AccountName Location ResourceGroupName Tags TaskTenantUrl
----------- -------- ----------------- ---- -------------
cmdletexample WestUS CmdletExampleRG https://batch.core.contoso.net
@@ -3936,15 +3936,15 @@ cmdletexample WestUS CmdletExampleRG https:
- Get-AzureRMBatchAccount
+ Get-AzureRmBatchAccount
- Remove-AzureRMBatchAccount
+ Remove-AzureRmBatchAccount
- Set-AzureRMBatchAccount
+ Set-AzureRmBatchAccount
@@ -4009,7 +4009,7 @@ cmdletexample WestUS CmdletExampleRG https:
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -4060,7 +4060,7 @@ cmdletexample WestUS CmdletExampleRG https:
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -4084,7 +4084,7 @@ cmdletexample WestUS CmdletExampleRG https:
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -4268,7 +4268,7 @@ cmdletexample WestUS CmdletExampleRG https:
- Get-AzureRMBatchAccountKeys
+ Get-AzureRmBatchAccountKeys
@@ -4335,7 +4335,7 @@ cmdletexample WestUS CmdletExampleRG https:
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet. BatchAccountContext
@@ -4359,7 +4359,7 @@ cmdletexample WestUS CmdletExampleRG https:
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet. BatchAccountContext
@@ -4493,7 +4493,7 @@ PS C:\> New-AzureBatchJobSchedule -Id "JobSchedule17" -Schedule $Schedule -Jo
This example creates a job schedule. The first five commands create and modify PSSchedule, PSJobSpecification, and PSPoolInformation objects. The commands use the New-Object cmdlet and standard Azure PowerShell syntax. The commands store these objects in the $Schedule and $JobSpecification variables.
- The final command creates a job schedule that has the ID JobSchedule17. This schedule creates jobs with a recurrence interval of one day. The jobs run on the pool that has the ID ContosoPool06, as specified in the fifth command. Use the Get-AzureRMBatchAccountKeys cmdlet to assign a context to the $Context variable.
+ The final command creates a job schedule that has the ID JobSchedule17. This schedule creates jobs with a recurrence interval of one day. The jobs run on the pool that has the ID ContosoPool06, as specified in the fifth command. Use the Get-AzureRmBatchAccountKeys cmdlet to assign a context to the $Context variable.
@@ -4506,7 +4506,7 @@ PS C:\> New-AzureBatchJobSchedule -Id "JobSchedule17" -Schedule $Schedule -Jo
- Get-AzureRMBatchAccountKeys
+ Get-AzureRmBatchAccountKeys
@@ -4615,7 +4615,7 @@ PS C:\> New-AzureBatchJobSchedule -Id "JobSchedule17" -Schedule $Schedule -Jo
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -4632,7 +4632,7 @@ PS C:\> New-AzureBatchJobSchedule -Id "JobSchedule17" -Schedule $Schedule -Jo
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -4824,7 +4824,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
The first command creates a PSPoolInformation object by using the New-Object cmdlet. The command stores that object in the $PoolInformation variable. The second command assigns the ID Pool22 to the PoolId property of the object in $PoolInformation.
- The final command creates a job that has the ID ContosoJob35. Tasks added to the job run on the pool that has the ID Pool22. Use the Get-AzureRMBatchAccountKeys cmdlet to assign a context to the $Context variable.
+ The final command creates a job that has the ID ContosoJob35. Tasks added to the job run on the pool that has the ID Pool22. Use the Get-AzureRmBatchAccountKeys cmdlet to assign a context to the $Context variable.
@@ -4837,7 +4837,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
- Get-AzureRMBatchAccountKeys
+ Get-AzureRmBatchAccountKeys
@@ -4952,7 +4952,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -5059,7 +5059,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -5095,7 +5095,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -5351,7 +5351,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
- Get-AzureRMBatchAccountKeys
+ Get-AzureRmBatchAccountKeys
@@ -5438,7 +5438,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -5524,7 +5524,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -5560,7 +5560,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -5768,7 +5768,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
- Get-AzureRMBatchAccountKeys
+ Get-AzureRmBatchAccountKeys
@@ -5791,7 +5791,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
- Remove-AzureRMBatchAccount
+ Remove-AzureRmBatchAccountRemoves the specified Batch account.
@@ -5803,11 +5803,11 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
- The Remove-AzureRMBatchAccount cmdlet removes the specified Azure Batch account. You will be prompted for confirmation unless you use the Force parameter.
+ The Remove-AzureRmBatchAccount cmdlet removes the specified Azure Batch account. You will be prompted for confirmation unless you use the Force parameter.
- Remove-AzureRMBatchAccount
+ Remove-AzureRmBatchAccountAccountName
@@ -5930,7 +5930,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
- PS C:\>Remove-AzureRMBatchAccount -AccountName "cmdletexample"
+ PS C:\>Remove-AzureRmBatchAccount -AccountName "cmdletexample"
This command removes the batch account named cmdletexample. The user is prompted for confirmation before the delete operation takes place.
@@ -5946,15 +5946,15 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
- Get-AzureRMBatchAccount
+ Get-AzureRmBatchAccount
- New-AzureRMBatchAccount
+ New-AzureRmBatchAccount
- Set-AzureRMBatchAccount
+ Set-AzureRmBatchAccount
@@ -6019,7 +6019,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -6029,7 +6029,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -6158,7 +6158,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
- Get-AzureRMBatchAccountKeys
+ Get-AzureRmBatchAccountKeys
@@ -6213,7 +6213,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet. BatchAccountContext
@@ -6223,7 +6223,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet. BatchAccountContext
@@ -6315,7 +6315,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
PS C:\>Remove-AzureBatchJobSchedule "JobSchedule17" -BatchContext $Context
- This command deletes the job schedule that has the ID JobSchedule17. Use the Get-AzureRMBatchAccountKeys cmdlet to assign a context to the $Context variable. This command prompts you before it removes the schedule.
+ This command deletes the job schedule that has the ID JobSchedule17. Use the Get-AzureRmBatchAccountKeys cmdlet to assign a context to the $Context variable. This command prompts you before it removes the schedule.
@@ -6402,7 +6402,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -6412,7 +6412,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -6536,7 +6536,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
- Get-AzureRMBatchAccountKeys
+ Get-AzureRmBatchAccountKeys
@@ -6591,7 +6591,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -6601,7 +6601,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -6733,7 +6733,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
- Get-AzureRMBatchAccountKeys
+ Get-AzureRmBatchAccountKeys
@@ -6791,7 +6791,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -6821,7 +6821,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -6831,7 +6831,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
BatchContext
- Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.
+ Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContext
@@ -6979,7 +6979,7 @@ PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformatio
- Get-AzureRMBatchAccountKeys
+ Get-AzureRmBatchAccountKeys
@@ -7008,9 +7008,9 @@ Switch-AzureMode AzureResourceManager
The following cmdlets are the Azure Batch cmdlets in the Azure module:NameDescription
- Get-AzureRMBatchAccount
+ Get-AzureRmBatchAccountGets a Batch account under the current subscription.
- Get-AzureRMBatchAccountKeys
+ Get-AzureRmBatchAccountKeysGets the specified key of the specified Batch accounts under the current subscription.Get-AzureBatchComputeNodeGets Batch compute nodes from a pool.
@@ -7028,9 +7028,9 @@ Switch-AzureMode AzureResourceManager
Gets an RDP file from a compute node.Get-AzureBatchTaskGets the Batch tasks for the specified job.
- New-AzureRMBatchAccount
+ New-AzureRmBatchAccountCreates a new Batch account.
- New-AzureRMBatchAccountKey
+ New-AzureRmBatchAccountKeyRegenerates the specified key of the specified Batch account.New-AzureBatchComputeNodeUserCreates a user account on a Batch compute node.
@@ -7042,7 +7042,7 @@ Switch-AzureMode AzureResourceManager
Creates a new pool in the Batch service under the specified account.New-AzureBatchTaskCreates a new Batch task under the specified job.
- Remove-AzureRMBatchAccount
+ Remove-AzureRmBatchAccountRemoves the specified Batch account.Remove-AzureBatchComputeNodeUserDeletes a user account from a Batch compute node.
@@ -7054,7 +7054,7 @@ Switch-AzureMode AzureResourceManager
Deletes the specified Batch pool.Remove-AzureBatchTaskDeletes the specified Batch task.
- Set-AzureRMBatchAccount
+ Set-AzureRmBatchAccountUpdates the specified Batch account.Start-AzureBatchPoolResizeStarts to resize a pool.
@@ -7065,18 +7065,18 @@ Switch-AzureMode AzureResourceManager
Azure Cmdlet Reference
- Azure Resource Manager CmdletsUsing Windows Powershell with Resource ManagerSet-AzureRMBatchAccountUpdates the specified Batch account.SetAzureRMBatchAccountThe Set-AzureRMBatchAccount cmdlet updates the specified Azure Batch account. Currently, only tags can be updated.Set-AzureRMBatchAccountAccountNameSpecifies the name of the existing Batch account to update.StringTagSpecifies tags in an array of hash tables to set on the account.Hashtable[]ProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileResourceGroupNameSpecifies the resource group of the account being updated.StringAccountNameSpecifies the name of the existing Batch account to update.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the resource group of the account being updated.StringStringnoneTagSpecifies tags in an array of hash tables to set on the account.Hashtable[]Hashtable[]noneBatchAccountContextExample 1: Update the tags on an existing Batch accountPS C:\>Set-AzureRMBatchAccount -AccountName "cmdletexample" -Tag @(@{Name = "tag1";Value = "value1"},@{Name = "tag2";Value = "value2"})
+ Azure Resource Manager CmdletsUsing Windows Powershell with Resource ManagerSet-AzureRmBatchAccountUpdates the specified Batch account.SetAzureRMBatchAccountThe Set-AzureRmBatchAccount cmdlet updates the specified Azure Batch account. Currently, only tags can be updated.Set-AzureRmBatchAccountAccountNameSpecifies the name of the existing Batch account to update.StringTagSpecifies tags in an array of hash tables to set on the account.Hashtable[]ProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileResourceGroupNameSpecifies the resource group of the account being updated.StringAccountNameSpecifies the name of the existing Batch account to update.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the resource group of the account being updated.StringStringnoneTagSpecifies tags in an array of hash tables to set on the account.Hashtable[]Hashtable[]noneBatchAccountContextExample 1: Update the tags on an existing Batch accountPS C:\>Set-AzureRmBatchAccount -AccountName "cmdletexample" -Tag @(@{Name = "tag1";Value = "value1"},@{Name = "tag2";Value = "value2"})
AccountName Location ResourceGroupName Tags TaskTenantUrl
----------- -------- ----------------- ---- -------------
cmdletexample westus cmdletexamplerg {System.Collection https://cmdletexample.westus.batch.azure.com
s.Hashtable, Syste
m.Collections.Hash
table}
-This command updates the tags on the cmdletexample account.Get-AzureRMBatchAccountNew-AzureRMBatchAccountRemove-AzureRMBatchAccountRMAzure_Batch_CmdletsStart-AzureBatchPoolResizeStarts to resize a pool.StartAzureBatchPoolResizeThe Start-AzureBatchPoolResize cmdlet starts an Azure Batch resize operation on a pool.Start-AzureBatchPoolResizeIdSpecifies the ID of the pool that this cmdlet resizes.StringComputeNodeDeallocationOptionSpecifies a deallocation option for the resizing operation that this cmdlet starts.ComputeNodeDeallocationOptionProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileResizeTimeoutSpecifies a time-out period for the resizing operation. If the pool does not reach the target size by this time, the resize operation stops.TimeSpanBatchContextSpecifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet. BatchAccountContextTargetDedicatedSpecifies the target number of dedicated compute nodes.Int32BatchContextSpecifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet. BatchAccountContextBatchAccountContextnoneComputeNodeDeallocationOptionSpecifies a deallocation option for the resizing operation that this cmdlet starts.ComputeNodeDeallocationOptionComputeNodeDeallocationOptionnoneIdSpecifies the ID of the pool that this cmdlet resizes.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResizeTimeoutSpecifies a time-out period for the resizing operation. If the pool does not reach the target size by this time, the resize operation stops.TimeSpanTimeSpannoneTargetDedicatedSpecifies the target number of dedicated compute nodes.Int32Int32noneExample 1: Resize a pool to 12 nodesPS C:\>Start-AzureBatchPoolResize -Id "ContosoPool06" -TargetDedicated 12 -BatchContext $Context
-This command starts a resize operation on the pool that has the ID ContosoPool06. The target for the operation is 12 dedicated compute nodes. Use the Get-AzureRMBatchAccountKeys cmdlet to assign a context to the $Context variable. Example 2: Resize a pool using a deallocation optionPS C:\>Get-AzureBatchPool -Id "ContosoPool06" -BatchContext $Context | Start-AzureBatchPoolResize -TargetDedicated 5 -ResizeTimeout ([TimeSpan]::FromHours(1)) -ComputeNodeDeallocationOption ([Microsoft.Azure.Batch.Common.ComputeNodeDeallocationOption]::Terminate) -BatchContext $Context
-This cmdlet resizes a pool to five dedicated compute nodes. The command gets the pool that has the ID ContosoPool06 by using the Get-AzureBatchPool cmdlet. The command passes that pool object to the current cmdlet by using the pipeline operator. The command starts a resize operation on the pool. The target is five dedicated compute nodes. The command specifies time-out period of one hour. The command specifies a deallocation option of Terminate.Get-AzureRMBatchAccountKeysGet-AzureBatchPoolStop-AzureBatchPoolResizeRMAzure_Batch_CmdletsStop-AzureBatchPoolResizeStops a pool resize operation.StopAzureBatchPoolResizeThe Stop-AzureBatchPoolResize cmdlet stops an Azure Batch resize operation on a pool.Stop-AzureBatchPoolResizeIdSpecifies the ID of the pool for which this cmdlet stops a resizing operation.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileBatchContextSpecifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.BatchAccountContextBatchContextSpecifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRMBatchAccountKeys cmdlet.BatchAccountContextBatchAccountContextnoneIdSpecifies the ID of the pool for which this cmdlet stops a resizing operation.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneExample 1: Stop resizing a poolPS C:\>Stop-AzureBatchPoolResize -Id "ContosoPool06" -BatchContext $Context
-This command stops a resize operation on the pool that has the ID ContosoPool06. Use the Get-AzureRMBatchAccountKeys cmdlet to assign a context to the $Context variable.Example 2: Stop resizing a pool by using the pipelinePS C:\>Get-AzureBatchPool -Id "ContosoPool06" -BatchContext $Context | Stop-AzureBatchPoolResize -BatchContext $Context
-This example stops resizing a pool by using the pipeline operator. The command gets the pool that has the ID ContosoPool06 by using the Get-AzureBatchPool cmdlet. The command passes that pool object to the current cmdlet. The command stops the resize operation on that pool. Get-AzureRMBatchAccountKeysGet-AzureBatchPoolStart-AzureBatchPoolResizeRMAzure_Batch_Cmdlets
+This command updates the tags on the cmdletexample account.Get-AzureRmBatchAccountNew-AzureRmBatchAccountRemove-AzureRmBatchAccountRMAzure_Batch_CmdletsStart-AzureBatchPoolResizeStarts to resize a pool.StartAzureBatchPoolResizeThe Start-AzureBatchPoolResize cmdlet starts an Azure Batch resize operation on a pool.Start-AzureBatchPoolResizeIdSpecifies the ID of the pool that this cmdlet resizes.StringComputeNodeDeallocationOptionSpecifies a deallocation option for the resizing operation that this cmdlet starts.ComputeNodeDeallocationOptionProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileResizeTimeoutSpecifies a time-out period for the resizing operation. If the pool does not reach the target size by this time, the resize operation stops.TimeSpanBatchContextSpecifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet. BatchAccountContextTargetDedicatedSpecifies the target number of dedicated compute nodes.Int32BatchContextSpecifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet. BatchAccountContextBatchAccountContextnoneComputeNodeDeallocationOptionSpecifies a deallocation option for the resizing operation that this cmdlet starts.ComputeNodeDeallocationOptionComputeNodeDeallocationOptionnoneIdSpecifies the ID of the pool that this cmdlet resizes.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResizeTimeoutSpecifies a time-out period for the resizing operation. If the pool does not reach the target size by this time, the resize operation stops.TimeSpanTimeSpannoneTargetDedicatedSpecifies the target number of dedicated compute nodes.Int32Int32noneExample 1: Resize a pool to 12 nodesPS C:\>Start-AzureBatchPoolResize -Id "ContosoPool06" -TargetDedicated 12 -BatchContext $Context
+This command starts a resize operation on the pool that has the ID ContosoPool06. The target for the operation is 12 dedicated compute nodes. Use the Get-AzureRmBatchAccountKeys cmdlet to assign a context to the $Context variable. Example 2: Resize a pool using a deallocation optionPS C:\>Get-AzureBatchPool -Id "ContosoPool06" -BatchContext $Context | Start-AzureBatchPoolResize -TargetDedicated 5 -ResizeTimeout ([TimeSpan]::FromHours(1)) -ComputeNodeDeallocationOption ([Microsoft.Azure.Batch.Common.ComputeNodeDeallocationOption]::Terminate) -BatchContext $Context
+This cmdlet resizes a pool to five dedicated compute nodes. The command gets the pool that has the ID ContosoPool06 by using the Get-AzureBatchPool cmdlet. The command passes that pool object to the current cmdlet by using the pipeline operator. The command starts a resize operation on the pool. The target is five dedicated compute nodes. The command specifies time-out period of one hour. The command specifies a deallocation option of Terminate.Get-AzureRmBatchAccountKeysGet-AzureBatchPoolStop-AzureBatchPoolResizeRMAzure_Batch_CmdletsStop-AzureBatchPoolResizeStops a pool resize operation.StopAzureBatchPoolResizeThe Stop-AzureBatchPoolResize cmdlet stops an Azure Batch resize operation on a pool.Stop-AzureBatchPoolResizeIdSpecifies the ID of the pool for which this cmdlet stops a resizing operation.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileBatchContextSpecifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContextBatchContextSpecifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.BatchAccountContextBatchAccountContextnoneIdSpecifies the ID of the pool for which this cmdlet stops a resizing operation.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneExample 1: Stop resizing a poolPS C:\>Stop-AzureBatchPoolResize -Id "ContosoPool06" -BatchContext $Context
+This command stops a resize operation on the pool that has the ID ContosoPool06. Use the Get-AzureRmBatchAccountKeys cmdlet to assign a context to the $Context variable.Example 2: Stop resizing a pool by using the pipelinePS C:\>Get-AzureBatchPool -Id "ContosoPool06" -BatchContext $Context | Stop-AzureBatchPoolResize -BatchContext $Context
+This example stops resizing a pool by using the pipeline operator. The command gets the pool that has the ID ContosoPool06 by using the Get-AzureBatchPool cmdlet. The command passes that pool object to the current cmdlet. The command stops the resize operation on that pool. Get-AzureRmBatchAccountKeysGet-AzureBatchPoolStart-AzureBatchPoolResizeRMAzure_Batch_Cmdlets
@@ -7117,7 +7117,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -7141,7 +7141,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -7288,7 +7288,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -7312,7 +7312,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -7455,7 +7455,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -7466,7 +7466,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -7612,7 +7612,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -7636,7 +7636,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -7654,7 +7654,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -7865,7 +7865,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -7889,7 +7889,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -7907,7 +7907,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -8118,7 +8118,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -8129,7 +8129,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -8281,7 +8281,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -8292,7 +8292,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -8431,7 +8431,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -8442,7 +8442,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -8581,7 +8581,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -8592,7 +8592,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -8738,7 +8738,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -8749,7 +8749,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -8901,7 +8901,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -8912,7 +8912,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -9058,7 +9058,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -9069,7 +9069,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -9228,7 +9228,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -9245,7 +9245,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -9256,7 +9256,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
BatchContext
- The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.BatchAccountContext
@@ -9415,6 +9415,849 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
+
+
+
+ Set-AzureBatchComputeNodeUser
+
+
+ Updates the properties of a user account on a compute node.
+
+
+
+
+ Set
+ AzureBatchComputeNodeUser
+
+
+
+ Updates the properties of a user account on a compute node.
+
+
+
+
+ Set-AzureBatchComputeNodeUser
+
+ PoolId
+
+ The id of the pool containing the compute node.
+
+ string
+
+
+ ComputeNodeId
+
+ The id of the compute node containing the user account to update.
+
+ string
+
+
+ Name
+
+ The name of the user account to update.
+
+ string
+
+
+ Password
+
+ The account password.
+
+ string
+
+
+ BatchContext
+
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+
+ BatchAccountContext
+
+
+ ExpiryTime
+
+ The time at which the account should expire. The default is 1 day from the time of the update.
+
+ DateTime
+
+
+
+
+
+
+ BatchContext
+
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+
+
+ BatchAccountContext
+
+ BatchAccountContext
+
+
+
+
+
+ ComputeNodeId
+
+ The id of the compute node containing the user account to update.
+
+
+ string
+
+ string
+
+
+
+
+
+ ExpiryTime
+
+ The time at which the account should expire. The default is 1 day from the time of the update.
+
+
+ DateTime
+
+ DateTime
+
+
+
+
+
+ Name
+
+ The name of the user account to update.
+
+
+ string
+
+ string
+
+
+
+
+
+ Password
+
+ The account password.
+
+
+ string
+
+ string
+
+
+
+
+
+ PoolId
+
+ The id of the pool containing the compute node.
+
+
+ string
+
+ string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 1 --------------------------
+
+
+ C:\PS>
+
+
+ Set-AzureBatchComputeNodeUser "myPool" "tvm-3257026573_1-20150904t230807z" "myUser" "Password1234!" -ExpiryTime ([DateTime]::Now.AddDays(14)) -BatchContext $context
+
+
+ Description
+ -----------
+ Updates the "myUser" user account on compute node "tvm-3257026573_1-20150904t230807z" in pool "myPool". The account password is updated to "Password1234!", and the expiry time is updated to 14 days from now.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Set-AzureBatchJob
+
+
+ Updates the properties of a job.
+
+
+
+
+ Set
+ AzureBatchJob
+
+
+
+ Updates the properties of a job.
+
+
+
+
+ Set-AzureBatchJob
+
+ Job
+
+ The PSCloudJob object with changes to commit to the Batch Service. Use the Get-AzureBatchJob cmdlet to get a PSCloudJob object. Modify the properties of this object and pass it into the Set-AzureBatchJob cmdlet to commit these changes to the Batch Service.
+
+ PSCloudJob
+
+
+ BatchContext
+
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+
+ BatchAccountContext
+
+
+
+
+
+
+ BatchContext
+
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+
+
+ BatchAccountContext
+
+ BatchAccountContext
+
+
+
+
+
+ Job
+
+ The PSCloudJob object with changes to commit to the Batch Service. Use the Get-AzureBatchJob cmdlet to get a PSCloudJob object. Modify the properties of this object and pass it into the Set-AzureBatchJob cmdlet to commit these changes to the Batch Service.
+
+
+ PSCloudJob
+
+ PSCloudJob
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 1 --------------------------
+
+
+ C:\PS>
+
+
+ $job = Get-AzureBatchJob "myJob" -BatchContext $context
+ $job.Priority = 1
+ $job | Set-AzureBatchJob -BatchContext $context
+
+
+ Description
+ -----------
+ Updates the priority of job "myJob" to a new value of 1.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Set-AzureBatchJobSchedule
+
+
+ Updates the properties of a job schedule.
+
+
+
+
+ Set
+ AzureBatchJobSchedule
+
+
+
+ Updates the properties of a job schedule.
+
+
+
+
+ Set-AzureBatchJobSchedule
+
+ JobSchedule
+
+ The PSCloudJobSchedule object with changes to commit to the Batch Service. Use the Get-AzureBatchJobSchedule cmdlet to get a PSCloudJobSchedule object. Modify the properties of this object and pass it into the Set-AzureBatchJobSchedule cmdlet to commit these changes to the Batch Service.
+
+ PSCloudJobSchedule
+
+
+ BatchContext
+
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+
+ BatchAccountContext
+
+
+
+
+
+
+ BatchContext
+
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+
+
+ BatchAccountContext
+
+ BatchAccountContext
+
+
+
+
+
+ JobSchedule
+
+ The PSCloudJobSchedule object with changes to commit to the Batch Service. Use the Get-AzureBatchJobSchedule cmdlet to get a PSCloudJobSchedule object. Modify the properties of this object and pass it into the Set-AzureBatchJobSchedule cmdlet to commit these changes to the Batch Service.
+
+
+ PSCloudJobSchedule
+
+ PSCloudJobSchedule
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 1 --------------------------
+
+
+ C:\PS>
+
+
+ $jobSchedule = Get-AzureBatchJobSchedule "myJobSchedule" -BatchContext $context
+ $schedule = New-Object Microsoft.Azure.Commands.Batch.Models.PSSchedule
+ $schedule.DoNotRunAfter = [DateTime]::Now.AddDays(30)
+ $schedule.DoNotRunUntil = [DateTime]::Now.AddDays(1)
+ $jobSchedule.Schedule = $schedule
+ $jobSchedule | Set-AzureBatchJobSchedule -BatchContext $context
+
+
+ Description
+ -----------
+ Updates the Schedule property on the job schedule with id "myJobSchedule".
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Set-AzureBatchPool
+
+
+ Updates the properties of a pool.
+
+
+
+
+ Set
+ AzureBatchPool
+
+
+
+ Updates the properties of a pool.
+
+
+
+
+ Set-AzureBatchPool
+
+ Pool
+
+ The PSCloudPool object with changes to commit to the Batch Service. Use the Get-AzureBatchPool cmdlet to get a PSCloudPool object. Modify the properties of this object and pass it into the Set-AzureBatchPool cmdlet to commit these changes to the Batch Service.
+
+ PSCloudPool
+
+
+ BatchContext
+
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+
+ BatchAccountContext
+
+
+
+
+
+
+ BatchContext
+
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+
+
+ BatchAccountContext
+
+ BatchAccountContext
+
+
+
+
+
+ Pool
+
+ The PSCloudPool object with changes to commit to the Batch Service. Use the Get-AzureBatchPool cmdlet to get a PSCloudPool object. Modify the properties of this object and pass it into the Set-AzureBatchPool cmdlet to commit these changes to the Batch Service.
+
+
+ PSCloudPool
+
+ PSCloudPool
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 1 --------------------------
+
+
+ C:\PS>
+
+
+ $pool = Get-AzureBatchPool "myPool" -BatchContext $context
+ $startTask = New-Object Microsoft.Azure.Commands.Batch.Models.PSStartTask
+ $startTask.CommandLine = "cmd /c echo example"
+ $pool.StartTask = $startTask
+ $pool | Set-AzureBatchPool -BatchContext $context
+
+
+ Description
+ -----------
+ Updates the start task specification on pool "myPool".
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Set-AzureBatchTask
+
+
+ Updates the properties of a task.
+
+
+
+
+ Set
+ AzureBatchTask
+
+
+
+ Updates the properties of a task.
+
+
+
+
+ Set-AzureBatchTask
+
+ Task
+
+ The PSCloudTask object with changes to commit to the Batch Service. Use the Get-AzureBatchTask cmdlet to get a PSCloudTask object. Modify the properties of this object and pass it into the Set-AzureBatchTask cmdlet to commit these changes to the Batch Service.
+
+ PSCloudTask
+
+
+ BatchContext
+
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+
+ BatchAccountContext
+
+
+
+
+
+
+ BatchContext
+
+ The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.
+
+
+ BatchAccountContext
+
+ BatchAccountContext
+
+
+
+
+
+ Task
+
+ The PSCloudTask object with changes to commit to the Batch Service. Use the Get-AzureBatchTask cmdlet to get a PSCloudTask object. Modify the properties of this object and pass it into the Set-AzureBatchTask cmdlet to commit these changes to the Batch Service.
+
+
+ PSCloudTask
+
+ PSCloudTask
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 1 --------------------------
+
+
+ C:\PS>
+
+
+ $task = Get-AzureBatchTask "myJob" "myTask" -BatchContext $context
+ $constraints = New-Object Microsoft.Azure.Commands.Batch.Models.PSTaskConstraints -ArgumentList @([TimeSpan}::FromDays(5), [TimeSpan]::FromDays(2), 3)
+ $task.Constraints = $constraints
+ $task | Set-AzureBatchTask -BatchContext $context
+
+
+ Description
+ -----------
+ Updates the constraints on task "myTask" under job "myJob".
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.ComputeNodeUsers.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.ComputeNodeUsers.cs
index 587ed9e7c4ba..ba7691e4a998 100644
--- a/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.ComputeNodeUsers.cs
+++ b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.ComputeNodeUsers.cs
@@ -58,6 +58,26 @@ public void CreateComputeNodeUser(NewComputeNodeUserParameters options)
user.Commit(ComputeNodeUserCommitSemantics.AddUser, options.AdditionalBehaviors);
}
+ ///
+ /// Updates a compute node user account
+ ///
+ /// The parameters specifying the compute node user to update and the changes to make
+ public void UpdateComputeNodeUser(UpdateComputeNodeUserParameters parameters)
+ {
+ if (parameters == null)
+ {
+ throw new ArgumentNullException("parameters");
+ }
+
+ WriteVerbose(string.Format(Resources.UpdatingComputeNodeUser, parameters.ComputeNodeUserName));
+
+ ComputeNodeUser computeNodeUser = new ComputeNodeUser(parameters.Context.BatchOMClient.PoolOperations, parameters.PoolId, parameters.ComputeNodeId);
+ computeNodeUser.Name = parameters.ComputeNodeUserName;
+ computeNodeUser.Password = parameters.Password;
+ computeNodeUser.ExpiryTime = parameters.ExpiryTime;
+ computeNodeUser.Commit(ComputeNodeUserCommitSemantics.UpdateUser, parameters.AdditionalBehaviors);
+ }
+
///
/// Deletes the specified compute node user.
///
diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.JobSchedules.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.JobSchedules.cs
index 94a1ce5de840..85205e9e3215 100644
--- a/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.JobSchedules.cs
+++ b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.JobSchedules.cs
@@ -111,6 +111,25 @@ public void CreateJobSchedule(NewJobScheduleParameters parameters)
jobSchedule.Commit(parameters.AdditionalBehaviors);
}
+ ///
+ /// Commits changes to a PSCloudJobSchedule object to the Batch Service.
+ ///
+ /// The account to use.
+ /// The PSCloudJobSchedule object representing the job schedule to update.
+ /// Additional client behaviors to perform.
+ public void UpdateJobSchedule(BatchAccountContext context, PSCloudJobSchedule jobSchedule, IEnumerable additionBehaviors = null)
+ {
+ if (jobSchedule == null)
+ {
+ throw new ArgumentNullException("jobSchedule");
+ }
+
+ WriteVerbose(string.Format(Resources.UpdatingJobSchedule, jobSchedule.Id));
+
+ Utils.Utils.BoundJobScheduleSyncCollections(jobSchedule);
+ jobSchedule.omObject.Commit(additionBehaviors);
+ }
+
///
/// Deletes the specified job schedule.
///
diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Jobs.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Jobs.cs
index ff89a7120bbd..7987721f4bbc 100644
--- a/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Jobs.cs
+++ b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Jobs.cs
@@ -153,6 +153,25 @@ public void CreateJob(NewJobParameters parameters)
job.Commit(parameters.AdditionalBehaviors);
}
+ ///
+ /// Commits changes to a PSCloudJob object to the Batch Service.
+ ///
+ /// The account to use.
+ /// The PSCloudJob object representing the job to update.
+ /// Additional client behaviors to perform.
+ public void UpdateJob(BatchAccountContext context, PSCloudJob job, IEnumerable additionBehaviors = null)
+ {
+ if (job == null)
+ {
+ throw new ArgumentNullException("job");
+ }
+
+ WriteVerbose(string.Format(Resources.UpdatingJob, job.Id));
+
+ Utils.Utils.BoundJobSyncCollections(job);
+ job.omObject.Commit(additionBehaviors);
+ }
+
///
/// Deletes the specified job.
///
diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Pools.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Pools.cs
index 1a4e76c60c17..db0dcd6daca8 100644
--- a/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Pools.cs
+++ b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Pools.cs
@@ -130,6 +130,25 @@ public void CreatePool(NewPoolParameters parameters)
pool.Commit(parameters.AdditionalBehaviors);
}
+ ///
+ /// Commits changes to a PSCloudPool object to the Batch Service.
+ ///
+ /// The account to use.
+ /// The PSCloudPool object representing the pool to update.
+ /// Additional client behaviors to perform.
+ public void UpdatePool(BatchAccountContext context, PSCloudPool pool, IEnumerable additionBehaviors = null)
+ {
+ if (pool == null)
+ {
+ throw new ArgumentNullException("pool");
+ }
+
+ WriteVerbose(string.Format(Resources.UpdatingPool, pool.Id));
+
+ Utils.Utils.BoundPoolSyncCollections(pool);
+ pool.omObject.Commit(additionBehaviors);
+ }
+
///
/// Deletes the specified pool.
///
diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Tasks.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Tasks.cs
index 3ac03bb3eb7b..10b04145d83a 100644
--- a/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Tasks.cs
+++ b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Tasks.cs
@@ -135,6 +135,24 @@ public void CreateTask(NewTaskParameters parameters)
}
}
+ ///
+ /// Commits changes to a PSCloudTask object to the Batch Service.
+ ///
+ /// The account to use.
+ /// The PSCloudTask object representing the task to update.
+ /// Additional client behaviors to perform.
+ public void UpdateTask(BatchAccountContext context, PSCloudTask task, IEnumerable additionBehaviors = null)
+ {
+ if (task == null)
+ {
+ throw new ArgumentNullException("task");
+ }
+
+ WriteVerbose(string.Format(Resources.UpdatingTask, task.Id));
+
+ task.omObject.Commit(additionBehaviors);
+ }
+
///
/// Deletes the specified task.
///
diff --git a/src/ResourceManager/Resources/Commands.Resources/Models.Authorization/PSUserRoleAssignment.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/UpdateComputeNodeUserParameters.cs
similarity index 52%
rename from src/ResourceManager/Resources/Commands.Resources/Models.Authorization/PSUserRoleAssignment.cs
rename to src/ResourceManager/AzureBatch/Commands.Batch/Models/UpdateComputeNodeUserParameters.cs
index 61e6c72bfd81..52e1554de612 100644
--- a/src/ResourceManager/Resources/Commands.Resources/Models.Authorization/PSUserRoleAssignment.cs
+++ b/src/ResourceManager/AzureBatch/Commands.Batch/Models/UpdateComputeNodeUserParameters.cs
@@ -12,14 +12,27 @@
// limitations under the License.
// ----------------------------------------------------------------------------------
+using System;
+using Microsoft.Azure.Batch;
using System.Collections.Generic;
-namespace Microsoft.Azure.Commands.Resources.Models.Authorization
+namespace Microsoft.Azure.Commands.Batch.Models
{
- public class PSUserRoleAssignment : PSRoleAssignment
+ public class UpdateComputeNodeUserParameters : ComputeNodeUserOperationParameters
{
- public string UserPrincipalName { get; set; }
+ public UpdateComputeNodeUserParameters(BatchAccountContext context, string poolId, string computeNodeId, string computeNodeUserName,
+ IEnumerable additionalBehaviors = null)
+ : base(context, poolId, computeNodeId, computeNodeUserName, additionalBehaviors)
+ { }
- public string Mail { get; set; }
+ ///
+ /// The account password.
+ ///
+ public string Password { get; set; }
+
+ ///
+ /// The expiry time.
+ ///
+ public DateTime ExpiryTime { get; set; }
}
}
diff --git a/src/ResourceManager/Resources/Commands.Resources/Models.Authorization/PSServiceRoleAssignment.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Pools/SetBatchPoolCommand.cs
similarity index 51%
rename from src/ResourceManager/Resources/Commands.Resources/Models.Authorization/PSServiceRoleAssignment.cs
rename to src/ResourceManager/AzureBatch/Commands.Batch/Pools/SetBatchPoolCommand.cs
index 935977a74f97..d718c30e4b1d 100644
--- a/src/ResourceManager/Resources/Commands.Resources/Models.Authorization/PSServiceRoleAssignment.cs
+++ b/src/ResourceManager/AzureBatch/Commands.Batch/Pools/SetBatchPoolCommand.cs
@@ -12,12 +12,23 @@
// limitations under the License.
// ----------------------------------------------------------------------------------
-using System.Collections.Generic;
+using Microsoft.Azure.Commands.Batch.Models;
+using System.Management.Automation;
+using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants;
-namespace Microsoft.Azure.Commands.Resources.Models.Authorization
+namespace Microsoft.Azure.Commands.Batch
{
- public class PSServiceRoleAssignment : PSRoleAssignment
+ [Cmdlet(VerbsCommon.Set, Constants.AzureBatchPool)]
+ public class SetBatchPoolCommand : BatchObjectModelCmdletBase
{
- public string ServicePrincipalName { get; set; }
+ [Parameter(Position = 0, Mandatory = true, ValueFromPipeline = true,
+ HelpMessage = "The PSCloudPool object with changes to commit to the Batch Service.")]
+ [ValidateNotNullOrEmpty]
+ public PSCloudPool Pool { get; set; }
+
+ protected override void ProcessRecord()
+ {
+ this.BatchClient.UpdatePool(this.BatchContext, this.Pool, this.AdditionalBehaviors);
+ }
}
}
diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.Designer.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.Designer.cs
index 9d43a9b21518..4de1b59c3c07 100644
--- a/src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.Designer.cs
+++ b/src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.Designer.cs
@@ -511,7 +511,7 @@ internal static string InvalidTagFormatNotUniqueName {
}
///
- /// Looks up a localized string similar to The current KeyInUse on this BatchAccountContext is the {0} key, but this key is not populated on the BatchAccountContext object. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its keys populated..
+ /// Looks up a localized string similar to The current KeyInUse on this BatchAccountContext is the {0} key, but this key is not populated on the BatchAccountContext object. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its keys populated..
///
internal static string KeyNotPresent {
get {
@@ -824,5 +824,50 @@ internal static string UpdatingAccount {
return ResourceManager.GetString("UpdatingAccount", resourceCulture);
}
}
+
+ ///
+ /// Looks up a localized string similar to Updating compute node user {0}..
+ ///
+ internal static string UpdatingComputeNodeUser {
+ get {
+ return ResourceManager.GetString("UpdatingComputeNodeUser", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Updating job {0}..
+ ///
+ internal static string UpdatingJob {
+ get {
+ return ResourceManager.GetString("UpdatingJob", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Updating job schedule {0}..
+ ///
+ internal static string UpdatingJobSchedule {
+ get {
+ return ResourceManager.GetString("UpdatingJobSchedule", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Updating pool {0}..
+ ///
+ internal static string UpdatingPool {
+ get {
+ return ResourceManager.GetString("UpdatingPool", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Updating task {0}..
+ ///
+ internal static string UpdatingTask {
+ get {
+ return ResourceManager.GetString("UpdatingTask", resourceCulture);
+ }
+ }
}
}
diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.resx b/src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.resx
index 5aa094f4ee29..a4be31c3d82d 100644
--- a/src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.resx
+++ b/src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.resx
@@ -268,7 +268,7 @@
Invalid tag format. Ensure that each tag has a unique name. Example: @{Name = "tagName1"; Value = "tagValue1"}, @{Name = "tagName2"; Value = "tagValue2"}
- The current KeyInUse on this BatchAccountContext is the {0} key, but this key is not populated on the BatchAccountContext object. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its keys populated.
+ The current KeyInUse on this BatchAccountContext is the {0} key, but this key is not populated on the BatchAccountContext object. Use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its keys populated.Checking if account already exists
@@ -373,4 +373,19 @@
Updating account {0}
+
+ Updating compute node user {0}.
+
+
+ Updating job {0}.
+
+
+ Updating job schedule {0}.
+
+
+ Updating pool {0}.
+
+
+ Updating task {0}.
+
\ No newline at end of file
diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Tasks/SetBatchTaskCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Tasks/SetBatchTaskCommand.cs
new file mode 100644
index 000000000000..0754d8322d93
--- /dev/null
+++ b/src/ResourceManager/AzureBatch/Commands.Batch/Tasks/SetBatchTaskCommand.cs
@@ -0,0 +1,34 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using Microsoft.Azure.Commands.Batch.Models;
+using System.Management.Automation;
+using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants;
+
+namespace Microsoft.Azure.Commands.Batch
+{
+ [Cmdlet(VerbsCommon.Set, Constants.AzureBatchTask)]
+ public class SetBatchTaskCommand : BatchObjectModelCmdletBase
+ {
+ [Parameter(Position = 0, Mandatory = true, ValueFromPipeline = true,
+ HelpMessage = "The PSCloudTask object with changes to commit to the Batch Service.")]
+ [ValidateNotNullOrEmpty]
+ public PSCloudTask Task { get; set; }
+
+ protected override void ProcessRecord()
+ {
+ this.BatchClient.UpdateTask(this.BatchContext, this.Task, this.AdditionalBehaviors);
+ }
+ }
+}
diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Utils/Constants.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Utils/Constants.cs
index 313739403a1a..c038c2208b5e 100644
--- a/src/ResourceManager/AzureBatch/Commands.Batch/Utils/Constants.cs
+++ b/src/ResourceManager/AzureBatch/Commands.Batch/Utils/Constants.cs
@@ -19,9 +19,9 @@ public class Constants
public const int DefaultMaxCount = 1000;
// ARM cmdlet nouns
- public const string AzureRMBatchAccount = "AzureRMBatchAccount";
- public const string AzureRMBatchAccountKey = "AzureRMBatchAccountKey";
- public const string AzureRMBatchAccountKeys = "AzureRMBatchAccountKeys";
+ public const string AzureRmBatchAccount = "AzureRmBatchAccount";
+ public const string AzureRmBatchAccountKey = "AzureRmBatchAccountKey";
+ public const string AzureRmBatchAccountKeys = "AzureRmBatchAccountKeys";
// Batch Service cmdlet nouns
public const string AzureBatchPool = "AzureBatchPool";
diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Utils/Utils.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Utils/Utils.cs
index e07ac3bcdf11..45e7f393e194 100644
--- a/src/ResourceManager/AzureBatch/Commands.Batch/Utils/Utils.cs
+++ b/src/ResourceManager/AzureBatch/Commands.Batch/Utils/Utils.cs
@@ -25,6 +25,75 @@ namespace Microsoft.Azure.Commands.Batch.Utils
///
internal static class Utils
{
+ ///
+ /// Syncs the collections on a bound PSCloudPool with its wrapped OM object
+ ///
+ internal static void BoundPoolSyncCollections(PSCloudPool pool)
+ {
+ if (pool != null)
+ {
+ pool.omObject.CertificateReferences = CreateSyncedList(pool.CertificateReferences,
+ (c) =>
+ {
+ return ConvertCertificateReference(c);
+ });
+
+ pool.omObject.Metadata = CreateSyncedList(pool.Metadata,
+ (m) =>
+ {
+ MetadataItem metadata = new MetadataItem(m.Name, m.Value);
+ return metadata;
+ });
+
+ if (pool.StartTask != null)
+ {
+ StartTaskSyncCollections(pool.StartTask);
+ }
+ }
+ }
+
+ ///
+ /// Syncs the collections on a bound PSCloudJobSchedule with its wrapped OM object
+ ///
+ internal static void BoundJobScheduleSyncCollections(PSCloudJobSchedule jobSchedule)
+ {
+ if (jobSchedule != null)
+ {
+ jobSchedule.omObject.Metadata = CreateSyncedList(jobSchedule.Metadata,
+ (m) =>
+ {
+ MetadataItem metadata = new MetadataItem(m.Name, m.Value);
+ return metadata;
+ });
+
+ if (jobSchedule.JobSpecification != null)
+ {
+ JobSpecificationSyncCollections(jobSchedule.JobSpecification);
+ }
+ }
+ }
+
+ ///
+ /// Syncs the collections on a bound PSCloudJob with its wrapped OM object
+ ///
+ internal static void BoundJobSyncCollections(PSCloudJob job)
+ {
+ if (job != null)
+ {
+ job.omObject.Metadata = CreateSyncedList(job.Metadata,
+ (m) =>
+ {
+ MetadataItem metadata = new MetadataItem(m.Name, m.Value);
+ return metadata;
+ });
+
+ if (job.PoolInformation != null)
+ {
+ PoolInformationSyncCollections(job.PoolInformation);
+ }
+ }
+ }
+
///
/// Syncs the collections on a PSJobSpecification with its wrapped OM object
///
@@ -175,13 +244,7 @@ internal static void PoolSpecificationSyncCollections(PSPoolSpecification spec)
spec.omObject.CertificateReferences = CreateSyncedList(spec.CertificateReferences,
(c) =>
{
- CertificateReference certReference = new CertificateReference();
- certReference.StoreLocation = c.StoreLocation;
- certReference.StoreName = c.StoreName;
- certReference.Thumbprint = c.Thumbprint;
- certReference.ThumbprintAlgorithm = c.ThumbprintAlgorithm;
- certReference.Visibility = c.Visibility;
- return certReference;
+ return ConvertCertificateReference(c);
});
spec.omObject.Metadata = CreateSyncedList(spec.Metadata,
@@ -244,5 +307,19 @@ private static IList CreateSyncedList(IEnumerable psList, Fu
}
return omList;
}
+
+ ///
+ /// Converts a PSCertificateReference to a CertificateReference
+ ///
+ private static CertificateReference ConvertCertificateReference(PSCertificateReference psCert)
+ {
+ CertificateReference certReference = new CertificateReference();
+ certReference.StoreLocation = psCert.StoreLocation;
+ certReference.StoreName = psCert.StoreName;
+ certReference.Thumbprint = psCert.Thumbprint;
+ certReference.ThumbprintAlgorithm = psCert.ThumbprintAlgorithm;
+ certReference.Visibility = psCert.Visibility;
+ return certReference;
+ }
}
}
diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/packages.config b/src/ResourceManager/AzureBatch/Commands.Batch/packages.config
index 15b7a9cc80ad..e88277ae7987 100644
--- a/src/ResourceManager/AzureBatch/Commands.Batch/packages.config
+++ b/src/ResourceManager/AzureBatch/Commands.Batch/packages.config
@@ -3,7 +3,7 @@
-
+
diff --git a/src/ResourceManager/Common/Commands.ResourceManager.Common/AzureRMCmdlet.cs b/src/ResourceManager/Common/Commands.ResourceManager.Common/AzureRMCmdlet.cs
index c6e244ced20d..4a74251da2d2 100644
--- a/src/ResourceManager/Common/Commands.ResourceManager.Common/AzureRMCmdlet.cs
+++ b/src/ResourceManager/Common/Commands.ResourceManager.Common/AzureRMCmdlet.cs
@@ -53,7 +53,7 @@ protected override AzureContext DefaultContext
{
if (DefaultProfile == null || DefaultProfile.Context == null)
{
- throw new PSInvalidOperationException("Run Login-AzureRMAccount to login.");
+ throw new PSInvalidOperationException("Run Login-AzureRmAccount to login.");
}
return DefaultProfile.Context;
diff --git a/src/ResourceManager/Common/Commands.ResourceManager.Common/Commands.ResourceManager.Common.csproj b/src/ResourceManager/Common/Commands.ResourceManager.Common/Commands.ResourceManager.Common.csproj
index 8f202c938f2e..930eb6978ef9 100644
--- a/src/ResourceManager/Common/Commands.ResourceManager.Common/Commands.ResourceManager.Common.csproj
+++ b/src/ResourceManager/Common/Commands.ResourceManager.Common/Commands.ResourceManager.Common.csproj
@@ -61,7 +61,7 @@
..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.dll
- ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.3.0-preview\lib\net45\Microsoft.Azure.Common.Authentication.dll
+ ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.3.1-preview\lib\net45\Microsoft.Azure.Common.Authentication.dllTrue
@@ -140,50 +140,8 @@
-
- Common\AzurePSCmdlet.cs
-
-
- Common\AzurePowerShell.cs
-
-
- Common\AzurePSDataCollectionProfile.cs
-
-
- Common\CmdletExtensions.cs
-
-
- Common\ConversionUtilities.cs
-
-
- Common\DebugStreamTraceListener.cs
-
-
- Common\GeneralUtilities.cs
-
-
- Common\MetricHelper.cs
-
-
- Common\PowerShellUtilities.cs
-
-
- Common\ProfileClientExtensions.cs
-
-
- Common\PSAzureAccount.cs
-
-
- Common\RecordingTracingInterceptor.cs
-
-
- Common\SecureStringExtensions.cs
-
-
- Common\TestMockSupport.cs
-
-
+
@@ -203,6 +161,12 @@
Designer
+
+
+ {5ee72c53-1720-4309-b54b-5fb79703195f}
+ Commands.Common
+
+
diff --git a/src/ResourceManager/Common/Commands.ResourceManager.Common/RMProfileClient.cs b/src/ResourceManager/Common/Commands.ResourceManager.Common/RMProfileClient.cs
index 8c2a8ceec9a1..159ede44f4ae 100644
--- a/src/ResourceManager/Common/Commands.ResourceManager.Common/RMProfileClient.cs
+++ b/src/ResourceManager/Common/Commands.ResourceManager.Common/RMProfileClient.cs
@@ -151,6 +151,19 @@ public bool TryGetSubscription(string tenantId, string subscriptionId, out Azure
tenantId, subscriptionId, out subscription, out tenant);
}
+ public bool TryGetSubscriptionByName(string tenantId, string subscriptionName, out AzureSubscription subscription)
+ {
+ if (string.IsNullOrWhiteSpace(tenantId))
+ {
+ throw new ArgumentNullException("Please provide a valid tenant Id.");
+ }
+
+ IEnumerable subscriptionList = ListSubscriptions(tenantId);
+ subscription = subscriptionList.FirstOrDefault(s => s.Name.Equals(subscriptionName, StringComparison.OrdinalIgnoreCase));
+
+ return subscription != null;
+ }
+
public AzureEnvironment AddOrSetEnvironment(AzureEnvironment environment)
{
if (environment == null)
@@ -288,7 +301,7 @@ private bool TryGetTenantSubscription(IAccessToken accessToken,
{
WriteWarningMessage(string.Format(
"Tenant '{0}' contains more than one subscription. First one will be selected for further use. " +
- "To select another subscription, use Set-AzureRMContext.",
+ "To select another subscription, use Set-AzureRmContext.",
tenantId));
}
subscriptionFromServer = subscriptions.First();
@@ -388,7 +401,7 @@ public IEnumerable ListSubscriptions()
catch (AadAuthenticationException)
{
WriteWarningMessage(string.Format("Could not authenticate user account {0} with tenant {1}. " +
- "Subscriptions in this tenant will not be listed. Please login again using Login-AzureRMAccount " +
+ "Subscriptions in this tenant will not be listed. Please login again using Login-AzureRmAccount " +
"to view the subscriptions in this tenant.", _profile.Context.Account, tenant));
}
diff --git a/src/ResourceManager/Common/Commands.ResourceManager.Common/packages.config b/src/ResourceManager/Common/Commands.ResourceManager.Common/packages.config
index 8b3394fd6012..357c4f26f18d 100644
--- a/src/ResourceManager/Common/Commands.ResourceManager.Common/packages.config
+++ b/src/ResourceManager/Common/Commands.ResourceManager.Common/packages.config
@@ -4,7 +4,7 @@
-
+
diff --git a/src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/Commands.ScenarioTests.ResourceManager.Common.csproj b/src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/Commands.ScenarioTests.ResourceManager.Common.csproj
index 246ae60432a0..d78bab595d2d 100644
--- a/src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/Commands.ScenarioTests.ResourceManager.Common.csproj
+++ b/src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/Commands.ScenarioTests.ResourceManager.Common.csproj
@@ -46,7 +46,7 @@
..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.dll
- ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.3.0-preview\lib\net45\Microsoft.Azure.Common.Authentication.dll
+ ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.3.1-preview\lib\net45\Microsoft.Azure.Common.Authentication.dllTrue
@@ -130,15 +130,6 @@
-
- Profile\ProfileClient.cs
-
-
- Profile\PSAzureAccount.cs
-
-
- Profile\PublishSettingsImporter.cs
-
@@ -164,6 +155,10 @@
+
+ {5ee72c53-1720-4309-b54b-5fb79703195f}
+ Commands.Common
+ {3819d8a7-c62c-4c47-8ddd-0332d9ce1252}Commands.ResourceManager.Common
diff --git a/src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/EnvironmentSetupHelper.cs b/src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/EnvironmentSetupHelper.cs
index 075d4dd0277c..0a5585090fd6 100644
--- a/src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/EnvironmentSetupHelper.cs
+++ b/src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/EnvironmentSetupHelper.cs
@@ -43,7 +43,7 @@ public class EnvironmentSetupHelper
private AzureAccount testAccount;
private const string PackageDirectoryFromCommon = @"..\..\..\..\Package\Debug";
- private const string PackageDirectory = @"..\..\..\..\..\Package\Debug";
+ public string PackageDirectory = @"..\..\..\..\..\Package\Debug";
protected List modules;
@@ -66,16 +66,52 @@ public EnvironmentSetupHelper()
System.Net.ServicePointManager.ServerCertificateValidationCallback += (se, cert, chain, sslerror) => true;
// Set RunningMocked
- if (HttpMockServer.GetCurrentMode() == HttpRecorderMode.Playback)
+ TestMockSupport.RunningMocked = HttpMockServer.GetCurrentMode() == HttpRecorderMode.Playback;
+ }
+
+ public string RMProfileModule
+ {
+ get
{
- TestMockSupport.RunningMocked = true;
+ return Path.Combine(this.PackageDirectory,
+ @"ResourceManager\AzureResourceManager\AzureRM.Profile\AzureRM.Profile.psd1");
}
- else
+ }
+
+ public string RMResourceModule
+ {
+ get
+ {
+ return Path.Combine(this.PackageDirectory,
+ @"ResourceManager\AzureResourceManager\AzureRM.Resources\AzureRM.Resources.psd1");
+ }
+ }
+
+ public string RMStorageModule
+ {
+ get
{
- TestMockSupport.RunningMocked = false;
+ return Path.Combine(this.PackageDirectory,
+ @"ResourceManager\AzureResourceManager\AzureRM.Storage\AzureRM.Storage.psd1");
}
}
+ //TODO: clarify (data plane should not be under ARM folder)
+ public string RMStorageDataPlaneModule
+ {
+ get
+ {
+ return Path.Combine(this.PackageDirectory,
+ @"ResourceManager\AzureResourceManager\Azure.Storage\Azure.Storage.psd1");
+ }
+ }
+
+ public string GetRMModulePath(string psd1FileName)
+ {
+ string basename = Path.GetFileNameWithoutExtension(psd1FileName);
+ return Path.Combine(this.PackageDirectory,
+ @"ResourceManager\AzureResourceManager\" + basename + @"\" + psd1FileName);
+ }
///
/// Loads DummyManagementClientHelper with clients and throws exception if any client is missing.
///
@@ -103,32 +139,29 @@ public void SetupEnvironment(AzureModule mode)
private void SetupAzureEnvironmentFromEnvironmentVariables(AzureModule mode)
{
- TestEnvironment rdfeEnvironment = new RDFETestEnvironmentFactory().GetTestEnvironment();
- TestEnvironment csmEnvironment = new CSMTestEnvironmentFactory().GetTestEnvironment();
- TestEnvironment currentEnvironment = (mode == AzureModule.AzureResourceManager ? csmEnvironment : rdfeEnvironment);
+ TestEnvironment currentEnvironment = null;
+ if (mode == AzureModule.AzureResourceManager)
+ {
+ currentEnvironment = new CSMTestEnvironmentFactory().GetTestEnvironment();
+ }
+ else
+ {
+ currentEnvironment = new RDFETestEnvironmentFactory().GetTestEnvironment();
+ }
if (currentEnvironment.UserName == null)
{
currentEnvironment.UserName = "fakeuser@microsoft.com";
}
- SetAuthenticationFactory(mode, rdfeEnvironment, csmEnvironment);
+ SetAuthenticationFactory(mode, currentEnvironment);
AzureEnvironment environment = new AzureEnvironment { Name = testEnvironmentName };
Debug.Assert(currentEnvironment != null);
environment.Endpoints[AzureEnvironment.Endpoint.ActiveDirectory] = currentEnvironment.Endpoints.AADAuthUri.AbsoluteUri;
environment.Endpoints[AzureEnvironment.Endpoint.Gallery] = currentEnvironment.Endpoints.GalleryUri.AbsoluteUri;
-
- if (csmEnvironment != null)
- {
- environment.Endpoints[AzureEnvironment.Endpoint.ResourceManager] = csmEnvironment.BaseUri.AbsoluteUri;
- }
-
- if (rdfeEnvironment != null)
- {
- environment.Endpoints[AzureEnvironment.Endpoint.ServiceManagement] = rdfeEnvironment.BaseUri.AbsoluteUri;
- }
+ environment.Endpoints[AzureEnvironment.Endpoint.ServiceManagement] = currentEnvironment.BaseUri.AbsoluteUri;
if (!ProfileClient.Profile.Environments.ContainsKey(testEnvironmentName))
{
@@ -169,44 +202,29 @@ private void SetupAzureEnvironmentFromEnvironmentVariables(AzureModule mode)
}
}
- private void SetAuthenticationFactory(AzureModule mode, TestEnvironment rdfeEnvironment, TestEnvironment csmEnvironment)
+ private void SetAuthenticationFactory(AzureModule mode, TestEnvironment environment)
{
string jwtToken = null;
X509Certificate2 certificate = null;
- TestEnvironment currentEnvironment = (mode == AzureModule.AzureResourceManager ? csmEnvironment : rdfeEnvironment);
- if (mode == AzureModule.AzureServiceManagement)
+ if (environment.Credentials is TokenCloudCredentials)
{
- if (rdfeEnvironment.Credentials is TokenCloudCredentials)
- {
- jwtToken = ((TokenCloudCredentials)rdfeEnvironment.Credentials).Token;
- }
- if (rdfeEnvironment.Credentials is CertificateCloudCredentials)
- {
- certificate = ((CertificateCloudCredentials)rdfeEnvironment.Credentials).ManagementCertificate;
- }
+ jwtToken = ((TokenCloudCredentials)environment.Credentials).Token;
}
- else
+ if (environment.Credentials is CertificateCloudCredentials)
{
- if (csmEnvironment.Credentials is TokenCloudCredentials)
- {
- jwtToken = ((TokenCloudCredentials)csmEnvironment.Credentials).Token;
- }
- if (csmEnvironment.Credentials is CertificateCloudCredentials)
- {
- certificate = ((CertificateCloudCredentials)csmEnvironment.Credentials).ManagementCertificate;
- }
+ certificate = ((CertificateCloudCredentials)environment.Credentials).ManagementCertificate;
}
if (jwtToken != null)
{
- AzureSession.AuthenticationFactory = new MockTokenAuthenticationFactory(currentEnvironment.UserName,
+ AzureSession.AuthenticationFactory = new MockTokenAuthenticationFactory(environment.UserName,
jwtToken);
}
else if (certificate != null)
{
- AzureSession.AuthenticationFactory = new MockCertificateAuthenticationFactory(currentEnvironment.UserName,
+ AzureSession.AuthenticationFactory = new MockCertificateAuthenticationFactory(environment.UserName,
certificate);
}
}
@@ -223,14 +241,7 @@ public void SetupModules(AzureModule mode, params string[] modules)
{
this.modules.Add(Path.Combine(PackageDirectory, @"ServiceManagement\Azure\Azure.psd1"));
}
- else if (mode == AzureModule.AzureResourceManager)
- {
- this.modules.Add(Path.Combine(PackageDirectory, @"ResourceManager\AzureResourceManager\AzureResourceManager.psd1"));
- }
- else
- {
- throw new ArgumentException("Unknown command type for testing");
- }
+
this.modules.Add("Assert.ps1");
this.modules.Add("Common.ps1");
this.modules.AddRange(modules);
diff --git a/src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/Mocks/MockCertificateAuthenticationFactory.cs b/src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/Mocks/MockCertificateAuthenticationFactory.cs
index e8016b59a4f6..5c888d2e887e 100644
--- a/src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/Mocks/MockCertificateAuthenticationFactory.cs
+++ b/src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/Mocks/MockCertificateAuthenticationFactory.cs
@@ -79,5 +79,11 @@ public Microsoft.Rest.ServiceClientCredentials GetServiceClientCredentials(Azure
{
throw new System.NotImplementedException();
}
+
+
+ public SubscriptionCloudCredentials GetSubscriptionCloudCredentials(AzureContext context, AzureEnvironment.Endpoint targetEndpoint)
+ {
+ return new CertificateCloudCredentials(context.Subscription.Id.ToString(), Certificate);
+ }
}
}
diff --git a/src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/Mocks/MockTokenAuthenticationFactory.cs b/src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/Mocks/MockTokenAuthenticationFactory.cs
index db1e257ff57f..88cdcfce346e 100644
--- a/src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/Mocks/MockTokenAuthenticationFactory.cs
+++ b/src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/Mocks/MockTokenAuthenticationFactory.cs
@@ -119,5 +119,11 @@ public Microsoft.Rest.ServiceClientCredentials GetServiceClientCredentials(Azure
{
return new Microsoft.Rest.TokenCredentials(Token.AccessToken);
}
+
+
+ public SubscriptionCloudCredentials GetSubscriptionCloudCredentials(AzureContext context, AzureEnvironment.Endpoint targetEndpoint)
+ {
+ return new AccessTokenCredential(context.Subscription.Id, Token);
+ }
}
}
diff --git a/src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/packages.config b/src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/packages.config
index 942d14ec3068..6c96e0abf665 100644
--- a/src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/packages.config
+++ b/src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/packages.config
@@ -2,7 +2,7 @@
-
+
diff --git a/src/ResourceManager/Compute/AzureRM.Compute.psd1 b/src/ResourceManager/Compute/AzureRM.Compute.psd1
index e09328b9938e..3f61cbb6beed 100644
--- a/src/ResourceManager/Compute/AzureRM.Compute.psd1
+++ b/src/ResourceManager/Compute/AzureRM.Compute.psd1
@@ -62,7 +62,7 @@ TypesToProcess = @(
FormatsToProcess = @(
'.\Microsoft.Azure.Commands.Compute.format.ps1xml',
'.\Microsoft.Azure.Commands.Compute.format.generated.ps1xml',
- '.\Microsoft.Azure.Commands.Compute.Automation.format.generated.ps1xml',
+ '.\Microsoft.Azure.Commands.Compute.Automation.format.generated.ps1xml'
)
# Modules to import as nested modules of the module specified in ModuleToProcess
diff --git a/src/ResourceManager/Compute/Commands.Compute.Test/Commands.Compute.Test.csproj b/src/ResourceManager/Compute/Commands.Compute.Test/Commands.Compute.Test.csproj
index 0cebb138c078..e73ad97d3110 100644
--- a/src/ResourceManager/Compute/Commands.Compute.Test/Commands.Compute.Test.csproj
+++ b/src/ResourceManager/Compute/Commands.Compute.Test/Commands.Compute.Test.csproj
@@ -50,7 +50,7 @@
..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.dll
- ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.3.0-preview\lib\net45\Microsoft.Azure.Common.Authentication.dll
+ ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.3.1-preview\lib\net45\Microsoft.Azure.Common.Authentication.dllTrue
@@ -361,9 +361,6 @@
-
- xcopy "$(SolutionDir)Package\$(ConfigurationName)\*.*" $(TargetDir) /Y /E
- This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
diff --git a/src/ResourceManager/Compute/Commands.Compute.Test/Common/ComputeTestController.cs b/src/ResourceManager/Compute/Commands.Compute.Test/Common/ComputeTestController.cs
index 3e80837fd0dc..572482b43ce2 100644
--- a/src/ResourceManager/Compute/Commands.Compute.Test/Common/ComputeTestController.cs
+++ b/src/ResourceManager/Compute/Commands.Compute.Test/Common/ComputeTestController.cs
@@ -21,7 +21,6 @@
using Microsoft.Azure.Subscriptions;
using Microsoft.Azure.Test.HttpRecorder;
using Microsoft.WindowsAzure.Commands.ScenarioTest;
-using Microsoft.WindowsAzure.Commands.Utilities.Common;
using Microsoft.Azure.Management.Storage;
using Microsoft.Azure.Test;
using System;
@@ -119,11 +118,16 @@ public void RunPsTestWorkflow(
var callingClassName = callingClassType
.Split(new[] { "." }, StringSplitOptions.RemoveEmptyEntries)
.Last();
- helper.SetupModules(
- AzureModule.AzureResourceManager,
- "ScenarioTests\\Common.ps1",
- "ScenarioTests\\ComputeTestCommon.ps1",
- "ScenarioTests\\" + callingClassName + ".ps1");
+ helper.SetupModules(AzureModule.AzureResourceManager,
+ "ScenarioTests\\Common.ps1",
+ "ScenarioTests\\ComputeTestCommon.ps1",
+ "ScenarioTests\\" + callingClassName + ".ps1",
+ helper.RMProfileModule,
+ helper.RMResourceModule,
+ helper.RMStorageDataPlaneModule,
+ helper.RMStorageModule,
+ helper.GetRMModulePath("AzureRM.Compute.psd1"),
+ helper.GetRMModulePath("AzureRM.Network.psd1"));
try
{
diff --git a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/AddVhdTests.ps1 b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/AddVhdTests.ps1
index 0d87c027064c..b776eba9e197 100644
--- a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/AddVhdTests.ps1
+++ b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/AddVhdTests.ps1
@@ -25,14 +25,14 @@ function Test-AddVhd
{
# Common
$loc = Get-ComputeVMLocation;
- New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;
+ New-AzureRmResourceGroup -Name $rgname -Location $loc -Force;
# Storage Account (SA)
$stoname = 'sto' + $rgname;
$stotype = 'Standard_GRS';
- New-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
- $stoaccount = Get-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname;
- $storageKey = Get-AzureRMStorageAccountKey -ResourceGroupName $rgname -Name $stoname;
+ New-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
+ $stoaccount = Get-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname;
+ $storageKey = Get-AzureRmStorageAccountKey -ResourceGroupName $rgname -Name $stoname;
$vhdContainerName = 'vhds';
$path = (get-item -path ".\").FullName;
@@ -48,7 +48,7 @@ function Test-AddVhd
$vhdDestUri = [System.String]::Format("{0}{1}/{2}{3}.vhd", $stoaccount.PrimaryEndpoints.Blob.AbsoluteUri, $vhdContainerName, $vhdName, $rgname);
Write-Output ("Start Uploading... : " + $testItem.vhdName);
- $vhdUploadContext = Add-AzureRMVhd -ResourceGroupName $rgname -Destination $vhdDestUri -LocalFilePath $vhdLocalPath -NumberOfUploaderThreads 1;
+ $vhdUploadContext = Add-AzureRmVhd -ResourceGroupName $rgname -Destination $vhdDestUri -LocalFilePath $vhdLocalPath -NumberOfUploaderThreads 1;
Start-Sleep -s 5;
Write-Output ("Destination Uri :" + $vhdUploadContext.DestinationUri);
diff --git a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/AvailabilitySetTests.ps1 b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/AvailabilitySetTests.ps1
index fc6c8b85a6e9..f40f2bb65c12 100644
--- a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/AvailabilitySetTests.ps1
+++ b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/AvailabilitySetTests.ps1
@@ -25,27 +25,27 @@ function Test-AvailabilitySet
{
# Common
$loc = Get-ComputeVMLocation;
- New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;
+ New-AzureRmResourceGroup -Name $rgname -Location $loc -Force;
$asetName = 'avs' + $rgname;
$nonDefaultUD = 2;
$nonDefaultFD = 3;
- New-AzureRMAvailabilitySet -ResourceGroupName $rgname -Name $asetName -Location $loc -PlatformUpdateDomainCount $nonDefaultUD -PlatformFaultDomainCount $nonDefaultFD;
+ New-AzureRmAvailabilitySet -ResourceGroupName $rgname -Name $asetName -Location $loc -PlatformUpdateDomainCount $nonDefaultUD -PlatformFaultDomainCount $nonDefaultFD;
- $asets = Get-AzureRMAvailabilitySet -ResourceGroupName $rgname;
+ $asets = Get-AzureRmAvailabilitySet -ResourceGroupName $rgname;
Assert-NotNull $asets;
Assert-AreEqual $asetName $asets[0].Name;
- $aset = Get-AzureRMAvailabilitySet -ResourceGroupName $rgname -Name $asetName;
+ $aset = Get-AzureRmAvailabilitySet -ResourceGroupName $rgname -Name $asetName;
Assert-NotNull $aset;
Assert-AreEqual $asetName $aset.Name;
Assert-AreEqual $aset.PlatformUpdateDomainCount $nonDefaultUD;
Assert-AreEqual $aset.PlatformFaultDomainCount $nonDefaultFD;
- Remove-AzureRMAvailabilitySet -ResourceGroupName $rgname -Name $asetName -Force;
+ Remove-AzureRmAvailabilitySet -ResourceGroupName $rgname -Name $asetName -Force;
- $asets = Get-AzureRMAvailabilitySet -ResourceGroupName $rgname;
+ $asets = Get-AzureRmAvailabilitySet -ResourceGroupName $rgname;
Assert-AreEqual $asets $null;
}
finally
diff --git a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/ComputeCloudExceptionTests.ps1 b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/ComputeCloudExceptionTests.ps1
index a8b2be553c8c..68eb934cc95b 100644
--- a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/ComputeCloudExceptionTests.ps1
+++ b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/ComputeCloudExceptionTests.ps1
@@ -21,12 +21,12 @@ function Run-ComputeCloudExceptionTests
{
# Common
$loc = Get-ComputeVMLocation;
- New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;
+ New-AzureRmResourceGroup -Name $rgname -Location $loc -Force;
$compare = "Resource*NotFound*OperationID : `'*`'";
- Assert-ThrowsLike { $s1 = Get-AzureRMVM -ResourceGroupName $rgname -Name 'test' } $compare;
- Assert-ThrowsLike { $s2 = Get-AzureRMVM -ResourceGroupName 'foo' -Name 'bar' } $compare;
- Assert-ThrowsLike { $s3 = Get-AzureRMAvailabilitySet -ResourceGroupName $rgname -Name 'test' } $compare;
+ Assert-ThrowsLike { $s1 = Get-AzureRmVM -ResourceGroupName $rgname -Name 'test' } $compare;
+ Assert-ThrowsLike { $s2 = Get-AzureRmVM -ResourceGroupName 'foo' -Name 'bar' } $compare;
+ Assert-ThrowsLike { $s3 = Get-AzureRmAvailabilitySet -ResourceGroupName $rgname -Name 'test' } $compare;
}
finally
{
diff --git a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/ComputeTestCommon.ps1 b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/ComputeTestCommon.ps1
index d34affffd0d4..bab3511dac61 100644
--- a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/ComputeTestCommon.ps1
+++ b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/ComputeTestCommon.ps1
@@ -109,7 +109,7 @@ function Get-ComputeDefaultLocation
# Cleans the created resource group
function Clean-ResourceGroup($rgname)
{
- Remove-AzureRMResourceGroup -Name $rgname -Force;
+ Remove-AzureRmResourceGroup -Name $rgname -Force;
}
# Get Compute Test Tag
@@ -196,7 +196,7 @@ function Get-DefaultVMSize
{
param([string] $location = "westus")
- $vmSizes = Get-AzureRMVMSize -Location $location | where { $_.NumberOfCores -ge 4 -and $_.MaxDataDiskCount -ge 8 };
+ $vmSizes = Get-AzureRmVMSize -Location $location | where { $_.NumberOfCores -ge 4 -and $_.MaxDataDiskCount -ge 8 };
foreach ($sz in $vmSizes)
{
@@ -218,7 +218,7 @@ function Get-DefaultRDFEImage
{
param([string] $loca = "East Asia", [string] $query = '*Windows*Data*Center*')
- $d = (Azure\Get-AzureRMVMImage | where {$_.ImageName -like $query -and ($_.Location -like "*;$loca;*" -or $_.Location -like "$loca;*" -or $_.Location -like "*;$loca" -or $_.Location -eq "$loca")});
+ $d = (Azure\Get-AzureRmVMImage | where {$_.ImageName -like $query -and ($_.Location -like "*;$loca;*" -or $_.Location -like "$loca;*" -or $_.Location -like "*;$loca" -or $_.Location -eq "$loca")});
if ($d -eq $null)
{
@@ -247,7 +247,7 @@ function Get-DefaultCRPImage
{
param([string] $loc = "westus", [string] $query = '*Microsoft*Windows*Server')
- $result = (Get-AzureRMVMImagePublisher -Location $loc) | select -ExpandProperty PublisherName | where { $_ -like $query };
+ $result = (Get-AzureRmVMImagePublisher -Location $loc) | select -ExpandProperty PublisherName | where { $_ -like $query };
if ($result.Count -eq 1)
{
$defaultPublisher = $result;
@@ -257,7 +257,7 @@ function Get-DefaultCRPImage
$defaultPublisher = $result[0];
}
- $result = (Get-AzureRMVMImageOffer -Location $loc -PublisherName $defaultPublisher) | select -ExpandProperty Offer | where { $_ -like '*Windows*' };
+ $result = (Get-AzureRmVMImageOffer -Location $loc -PublisherName $defaultPublisher) | select -ExpandProperty Offer | where { $_ -like '*Windows*' };
if ($result.Count -eq 1)
{
$defaultOffer = $result;
@@ -267,7 +267,7 @@ function Get-DefaultCRPImage
$defaultOffer = $result[0];
}
- $result = (Get-AzureRMVMImageSku -Location $loc -PublisherName $defaultPublisher -Offer $defaultOffer) | select -ExpandProperty Skus;
+ $result = (Get-AzureRmVMImageSku -Location $loc -PublisherName $defaultPublisher -Offer $defaultOffer) | select -ExpandProperty Skus;
if ($result.Count -eq 1)
{
$defaultSku = $result;
@@ -277,7 +277,7 @@ function Get-DefaultCRPImage
$defaultSku = $result[0];
}
- $result = (Get-AzureRMVMImage -Location $loc -Offer $defaultOffer -PublisherName $defaultPublisher -Skus $defaultSku) | select -ExpandProperty Version;
+ $result = (Get-AzureRmVMImage -Location $loc -Offer $defaultOffer -PublisherName $defaultPublisher -Skus $defaultSku) | select -ExpandProperty Version;
if ($result.Count -eq 1)
{
$defaultVersion = $result;
@@ -287,7 +287,7 @@ function Get-DefaultCRPImage
$defaultVersion = $result[0];
}
- $vmimg = Get-AzureRMVMImage -Location $loc -Offer $defaultOffer -PublisherName $defaultPublisher -Skus $defaultSku -Version $defaultVersion;
+ $vmimg = Get-AzureRmVMImage -Location $loc -Offer $defaultOffer -PublisherName $defaultPublisher -Skus $defaultSku -Version $defaultVersion;
return $vmimg;
}
@@ -326,7 +326,7 @@ function Get-MarketplaceImage
{
param([string] $location = "westus", [string] $pubFilter = '*', [string] $offerFilter = '*')
- $imgs = Get-AzureRMVMImagePublisher -Location $location | where { $_.PublisherName -like $pubFilter } | Get-AzureRMVMImageOffer | where { $_.Offer -like $offerFilter } | Get-AzureRMVMImageSku | Get-AzureRMVMImage | Get-AzureRMVMImage | where { $_.PurchasePlan -ne $null };
+ $imgs = Get-AzureRmVMImagePublisher -Location $location | where { $_.PublisherName -like $pubFilter } | Get-AzureRmVMImageOffer | where { $_.Offer -like $offerFilter } | Get-AzureRmVMImageSku | Get-AzureRmVMImage | Get-AzureRmVMImage | where { $_.PurchasePlan -ne $null };
return $imgs;
}
@@ -343,7 +343,7 @@ function Get-DefaultVMConfig
$vmsize = Get-DefaultVMSize $location;
$vmname = Get-RandomItemName 'crptestps';
- $vm = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
+ $vm = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
return $vm;
}
@@ -400,7 +400,7 @@ function Get-ResourceProviderLocation
{
param ([string] $name, [string] $default = "westus", [bool] $canonical = $true)
- $loc = Get-AzureRMLocation | where { $_.Name.Equals($name) };
+ $loc = Get-AzureRmLocation | where { $_.Name.Equals($name) };
if ($loc -eq $null)
{
diff --git a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/Generated/VirtualMachineDynamicTest1.ps1 b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/Generated/VirtualMachineDynamicTest1.ps1
index 6854275b363d..54e36f94f95b 100644
--- a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/Generated/VirtualMachineDynamicTest1.ps1
+++ b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/Generated/VirtualMachineDynamicTest1.ps1
@@ -25,7 +25,7 @@ function get_vm_config_object
$st = Write-Verbose "Creating VM Config Object - Start";
$vmname = 'vm' + $rgname;
- $p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
+ $p = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
$st = Write-Verbose "Creating VM Config Object - End";
@@ -44,8 +44,8 @@ function get_created_storage_account_name
$st = Write-Verbose "Creating and getting storage account for '${loc}' and '${rgname}' - '${stotype}' & '${stoname}'";
- $st = New-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
- $st = Get-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname;
+ $st = New-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
+ $st = Get-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname;
$st = Write-Verbose "Creating and getting storage account for '${loc}' and '${rgname}' - End";
@@ -59,14 +59,14 @@ function create_and_setup_nic_ids
$st = Write-Verbose "Creating and getting NICs for '${loc}' and '${rgname}' - Start";
- $subnet = New-AzureRMVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
- $vnet = New-AzureRMVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
- $vnet = Get-AzureRMVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
+ $subnet = New-AzureRmVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
+ $vnet = New-AzureRmVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
+ $vnet = Get-AzureRmVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
$subnetId = $vnet.Subnets[0].Id;
$nic_ids = @($null) * 1;
- $nic0 = New-AzureRMNetworkInterface -Force -Name ('nic0' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId;
+ $nic0 = New-AzureRmNetworkInterface -Force -Name ('nic0' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId;
$nic_ids[0] = $nic0.Id;
- $vmconfig = Add-AzureRMVMNetworkInterface -VM $vmconfig -Id $nic0.Id -Primary;
+ $vmconfig = Add-AzureRmVMNetworkInterface -VM $vmconfig -Id $nic0.Id -Primary;
$st = Write-Verbose "Creating and getting NICs for '${loc}' and '${rgname}' - End";
return $nic_ids;
@@ -85,7 +85,7 @@ function create_and_setup_vm_config_object
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force;
$cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword);
$computerName = "cn" + $rgname;
- $vmconfig = Set-AzureRMVMOperatingSystem -VM $vmconfig -Windows -ComputerName $computerName -Credential $cred;
+ $vmconfig = Set-AzureRmVMOperatingSystem -VM $vmconfig -Windows -ComputerName $computerName -Credential $cred;
$st = Write-Verbose "Creating and setting up the VM config object for '${loc}', '${rgname}' and '${vmsize}' - End";
@@ -103,11 +103,11 @@ function setup_image_and_disks
$osDiskVhdUri = "https://$stoname.blob.core.windows.net/test/os.vhd";
$osDiskCaching = 'ReadWrite';
- $vmconfig = Set-AzureRMVMOSDisk -VM $vmconfig -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
+ $vmconfig = Set-AzureRmVMOSDisk -VM $vmconfig -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
# Image Reference
$imgRef = Get-DefaultCRPImage -loc $loc;
- $vmconfig = ($imgRef | Set-AzureRMVMSourceImage -VM $vmconfig);
+ $vmconfig = ($imgRef | Set-AzureRmVMSourceImage -VM $vmconfig);
# Do not add any data disks
$vmconfig.StorageProfile.DataDisks = $null;
@@ -131,7 +131,7 @@ function ps_vm_dynamic_test_func_1_pstestrg592
$st = Write-Verbose "Running Test ps_vm_dynamic_test_func_1_pstestrg592 - Start ${rgname}, ${loc} & ${vmsize}";
$st = Write-Verbose 'Running Test ps_vm_dynamic_test_func_1_pstestrg592 - Creating Resource Group';
- $st = New-AzureRMResourceGroup -Location $loc -Name $rgname -Force;
+ $st = New-AzureRmResourceGroup -Location $loc -Name $rgname -Force;
$vmconfig = create_and_setup_vm_config_object $loc $rgname $vmsize;
@@ -148,15 +148,15 @@ function ps_vm_dynamic_test_func_1_pstestrg592
$st = Write-Verbose 'Running Test ps_vm_dynamic_test_func_1_pstestrg592 - Creating VM';
$vmname = 'vm' + $rgname;
- $st = New-AzureRMVM -ResourceGroupName $rgname -Location $loc -VM $vmconfig;
+ $st = New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $vmconfig;
# Get VM
$st = Write-Verbose 'Running Test ps_vm_dynamic_test_func_1_pstestrg592 - Getting VM';
- $vm1 = Get-AzureRMVM -Name $vmname -ResourceGroupName $rgname;
+ $vm1 = Get-AzureRmVM -Name $vmname -ResourceGroupName $rgname;
# Remove
$st = Write-Verbose 'Running Test ps_vm_dynamic_test_func_1_pstestrg592 - Removing VM';
- $st = Remove-AzureRMVM -Name $vmname -ResourceGroupName $rgname -Force;
+ $st = Remove-AzureRmVM -Name $vmname -ResourceGroupName $rgname -Force;
$st = Write-Verbose 'Running Test ps_vm_dynamic_test_func_1_pstestrg592 - End';
}
diff --git a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/Generated/VirtualMachineDynamicTest2.ps1 b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/Generated/VirtualMachineDynamicTest2.ps1
index b7fc985fed11..2ad2ee39fd1f 100644
--- a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/Generated/VirtualMachineDynamicTest2.ps1
+++ b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/Generated/VirtualMachineDynamicTest2.ps1
@@ -25,7 +25,7 @@ function get_vm_config_object
$st = Write-Verbose "Creating VM Config Object - Start";
$vmname = 'vm' + $rgname;
- $p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
+ $p = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
$st = Write-Verbose "Creating VM Config Object - End";
@@ -44,8 +44,8 @@ function get_created_storage_account_name
$st = Write-Verbose "Creating and getting storage account for '${loc}' and '${rgname}' - '${stotype}' & '${stoname}'";
- $st = New-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
- $st = Get-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname;
+ $st = New-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
+ $st = Get-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname;
$st = Write-Verbose "Creating and getting storage account for '${loc}' and '${rgname}' - End";
@@ -59,14 +59,14 @@ function create_and_setup_nic_ids
$st = Write-Verbose "Creating and getting NICs for '${loc}' and '${rgname}' - Start";
- $subnet = New-AzureRMVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
- $vnet = New-AzureRMVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
- $vnet = Get-AzureRMVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
+ $subnet = New-AzureRmVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
+ $vnet = New-AzureRmVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
+ $vnet = Get-AzureRmVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
$subnetId = $vnet.Subnets[0].Id;
$nic_ids = @($null) * 1;
- $nic0 = New-AzureRMNetworkInterface -Force -Name ('nic0' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId;
+ $nic0 = New-AzureRmNetworkInterface -Force -Name ('nic0' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId;
$nic_ids[0] = $nic0.Id;
- $vmconfig = Add-AzureRMVMNetworkInterface -VM $vmconfig -Id $nic0.Id -Primary;
+ $vmconfig = Add-AzureRmVMNetworkInterface -VM $vmconfig -Id $nic0.Id -Primary;
$st = Write-Verbose "Creating and getting NICs for '${loc}' and '${rgname}' - End";
return $nic_ids;
@@ -85,7 +85,7 @@ function create_and_setup_vm_config_object
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force;
$cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword);
$computerName = "cn" + $rgname;
- $vmconfig = Set-AzureRMVMOperatingSystem -VM $vmconfig -Windows -ComputerName $computerName -Credential $cred;
+ $vmconfig = Set-AzureRmVMOperatingSystem -VM $vmconfig -Windows -ComputerName $computerName -Credential $cred;
$st = Write-Verbose "Creating and setting up the VM config object for '${loc}', '${rgname}' and '${vmsize}' - End";
@@ -103,11 +103,11 @@ function setup_image_and_disks
$osDiskVhdUri = "https://$stoname.blob.core.windows.net/test/os.vhd";
$osDiskCaching = 'ReadWrite';
- $vmconfig = Set-AzureRMVMOSDisk -VM $vmconfig -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
+ $vmconfig = Set-AzureRmVMOSDisk -VM $vmconfig -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
# Image Reference
$imgRef = Get-DefaultCRPImage -loc $loc;
- $vmconfig = ($imgRef | Set-AzureRMVMSourceImage -VM $vmconfig);
+ $vmconfig = ($imgRef | Set-AzureRmVMSourceImage -VM $vmconfig);
# Do not add any data disks
$vmconfig.StorageProfile.DataDisks = $null;
@@ -131,7 +131,7 @@ function ps_vm_dynamic_test_func_2_pstestrg2115
$st = Write-Verbose "Running Test ps_vm_dynamic_test_func_2_pstestrg2115 - Start ${rgname}, ${loc} & ${vmsize}";
$st = Write-Verbose 'Running Test ps_vm_dynamic_test_func_2_pstestrg2115 - Creating Resource Group';
- $st = New-AzureRMResourceGroup -Location $loc -Name $rgname -Force;
+ $st = New-AzureRmResourceGroup -Location $loc -Name $rgname -Force;
$vmconfig = create_and_setup_vm_config_object $loc $rgname $vmsize;
@@ -148,15 +148,15 @@ function ps_vm_dynamic_test_func_2_pstestrg2115
$st = Write-Verbose 'Running Test ps_vm_dynamic_test_func_2_pstestrg2115 - Creating VM';
$vmname = 'vm' + $rgname;
- $st = New-AzureRMVM -ResourceGroupName $rgname -Location $loc -VM $vmconfig;
+ $st = New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $vmconfig;
# Get VM
$st = Write-Verbose 'Running Test ps_vm_dynamic_test_func_2_pstestrg2115 - Getting VM';
- $vm1 = Get-AzureRMVM -Name $vmname -ResourceGroupName $rgname;
+ $vm1 = Get-AzureRmVM -Name $vmname -ResourceGroupName $rgname;
# Remove
$st = Write-Verbose 'Running Test ps_vm_dynamic_test_func_2_pstestrg2115 - Removing VM';
- $st = Remove-AzureRMVM -Name $vmname -ResourceGroupName $rgname -Force;
+ $st = Remove-AzureRmVM -Name $vmname -ResourceGroupName $rgname -Force;
$st = Write-Verbose 'Running Test ps_vm_dynamic_test_func_2_pstestrg2115 - End';
}
diff --git a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/Generated/VirtualMachineDynamicTest3.ps1 b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/Generated/VirtualMachineDynamicTest3.ps1
index 04c425c7fd17..bf2e6681208a 100644
--- a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/Generated/VirtualMachineDynamicTest3.ps1
+++ b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/Generated/VirtualMachineDynamicTest3.ps1
@@ -25,7 +25,7 @@ function get_vm_config_object
$st = Write-Verbose "Creating VM Config Object - Start";
$vmname = 'vm' + $rgname;
- $p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
+ $p = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
$st = Write-Verbose "Creating VM Config Object - End";
@@ -44,8 +44,8 @@ function get_created_storage_account_name
$st = Write-Verbose "Creating and getting storage account for '${loc}' and '${rgname}' - '${stotype}' & '${stoname}'";
- $st = New-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
- $st = Get-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname;
+ $st = New-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
+ $st = Get-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname;
$st = Write-Verbose "Creating and getting storage account for '${loc}' and '${rgname}' - End";
@@ -59,14 +59,14 @@ function create_and_setup_nic_ids
$st = Write-Verbose "Creating and getting NICs for '${loc}' and '${rgname}' - Start";
- $subnet = New-AzureRMVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
- $vnet = New-AzureRMVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
- $vnet = Get-AzureRMVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
+ $subnet = New-AzureRmVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
+ $vnet = New-AzureRmVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
+ $vnet = Get-AzureRmVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
$subnetId = $vnet.Subnets[0].Id;
$nic_ids = @($null) * 1;
- $nic0 = New-AzureRMNetworkInterface -Force -Name ('nic0' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId;
+ $nic0 = New-AzureRmNetworkInterface -Force -Name ('nic0' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId;
$nic_ids[0] = $nic0.Id;
- $vmconfig = Add-AzureRMVMNetworkInterface -VM $vmconfig -Id $nic0.Id -Primary;
+ $vmconfig = Add-AzureRmVMNetworkInterface -VM $vmconfig -Id $nic0.Id -Primary;
$st = Write-Verbose "Creating and getting NICs for '${loc}' and '${rgname}' - End";
return $nic_ids;
@@ -85,7 +85,7 @@ function create_and_setup_vm_config_object
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force;
$cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword);
$computerName = "cn" + $rgname;
- $vmconfig = Set-AzureRMVMOperatingSystem -VM $vmconfig -Windows -ComputerName $computerName -Credential $cred;
+ $vmconfig = Set-AzureRmVMOperatingSystem -VM $vmconfig -Windows -ComputerName $computerName -Credential $cred;
$st = Write-Verbose "Creating and setting up the VM config object for '${loc}', '${rgname}' and '${vmsize}' - End";
@@ -103,11 +103,11 @@ function setup_image_and_disks
$osDiskVhdUri = "https://$stoname.blob.core.windows.net/test/os.vhd";
$osDiskCaching = 'ReadWrite';
- $vmconfig = Set-AzureRMVMOSDisk -VM $vmconfig -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
+ $vmconfig = Set-AzureRmVMOSDisk -VM $vmconfig -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
# Image Reference
$imgRef = Get-DefaultCRPImage -loc $loc;
- $vmconfig = ($imgRef | Set-AzureRMVMSourceImage -VM $vmconfig);
+ $vmconfig = ($imgRef | Set-AzureRmVMSourceImage -VM $vmconfig);
# Do not add any data disks
$vmconfig.StorageProfile.DataDisks = $null;
@@ -131,7 +131,7 @@ function ps_vm_dynamic_test_func_3_pstestrg4410
$st = Write-Verbose "Running Test ps_vm_dynamic_test_func_3_pstestrg4410 - Start ${rgname}, ${loc} & ${vmsize}";
$st = Write-Verbose 'Running Test ps_vm_dynamic_test_func_3_pstestrg4410 - Creating Resource Group';
- $st = New-AzureRMResourceGroup -Location $loc -Name $rgname -Force;
+ $st = New-AzureRmResourceGroup -Location $loc -Name $rgname -Force;
$vmconfig = create_and_setup_vm_config_object $loc $rgname $vmsize;
@@ -148,15 +148,15 @@ function ps_vm_dynamic_test_func_3_pstestrg4410
$st = Write-Verbose 'Running Test ps_vm_dynamic_test_func_3_pstestrg4410 - Creating VM';
$vmname = 'vm' + $rgname;
- $st = New-AzureRMVM -ResourceGroupName $rgname -Location $loc -VM $vmconfig;
+ $st = New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $vmconfig;
# Get VM
$st = Write-Verbose 'Running Test ps_vm_dynamic_test_func_3_pstestrg4410 - Getting VM';
- $vm1 = Get-AzureRMVM -Name $vmname -ResourceGroupName $rgname;
+ $vm1 = Get-AzureRmVM -Name $vmname -ResourceGroupName $rgname;
# Remove
$st = Write-Verbose 'Running Test ps_vm_dynamic_test_func_3_pstestrg4410 - Removing VM';
- $st = Remove-AzureRMVM -Name $vmname -ResourceGroupName $rgname -Force;
+ $st = Remove-AzureRmVM -Name $vmname -ResourceGroupName $rgname -Force;
$st = Write-Verbose 'Running Test ps_vm_dynamic_test_func_3_pstestrg4410 - End';
}
diff --git a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VMDynamicTests.ps1 b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VMDynamicTests.ps1
index 969df1558f10..15d5f167ede5 100644
--- a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VMDynamicTests.ps1
+++ b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VMDynamicTests.ps1
@@ -16,7 +16,7 @@ function get_all_vm_locations
{
$st = Write-Verbose 'Getting all Azure location - Start';
- $locations = Get-AzureRMLocation | where { $_.Name -eq 'Microsoft.Compute/virtualMachines' } | select -ExpandProperty Locations;
+ $locations = Get-AzureRmLocation | where { $_.Name -eq 'Microsoft.Compute/virtualMachines' } | select -ExpandProperty Locations;
$st = Write-Verbose 'Getting all Azure location - End';
@@ -29,7 +29,7 @@ function get_all_standard_vm_sizes
$st = Write-Verbose "Getting all VM sizes in location '${location}' - Start";
- $vmsizes = Get-AzureRMVMSize -Location $location | where { $_.Name -like 'Standard_A*' -and $_.NumberOfCores -le 4 } | select -ExpandProperty Name;
+ $vmsizes = Get-AzureRmVMSize -Location $location | where { $_.Name -like 'Standard_A*' -and $_.NumberOfCores -le 4 } | select -ExpandProperty Name;
$st = Write-Verbose "Getting all VM sizes in location [${location}] - End";
@@ -92,7 +92,7 @@ function get_vm_config_object
$st = Write-Verbose "Creating VM Config Object - Start";
$vmname = $rgname + 'vm';
- $p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
+ $p = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
$st = Write-Verbose "Creating VM Config Object - End";
@@ -115,9 +115,9 @@ function get_created_storage_account_name
$st = Write-Verbose "Creating and getting storage account for '${loc}' and '${rgname}' - '${stotype}' & '${stoname}'";
- $st = New-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
- $st = Set-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Tags (Get-ComputeTestTag $global:ps_test_tag_name);
- $st = Get-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname;
+ $st = New-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
+ $st = Set-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname -Tags (Get-ComputeTestTag $global:ps_test_tag_name);
+ $st = Get-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname;
$st = Write-Verbose "Creating and getting storage account for '${loc}' and '${rgname}' - End";
@@ -139,9 +139,9 @@ function create_and_setup_nic_ids
$st = Write-Verbose "Creating and getting NICs for '${loc}' and '${rgname}' - Start";
- $subnet = New-AzureRMVirtualNetworkSubnetConfig -Name ($rgname + 'subnet') -AddressPrefix "10.0.0.0/24";
- $vnet = New-AzureRMVirtualNetwork -Force -Name ($rgname + 'vnet') -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet -Tag (Get-ComputeTestTag $global:ps_test_tag_name);
- $vnet = Get-AzureRMVirtualNetwork -Name ($rgname + 'vnet') -ResourceGroupName $rgname;
+ $subnet = New-AzureRmVirtualNetworkSubnetConfig -Name ($rgname + 'subnet') -AddressPrefix "10.0.0.0/24";
+ $vnet = New-AzureRmVirtualNetwork -Force -Name ($rgname + 'vnet') -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet -Tag (Get-ComputeTestTag $global:ps_test_tag_name);
+ $vnet = Get-AzureRmVirtualNetwork -Name ($rgname + 'vnet') -ResourceGroupName $rgname;
$subnetId = $vnet.Subnets[0].Id;
'@;
@@ -175,9 +175,9 @@ function create_and_setup_nic_ids
$fn_body +=
@"
- ${nic_var_name} = New-AzureRMNetworkInterface -Force -Name ${nic_name_str} -ResourceGroupName `$rgname -Location `$loc -SubnetId `$subnetId -Tag (Get-ComputeTestTag `$global:ps_test_tag_name);
+ ${nic_var_name} = New-AzureRmNetworkInterface -Force -Name ${nic_name_str} -ResourceGroupName `$rgname -Location `$loc -SubnetId `$subnetId -Tag (Get-ComputeTestTag `$global:ps_test_tag_name);
`$nic_ids[$i] = ${nic_var_name}.Id;
- `$vmconfig = Add-AzureRMVMNetworkInterface -VM `$vmconfig -Id ${nic_var_name}.Id${primary_switch_text};
+ `$vmconfig = Add-AzureRmVMNetworkInterface -VM `$vmconfig -Id ${nic_var_name}.Id${primary_switch_text};
"@;
}
@@ -211,7 +211,7 @@ function create_and_setup_vm_config_object
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force;
$cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword);
$computerName = $rgname + "cn";
- $vmconfig = Set-AzureRMVMOperatingSystem -VM $vmconfig -Windows -ComputerName $computerName -Credential $cred;
+ $vmconfig = Set-AzureRmVMOperatingSystem -VM $vmconfig -Windows -ComputerName $computerName -Credential $cred;
$st = Write-Verbose "Creating and setting up the VM config object for '${loc}', '${rgname}' and '${vmsize}' - End";
@@ -235,11 +235,11 @@ function setup_image_and_disks
$osDiskVhdUri = "https://$stoname.blob.core.windows.net/test/os.vhd";
$osDiskCaching = 'ReadWrite';
- $vmconfig = Set-AzureRMVMOSDisk -VM $vmconfig -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
+ $vmconfig = Set-AzureRmVMOSDisk -VM $vmconfig -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
# Image Reference
$imgRef = Get-DefaultCRPImage -loc $loc;
- $vmconfig = ($imgRef | Set-AzureRMVMSourceImage -VM $vmconfig);
+ $vmconfig = ($imgRef | Set-AzureRmVMSourceImage -VM $vmconfig);
# Do not add any data disks
$vmconfig.StorageProfile.DataDisks = $null;
@@ -354,7 +354,7 @@ function ${generated_func_name}
`$st = Write-Verbose `"Running Test ${generated_func_name} - Start `${rgname}, `${loc} & `${vmsize}`";
`$st = Write-Verbose 'Running Test ${generated_func_name} - Creating Resource Group';
- `$st = New-AzureRMResourceGroup -Location `$loc -Name `$rgname -Tag (Get-ComputeTestTag `$global:ps_test_tag_name) -Force;
+ `$st = New-AzureRmResourceGroup -Location `$loc -Name `$rgname -Tag (Get-ComputeTestTag `$global:ps_test_tag_name) -Force;
`$vmconfig = create_and_setup_vm_config_object `$loc `$rgname `$vmsize;
@@ -372,15 +372,15 @@ function ${generated_func_name}
`$vmname = `$rgname + 'vm';
- `$st = New-AzureRMVM -ResourceGroupName `$rgname -Location `$loc -VM `$vmconfig -Tags (Get-ComputeTestTag `$global:ps_test_tag_name);
+ `$st = New-AzureRmVM -ResourceGroupName `$rgname -Location `$loc -VM `$vmconfig -Tags (Get-ComputeTestTag `$global:ps_test_tag_name);
# Get VM
`$st = Write-Verbose 'Running Test ${generated_func_name} - Getting VM';
- `$vm1 = Get-AzureRMVM -Name `$vmname -ResourceGroupName `$rgname;
+ `$vm1 = Get-AzureRmVM -Name `$vmname -ResourceGroupName `$rgname;
# Remove
`$st = Write-Verbose 'Running Test ${generated_func_name} - Removing VM';
- `$st = Remove-AzureRMVM -Name `$vmname -ResourceGroupName `$rgname -Force;
+ `$st = Remove-AzureRmVM -Name `$vmname -ResourceGroupName `$rgname -Force;
`$st = Write-Verbose 'Running Test ${generated_func_name} - End';
}
diff --git a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineExtensionTests.ps1 b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineExtensionTests.ps1
index 964e10b0c3f2..13bb21cb3229 100644
--- a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineExtensionTests.ps1
+++ b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineExtensionTests.ps1
@@ -25,36 +25,36 @@ function Test-VirtualMachineExtension
{
# Common
$loc = Get-ComputeVMLocation;
- New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;
+ New-AzureRmResourceGroup -Name $rgname -Location $loc -Force;
# VM Profile & Hardware
$vmsize = 'Standard_A2';
$vmname = 'vm' + $rgname;
- $p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
+ $p = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
Assert-AreEqual $p.HardwareProfile.VirtualMachineSize $vmsize;
# NRP
- $subnet = New-AzureRMVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
- $vnet = New-AzureRMVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
- $vnet = Get-AzureRMVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
+ $subnet = New-AzureRmVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
+ $vnet = New-AzureRmVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
+ $vnet = Get-AzureRmVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
$subnetId = $vnet.Subnets[0].Id;
- $pubip = New-AzureRMPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
- $pubip = Get-AzureRMPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
+ $pubip = New-AzureRmPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
+ $pubip = Get-AzureRmPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
$pubipId = $pubip.Id;
- $nic = New-AzureRMNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
- $nic = Get-AzureRMNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
+ $nic = New-AzureRmNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
+ $nic = Get-AzureRmNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
$nicId = $nic.Id;
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $nicId;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $nicId;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
# Storage Account (SA)
$stoname = 'sto' + $rgname;
$stotype = 'Standard_GRS';
- New-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
- Retry-IfException { $global:stoaccount = Get-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname; }
- $stokey = (Get-AzureRMStorageAccountKey -ResourceGroupName $rgname -Name $stoname).Key1;
+ New-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
+ Retry-IfException { $global:stoaccount = Get-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname; }
+ $stokey = (Get-AzureRmStorageAccountKey -ResourceGroupName $rgname -Name $stoname).Key1;
$osDiskName = 'osDisk';
$osDiskCaching = 'ReadWrite';
@@ -63,12 +63,12 @@ function Test-VirtualMachineExtension
$dataDiskVhdUri2 = "https://$stoname.blob.core.windows.net/test/data2.vhd";
$dataDiskVhdUri3 = "https://$stoname.blob.core.windows.net/test/data3.vhd";
- $p = Set-AzureRMVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
+ $p = Set-AzureRmVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 3 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
- $p = Remove-AzureRMVMDataDisk -VM $p -Name 'testDataDisk3';
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 3 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
+ $p = Remove-AzureRmVMDataDisk -VM $p -Name 'testDataDisk3';
Assert-AreEqual $p.StorageProfile.OSDisk.Caching $osDiskCaching;
Assert-AreEqual $p.StorageProfile.OSDisk.Name $osDiskName;
@@ -91,10 +91,10 @@ function Test-VirtualMachineExtension
$computerName = 'test';
$vhdContainer = "https://$stoname.blob.core.windows.net/test";
- $p = Set-AzureRMVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred -ProvisionVMAgent;
+ $p = Set-AzureRmVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred -ProvisionVMAgent;
$imgRef = Get-DefaultCRPWindowsImageOffline;
- $p = ($imgRef | Set-AzureRMVMSourceImage -VM $p);
+ $p = ($imgRef | Set-AzureRmVMSourceImage -VM $p);
Assert-AreEqual $p.OSProfile.AdminUsername $user;
Assert-AreEqual $p.OSProfile.ComputerName $computerName;
@@ -107,7 +107,7 @@ function Test-VirtualMachineExtension
Assert-AreEqual $p.StorageProfile.ImageReference.Version $imgRef.Version;
# Virtual Machine
- New-AzureRMVM -ResourceGroupName $rgname -Location $loc -VM $p;
+ New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $p;
# Virtual Machine Extension
$extname = 'csetest';
@@ -118,10 +118,10 @@ function Test-VirtualMachineExtension
# Set extension settings by raw strings
$settingstr = '{"fileUris":[],"commandToExecute":""}';
$protectedsettingstr = '{"storageAccountName":"' + $stoname + '","storageAccountKey":"' + $stokey + '"}';
- Set-AzureRMVMExtension -ResourceGroupName $rgname -Location $loc -VMName $vmname -Name $extname -Publisher $publisher -ExtensionType $exttype -TypeHandlerVersion $extver -SettingString $settingstr -ProtectedSettingString $protectedsettingstr;
+ Set-AzureRmVMExtension -ResourceGroupName $rgname -Location $loc -VMName $vmname -Name $extname -Publisher $publisher -ExtensionType $exttype -TypeHandlerVersion $extver -SettingString $settingstr -ProtectedSettingString $protectedsettingstr;
# Get VM Extension
- $ext = Get-AzureRMVMExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname;
+ $ext = Get-AzureRmVMExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname;
Assert-AreEqual $ext.ResourceGroupName $rgname;
Assert-AreEqual $ext.Name $extname;
Assert-AreEqual $ext.Publisher $publisher;
@@ -130,7 +130,7 @@ function Test-VirtualMachineExtension
Assert-AreEqual $ext.ResourceGroupName $rgname;
Assert-NotNull $ext.ProvisioningState;
- $ext = Get-AzureRMVMExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname -Status;
+ $ext = Get-AzureRmVMExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname -Status;
Assert-AreEqual $ext.ResourceGroupName $rgname;
Assert-AreEqual $ext.Name $extname;
Assert-AreEqual $ext.Publisher $publisher;
@@ -141,7 +141,7 @@ function Test-VirtualMachineExtension
Assert-NotNull $ext.Statuses;
# Remove Extension
- Remove-AzureRMVMExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname -Force;
+ Remove-AzureRmVMExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname -Force;
}
finally
{
@@ -164,36 +164,36 @@ function Test-VirtualMachineExtensionUsingHashTable
{
# Common
$loc = Get-ComputeVMLocation;
- New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;
+ New-AzureRmResourceGroup -Name $rgname -Location $loc -Force;
# VM Profile & Hardware
$vmsize = 'Standard_A2';
$vmname = 'vm' + $rgname;
- $p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
+ $p = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
Assert-AreEqual $p.HardwareProfile.VirtualMachineSize $vmsize;
# NRP
- $subnet = New-AzureRMVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
- $vnet = New-AzureRMVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
- $vnet = Get-AzureRMVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
+ $subnet = New-AzureRmVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
+ $vnet = New-AzureRmVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
+ $vnet = Get-AzureRmVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
$subnetId = $vnet.Subnets[0].Id;
- $pubip = New-AzureRMPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
- $pubip = Get-AzureRMPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
+ $pubip = New-AzureRmPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
+ $pubip = Get-AzureRmPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
$pubipId = $pubip.Id;
- $nic = New-AzureRMNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
- $nic = Get-AzureRMNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
+ $nic = New-AzureRmNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
+ $nic = Get-AzureRmNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
$nicId = $nic.Id;
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $nicId;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $nicId;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
# Storage Account (SA)
$stoname = 'sto' + $rgname;
$stotype = 'Standard_GRS';
- New-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
- Retry-IfException { $global:stoaccount = Get-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname; }
- $stokey = (Get-AzureRMStorageAccountKey -ResourceGroupName $rgname -Name $stoname).Key1;
+ New-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
+ Retry-IfException { $global:stoaccount = Get-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname; }
+ $stokey = (Get-AzureRmStorageAccountKey -ResourceGroupName $rgname -Name $stoname).Key1;
$osDiskName = 'osDisk';
$osDiskCaching = 'ReadWrite';
@@ -202,12 +202,12 @@ function Test-VirtualMachineExtensionUsingHashTable
$dataDiskVhdUri2 = "https://$stoname.blob.core.windows.net/test/data2.vhd";
$dataDiskVhdUri3 = "https://$stoname.blob.core.windows.net/test/data3.vhd";
- $p = Set-AzureRMVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
+ $p = Set-AzureRmVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 3 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
- $p = Remove-AzureRMVMDataDisk -VM $p -Name 'testDataDisk3';
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 3 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
+ $p = Remove-AzureRmVMDataDisk -VM $p -Name 'testDataDisk3';
Assert-AreEqual $p.StorageProfile.OSDisk.Caching $osDiskCaching;
Assert-AreEqual $p.StorageProfile.OSDisk.Name $osDiskName;
@@ -230,10 +230,10 @@ function Test-VirtualMachineExtensionUsingHashTable
$computerName = 'test';
$vhdContainer = "https://$stoname.blob.core.windows.net/test";
- $p = Set-AzureRMVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred -ProvisionVMAgent;
+ $p = Set-AzureRmVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred -ProvisionVMAgent;
$imgRef = Get-DefaultCRPWindowsImageOffline;
- $p = ($imgRef | Set-AzureRMVMSourceImage -VM $p);
+ $p = ($imgRef | Set-AzureRmVMSourceImage -VM $p);
Assert-AreEqual $p.OSProfile.AdminUsername $user;
Assert-AreEqual $p.OSProfile.ComputerName $computerName;
@@ -246,7 +246,7 @@ function Test-VirtualMachineExtensionUsingHashTable
Assert-AreEqual $p.StorageProfile.ImageReference.Version $imgRef.Version;
# Virtual Machine Create
- New-AzureRMVM -ResourceGroupName $rgname -Location $loc -VM $p;
+ New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $p;
# Virtual Machine Extension
$extname = $rgname + 'ext';
@@ -257,10 +257,10 @@ function Test-VirtualMachineExtensionUsingHashTable
# Set extension settings by hash table
$settings = @{"fileUris" = @(); "commandToExecute" = ""};
$protectedsettings = @{"storageAccountName" = $stoname; "storageAccountKey" = $stokey};
- Set-AzureRMVMExtension -ResourceGroupName $rgname -Location $loc -VMName $vmname -Name $extname -Publisher $publisher -ExtensionType $exttype -TypeHandlerVersion $extver -Settings $settings -ProtectedSettings $protectedsettings;
+ Set-AzureRmVMExtension -ResourceGroupName $rgname -Location $loc -VMName $vmname -Name $extname -Publisher $publisher -ExtensionType $exttype -TypeHandlerVersion $extver -Settings $settings -ProtectedSettings $protectedsettings;
# Get VM Extension
- $ext = Get-AzureRMVMExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname;
+ $ext = Get-AzureRmVMExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname;
Assert-AreEqual $ext.ResourceGroupName $rgname;
Assert-AreEqual $ext.Name $extname;
Assert-AreEqual $ext.Publisher $publisher;
@@ -269,7 +269,7 @@ function Test-VirtualMachineExtensionUsingHashTable
Assert-AreEqual $ext.ResourceGroupName $rgname;
Assert-NotNull $ext.ProvisioningState;
- $ext = Get-AzureRMVMExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname -Status;
+ $ext = Get-AzureRmVMExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname -Status;
Assert-AreEqual $ext.ResourceGroupName $rgname;
Assert-AreEqual $ext.Name $extname;
Assert-AreEqual $ext.Publisher $publisher;
@@ -280,7 +280,7 @@ function Test-VirtualMachineExtensionUsingHashTable
Assert-NotNull $ext.Statuses;
# Get VM
- $vm1 = Get-AzureRMVM -Name $vmname -ResourceGroupName $rgname;
+ $vm1 = Get-AzureRmVM -Name $vmname -ResourceGroupName $rgname;
Assert-AreEqual $vm1.Name $vmname;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
@@ -304,7 +304,7 @@ function Test-VirtualMachineExtensionUsingHashTable
Assert-NotNull $vm1.Extensions[0].Settings;
# Remove Extension
- Remove-AzureRMVMExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname -Force;
+ Remove-AzureRmVMExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname -Force;
}
finally
{
@@ -326,36 +326,36 @@ function Test-VirtualMachineCustomScriptExtension
{
# Common
$loc = Get-ComputeVMLocation;
- New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;
+ New-AzureRmResourceGroup -Name $rgname -Location $loc -Force;
# VM Profile & Hardware
$vmsize = 'Standard_A4';
$vmname = 'vm' + $rgname;
- $p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
+ $p = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
Assert-AreEqual $p.HardwareProfile.VirtualMachineSize $vmsize;
# NRP
- $subnet = New-AzureRMVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
- $vnet = New-AzureRMVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
- $vnet = Get-AzureRMVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
+ $subnet = New-AzureRmVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
+ $vnet = New-AzureRmVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
+ $vnet = Get-AzureRmVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
$subnetId = $vnet.Subnets[0].Id;
- $pubip = New-AzureRMPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
- $pubip = Get-AzureRMPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
+ $pubip = New-AzureRmPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
+ $pubip = Get-AzureRmPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
$pubipId = $pubip.Id;
- $nic = New-AzureRMNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
- $nic = Get-AzureRMNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
+ $nic = New-AzureRmNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
+ $nic = Get-AzureRmNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
$nicId = $nic.Id;
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $nicId;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $nicId;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
# Storage Account (SA)
$stoname = 'sto' + $rgname;
$stotype = 'Standard_GRS';
- New-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
- Retry-IfException { $global:stoaccount = Get-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname; }
- $stokey = (Get-AzureRMStorageAccountKey -ResourceGroupName $rgname -Name $stoname).Key1;
+ New-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
+ Retry-IfException { $global:stoaccount = Get-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname; }
+ $stokey = (Get-AzureRmStorageAccountKey -ResourceGroupName $rgname -Name $stoname).Key1;
$osDiskName = 'osDisk';
$osDiskCaching = 'ReadWrite';
@@ -363,10 +363,10 @@ function Test-VirtualMachineCustomScriptExtension
$dataDiskVhdUri1 = "https://$stoname.blob.core.windows.net/test/data1.vhd";
$dataDiskVhdUri2 = "https://$stoname.blob.core.windows.net/test/data2.vhd";
- $p = Set-AzureRMVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
+ $p = Set-AzureRmVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
Assert-AreEqual $p.StorageProfile.OSDisk.Caching $osDiskCaching;
Assert-AreEqual $p.StorageProfile.OSDisk.Name $osDiskName;
@@ -389,10 +389,10 @@ function Test-VirtualMachineCustomScriptExtension
$computerName = 'test';
$vhdContainer = "https://$stoname.blob.core.windows.net/test";
- $p = Set-AzureRMVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred -ProvisionVMAgent;
+ $p = Set-AzureRmVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred -ProvisionVMAgent;
$imgRef = Get-DefaultCRPWindowsImageOffline;
- $p = ($imgRef | Set-AzureRMVMSourceImage -VM $p);
+ $p = ($imgRef | Set-AzureRmVMSourceImage -VM $p);
Assert-AreEqual $p.OSProfile.AdminUsername $user;
Assert-AreEqual $p.OSProfile.ComputerName $computerName;
@@ -407,8 +407,8 @@ function Test-VirtualMachineCustomScriptExtension
# Assert-AreEqual $p.StorageProfile.ImageReference.Version $imgRef.Version;
# Virtual Machine
- # TODO: Still need to do retry for New-AzureRMVM for SA, even it's returned in Get-.
- New-AzureRMVM -ResourceGroupName $rgname -Location $loc -VM $p;
+ # TODO: Still need to do retry for New-AzureRmVM for SA, even it's returned in Get-.
+ New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $p;
# Virtual Machine Extension
$extname = $rgname + 'ext';
@@ -419,10 +419,10 @@ function Test-VirtualMachineCustomScriptExtension
$containerName = 'script';
# Set custom script extension
- Set-AzureRMVMCustomScriptExtension -ResourceGroupName $rgname -Location $loc -VMName $vmname -Name $extname -TypeHandlerVersion $extver -StorageAccountName $stoname -StorageAccountKey $stokey -FileName $fileToExecute -ContainerName $containerName;
+ Set-AzureRmVMCustomScriptExtension -ResourceGroupName $rgname -Location $loc -VMName $vmname -Name $extname -TypeHandlerVersion $extver -StorageAccountName $stoname -StorageAccountKey $stokey -FileName $fileToExecute -ContainerName $containerName;
# Get VM Extension
- $ext = Get-AzureRMVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname;
+ $ext = Get-AzureRmVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname;
$expCommand = 'powershell -ExecutionPolicy Unrestricted -file ' + $fileToExecute + ' ';
$expUri = $stoname + '.blob.core.windows.net/' + $containerName + '/' + $fileToExecute;
@@ -435,7 +435,7 @@ function Test-VirtualMachineCustomScriptExtension
Assert-True {$ext.Uri[0].Contains($expUri)};
Assert-NotNull $ext.ProvisioningState;
- $ext = Get-AzureRMVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname -Status;
+ $ext = Get-AzureRmVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname -Status;
Assert-AreEqual $ext.ResourceGroupName $rgname;
Assert-AreEqual $ext.Name $extname;
Assert-AreEqual $ext.Publisher $publisher;
@@ -447,7 +447,7 @@ function Test-VirtualMachineCustomScriptExtension
Assert-NotNull $ext.Statuses;
# Get VM
- $vm1 = Get-AzureRMVM -Name $vmname -ResourceGroupName $rgname;
+ $vm1 = Get-AzureRmVM -Name $vmname -ResourceGroupName $rgname;
Assert-AreEqual $vm1.Name $vmname;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
@@ -495,36 +495,36 @@ function Test-VirtualMachineCustomScriptExtensionFileUri
{
# Common
$loc = Get-ComputeVMLocation;
- New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;
+ New-AzureRmResourceGroup -Name $rgname -Location $loc -Force;
# VM Profile & Hardware
$vmsize = 'Standard_A4';
$vmname = 'vm' + $rgname;
- $p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
+ $p = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
Assert-AreEqual $p.HardwareProfile.VirtualMachineSize $vmsize;
# NRP
- $subnet = New-AzureRMVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
- $vnet = New-AzureRMVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
- $vnet = Get-AzureRMVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
+ $subnet = New-AzureRmVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
+ $vnet = New-AzureRmVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
+ $vnet = Get-AzureRmVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
$subnetId = $vnet.Subnets[0].Id;
- $pubip = New-AzureRMPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
- $pubip = Get-AzureRMPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
+ $pubip = New-AzureRmPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
+ $pubip = Get-AzureRmPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
$pubipId = $pubip.Id;
- $nic = New-AzureRMNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
- $nic = Get-AzureRMNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
+ $nic = New-AzureRmNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
+ $nic = Get-AzureRmNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
$nicId = $nic.Id;
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $nicId;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $nicId;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
# Storage Account (SA)
$stoname = 'sto' + $rgname;
$stotype = 'Standard_GRS';
- New-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
- Retry-IfException { $global:stoaccount = Get-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname; }
- $stokey = (Get-AzureRMStorageAccountKey -ResourceGroupName $rgname -Name $stoname).Key1;
+ New-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
+ Retry-IfException { $global:stoaccount = Get-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname; }
+ $stokey = (Get-AzureRmStorageAccountKey -ResourceGroupName $rgname -Name $stoname).Key1;
$osDiskName = 'osDisk';
$osDiskCaching = 'ReadWrite';
@@ -532,10 +532,10 @@ function Test-VirtualMachineCustomScriptExtensionFileUri
$dataDiskVhdUri1 = "https://$stoname.blob.core.windows.net/test/data1.vhd";
$dataDiskVhdUri2 = "https://$stoname.blob.core.windows.net/test/data2.vhd";
- $p = Set-AzureRMVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
+ $p = Set-AzureRmVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
Assert-AreEqual $p.StorageProfile.OSDisk.Caching $osDiskCaching;
Assert-AreEqual $p.StorageProfile.OSDisk.Name $osDiskName;
@@ -558,10 +558,10 @@ function Test-VirtualMachineCustomScriptExtensionFileUri
$computerName = 'test';
$vhdContainer = "https://$stoname.blob.core.windows.net/test";
- $p = Set-AzureRMVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred -ProvisionVMAgent;
+ $p = Set-AzureRmVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred -ProvisionVMAgent;
$imgRef = Get-DefaultCRPWindowsImageOffline;
- $p = ($imgRef | Set-AzureRMVMSourceImage -VM $p);
+ $p = ($imgRef | Set-AzureRmVMSourceImage -VM $p);
Assert-AreEqual $p.OSProfile.AdminUsername $user;
Assert-AreEqual $p.OSProfile.ComputerName $computerName;
@@ -569,7 +569,7 @@ function Test-VirtualMachineCustomScriptExtensionFileUri
Assert-AreEqual $p.OSProfile.WindowsConfiguration.ProvisionVMAgent $true;
# Virtual Machine
- New-AzureRMVM -ResourceGroupName $rgname -Location $loc -VM $p;
+ New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $p;
# Virtual Machine Extension
$extname = $rgname + 'ext';
@@ -585,10 +585,10 @@ function Test-VirtualMachineCustomScriptExtensionFileUri
$sasFile2 = Get-SasUri $stoname $stokey $containerName $fileToExecute $duration $type;
# Set custom script extension
- Set-AzureRMVMCustomScriptExtension -ResourceGroupName $rgname -Location $loc -VMName $vmname -Name $extname -TypeHandlerVersion $extver -Run $fileToExecute -FileUri $sasFile1, $sasFile2;
+ Set-AzureRmVMCustomScriptExtension -ResourceGroupName $rgname -Location $loc -VMName $vmname -Name $extname -TypeHandlerVersion $extver -Run $fileToExecute -FileUri $sasFile1, $sasFile2;
# Get VM Extension
- $ext = Get-AzureRMVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname;
+ $ext = Get-AzureRmVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname;
$expCommand = 'powershell -ExecutionPolicy Unrestricted -file ' + $fileToExecute+ ' ';
$expUri = $stoname + '.blob.core.windows.net/' + $containerName + '/' + $fileToExecute;
@@ -602,7 +602,7 @@ function Test-VirtualMachineCustomScriptExtensionFileUri
Assert-True {$ext.Uri[1].Contains($expUri)};
Assert-NotNull $ext.ProvisioningState;
- $ext = Get-AzureRMVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname -Status;
+ $ext = Get-AzureRmVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname -Status;
Assert-AreEqual $ext.ResourceGroupName $rgname;
Assert-AreEqual $ext.Name $extname;
Assert-AreEqual $ext.Publisher $publisher;
@@ -615,7 +615,7 @@ function Test-VirtualMachineCustomScriptExtensionFileUri
Assert-NotNull $ext.Statuses;
# Get VM
- $vm1 = Get-AzureRMVM -Name $vmname -ResourceGroupName $rgname;
+ $vm1 = Get-AzureRmVM -Name $vmname -ResourceGroupName $rgname;
Assert-AreEqual $vm1.Name $vmname;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
@@ -653,36 +653,36 @@ function Test-VirtualMachineAccessExtension
{
# Common
$loc = Get-ComputeVMLocation;
- New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;
+ New-AzureRmResourceGroup -Name $rgname -Location $loc -Force;
# VM Profile & Hardware
$vmsize = 'Standard_A4';
$vmname = 'vm' + $rgname;
- $p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
+ $p = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
Assert-AreEqual $p.HardwareProfile.VirtualMachineSize $vmsize;
# NRP
- $subnet = New-AzureRMVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
- $vnet = New-AzureRMVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
- $vnet = Get-AzureRMVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
+ $subnet = New-AzureRmVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
+ $vnet = New-AzureRmVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
+ $vnet = Get-AzureRmVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
$subnetId = $vnet.Subnets[0].Id;
- $pubip = New-AzureRMPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
- $pubip = Get-AzureRMPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
+ $pubip = New-AzureRmPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
+ $pubip = Get-AzureRmPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
$pubipId = $pubip.Id;
- $nic = New-AzureRMNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
- $nic = Get-AzureRMNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
+ $nic = New-AzureRmNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
+ $nic = Get-AzureRmNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
$nicId = $nic.Id;
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $nicId;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $nicId;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
# Storage Account (SA)
$stoname = 'sto' + $rgname;
$stotype = 'Standard_GRS';
- New-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
- Retry-IfException { $global:stoaccount = Get-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname; }
- $stokey = (Get-AzureRMStorageAccountKey -ResourceGroupName $rgname -Name $stoname).Key1;
+ New-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
+ Retry-IfException { $global:stoaccount = Get-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname; }
+ $stokey = (Get-AzureRmStorageAccountKey -ResourceGroupName $rgname -Name $stoname).Key1;
$osDiskName = 'osDisk';
$osDiskCaching = 'ReadWrite';
@@ -690,10 +690,10 @@ function Test-VirtualMachineAccessExtension
$dataDiskVhdUri1 = "https://$stoname.blob.core.windows.net/test/data1.vhd";
$dataDiskVhdUri2 = "https://$stoname.blob.core.windows.net/test/data2.vhd";
- $p = Set-AzureRMVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
+ $p = Set-AzureRmVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
Assert-AreEqual $p.StorageProfile.OSDisk.Caching $osDiskCaching;
Assert-AreEqual $p.StorageProfile.OSDisk.Name $osDiskName;
@@ -716,10 +716,10 @@ function Test-VirtualMachineAccessExtension
$computerName = 'test';
$vhdContainer = "https://$stoname.blob.core.windows.net/test";
- $p = Set-AzureRMVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred -ProvisionVMAgent;
+ $p = Set-AzureRmVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred -ProvisionVMAgent;
$imgRef = Get-DefaultCRPWindowsImageOffline;
- $p = ($imgRef | Set-AzureRMVMSourceImage -VM $p);
+ $p = ($imgRef | Set-AzureRmVMSourceImage -VM $p);
Assert-AreEqual $p.OSProfile.AdminUsername $user;
Assert-AreEqual $p.OSProfile.ComputerName $computerName;
@@ -727,8 +727,8 @@ function Test-VirtualMachineAccessExtension
Assert-AreEqual $p.OSProfile.WindowsConfiguration.ProvisionVMAgent $true;
# Virtual Machine
- # TODO: Still need to do retry for New-AzureRMVM for SA, even it's returned in Get-.
- New-AzureRMVM -ResourceGroupName $rgname -Location $loc -VM $p;
+ # TODO: Still need to do retry for New-AzureRmVM for SA, even it's returned in Get-.
+ New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $p;
# Virtual Machine Extension
$extname = 'csetest';
@@ -737,13 +737,13 @@ function Test-VirtualMachineAccessExtension
$password2 = 'FoO@123' + $rgname;
# Set custom script extension
- Set-AzureRMVMAccessExtension -ResourceGroupName $rgname -Location $loc -VMName $vmname -Name $extname -TypeHandlerVersion $extver -UserName $user2 -Password $password2;
+ Set-AzureRmVMAccessExtension -ResourceGroupName $rgname -Location $loc -VMName $vmname -Name $extname -TypeHandlerVersion $extver -UserName $user2 -Password $password2;
$publisher = 'Microsoft.Compute';
$exttype = 'VMAccessAgent';
# Get VM Extension
- $ext = Get-AzureRMVMAccessExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname;
+ $ext = Get-AzureRmVMAccessExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname;
Assert-AreEqual $ext.ResourceGroupName $rgname;
Assert-AreEqual $ext.Name $extname;
Assert-AreEqual $ext.Publisher $publisher;
@@ -753,7 +753,7 @@ function Test-VirtualMachineAccessExtension
Assert-NotNull $ext.ProvisioningState;
Assert-True {$ext.PublicSettings.Contains("UserName")};
- $ext = Get-AzureRMVMAccessExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname -Status;
+ $ext = Get-AzureRmVMAccessExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname -Status;
Assert-AreEqual $ext.ResourceGroupName $rgname;
Assert-AreEqual $ext.Name $extname;
Assert-AreEqual $ext.Publisher $publisher;
@@ -764,7 +764,7 @@ function Test-VirtualMachineAccessExtension
Assert-True {$ext.PublicSettings.Contains("UserName")};
# Get VM
- $vm1 = Get-AzureRMVM -Name $vmname -ResourceGroupName $rgname;
+ $vm1 = Get-AzureRmVM -Name $vmname -ResourceGroupName $rgname;
Assert-AreEqual $vm1.Name $vmname;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
diff --git a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineNetworkInterfaceTests.ps1 b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineNetworkInterfaceTests.ps1
index c647b6c6884f..d948e1b3553f 100644
--- a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineNetworkInterfaceTests.ps1
+++ b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineNetworkInterfaceTests.ps1
@@ -25,27 +25,27 @@ function Test-SingleNetworkInterface
{
# Common
$loc = Get-ComputeVMLocation;
- New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;
+ New-AzureRmResourceGroup -Name $rgname -Location $loc -Force;
# VM Profile & Hardware
$vmsize = 'Standard_A2';
$vmname = 'vm' + $rgname;
- $p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
+ $p = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
Assert-AreEqual $p.HardwareProfile.VirtualMachineSize $vmsize;
# NRP
- $subnet = New-AzureRMVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
- $vnet = New-AzureRMVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
- $vnet = Get-AzureRMVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
+ $subnet = New-AzureRmVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
+ $vnet = New-AzureRmVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
+ $vnet = Get-AzureRmVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
$subnetId = $vnet.Subnets[0].Id;
- $pubip = New-AzureRMPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
- $pubip = Get-AzureRMPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
+ $pubip = New-AzureRmPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
+ $pubip = Get-AzureRmPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
$pubipId = $pubip.Id;
- $nic = New-AzureRMNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
- $nic = Get-AzureRMNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
+ $nic = New-AzureRmNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
+ $nic = Get-AzureRmNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
$nicId = $nic.Id;
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $nicId;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $nicId;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
Assert-Null $p.NetworkProfile.NetworkInterfaces[0].Primary;
@@ -53,8 +53,8 @@ function Test-SingleNetworkInterface
# Storage Account (SA)
$stoname = 'sto' + $rgname;
$stotype = 'Standard_GRS';
- New-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
- $stoaccount = Get-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname;
+ New-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
+ $stoaccount = Get-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname;
$osDiskName = 'osDisk';
$osDiskCaching = 'ReadWrite';
@@ -63,12 +63,12 @@ function Test-SingleNetworkInterface
$dataDiskVhdUri2 = "https://$stoname.blob.core.windows.net/test/data2.vhd";
$dataDiskVhdUri3 = "https://$stoname.blob.core.windows.net/test/data3.vhd";
- $p = Set-AzureRMVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
+ $p = Set-AzureRmVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 3 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
- $p = Remove-AzureRMVMDataDisk -VM $p -Name 'testDataDisk3';
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 3 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
+ $p = Remove-AzureRmVMDataDisk -VM $p -Name 'testDataDisk3';
Assert-AreEqual $p.StorageProfile.OSDisk.Caching $osDiskCaching;
Assert-AreEqual $p.StorageProfile.OSDisk.Name $osDiskName;
@@ -93,7 +93,7 @@ function Test-SingleNetworkInterface
$img = 'a699494373c04fc0bc8f2bb1389d6106__Windows-Server-2012-Datacenter-201503.01-en.us-127GB.vhd';
# $p.StorageProfile.OSDisk = $null;
- $p = Set-AzureRMVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
+ $p = Set-AzureRmVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
Assert-AreEqual $p.OSProfile.AdminUsername $user;
Assert-AreEqual $p.OSProfile.ComputerName $computerName;
@@ -101,7 +101,7 @@ function Test-SingleNetworkInterface
# Image Reference
$imgRef = Get-DefaultCRPImage;
- $p = ($imgRef | Set-AzureRMVMSourceImage -VM $p);
+ $p = ($imgRef | Set-AzureRmVMSourceImage -VM $p);
Assert-NotNull $p.StorageProfile.ImageReference;
Assert-Null $p.StorageProfile.SourceImageId;
@@ -109,23 +109,23 @@ function Test-SingleNetworkInterface
$p.StorageProfile.DataDisks = $null;
# Virtual Machine
- # TODO: Still need to do retry for New-AzureRMVM for SA, even it's returned in Get-.
- New-AzureRMVM -ResourceGroupName $rgname -Location $loc -VM $p;
+ # TODO: Still need to do retry for New-AzureRmVM for SA, even it's returned in Get-.
+ New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $p;
# Get VM
- $vm1 = Get-AzureRMVM -Name $vmname -ResourceGroupName $rgname;
+ $vm1 = Get-AzureRmVM -Name $vmname -ResourceGroupName $rgname;
Assert-AreEqual $vm1.Name $vmname;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
# Get NetworkInterface
- $getnic = Get-AzureRMNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
+ $getnic = Get-AzureRmNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces[0].ReferenceUri $getnic.Id;
Assert-AreEqual $getnic.Primary true;
Assert-NotNull $getnic.MacAddress;
# Remove
- Remove-AzureRMVM -Name $vmname -ResourceGroupName $rgname -Force;
+ Remove-AzureRmVM -Name $vmname -ResourceGroupName $rgname -Force;
}
finally
{
@@ -147,27 +147,27 @@ function Test-SingleNetworkInterfaceDnsSettings
{
# Common
$loc = Get-ComputeVMLocation;
- New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;
+ New-AzureRmResourceGroup -Name $rgname -Location $loc -Force;
# VM Profile & Hardware
$vmsize = 'Standard_A2';
$vmname = 'vm' + $rgname;
- $p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
+ $p = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
Assert-AreEqual $p.HardwareProfile.VirtualMachineSize $vmsize;
# NRP
- $subnet = New-AzureRMVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
- $vnet = New-AzureRMVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
- $vnet = Get-AzureRMVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
+ $subnet = New-AzureRmVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
+ $vnet = New-AzureRmVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
+ $vnet = Get-AzureRmVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
$subnetId = $vnet.Subnets[0].Id;
- $pubip = New-AzureRMPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
- $pubip = Get-AzureRMPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
+ $pubip = New-AzureRmPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
+ $pubip = Get-AzureRmPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
$pubipId = $pubip.Id;
- $nic = New-AzureRMNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id -DnsServer "10.0.1.5";
- $nic = Get-AzureRMNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
+ $nic = New-AzureRmNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id -DnsServer "10.0.1.5";
+ $nic = Get-AzureRmNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
$nicId = $nic.Id;
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $nicId;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $nicId;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
Assert-Null $p.NetworkProfile.NetworkInterfaces[0].Primary;
@@ -175,8 +175,8 @@ function Test-SingleNetworkInterfaceDnsSettings
# Storage Account (SA)
$stoname = 'sto' + $rgname;
$stotype = 'Standard_GRS';
- New-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
- $stoaccount = Get-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname;
+ New-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
+ $stoaccount = Get-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname;
$osDiskName = 'osDisk';
$osDiskCaching = 'ReadWrite';
@@ -185,12 +185,12 @@ function Test-SingleNetworkInterfaceDnsSettings
$dataDiskVhdUri2 = "https://$stoname.blob.core.windows.net/test/data2.vhd";
$dataDiskVhdUri3 = "https://$stoname.blob.core.windows.net/test/data3.vhd";
- $p = Set-AzureRMVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
+ $p = Set-AzureRmVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 3 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
- $p = Remove-AzureRMVMDataDisk -VM $p -Name 'testDataDisk3';
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 3 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
+ $p = Remove-AzureRmVMDataDisk -VM $p -Name 'testDataDisk3';
# OS & Image
$user = "Foo12";
@@ -202,11 +202,11 @@ function Test-SingleNetworkInterfaceDnsSettings
$img = 'a699494373c04fc0bc8f2bb1389d6106__Windows-Server-2012-Datacenter-201503.01-en.us-127GB.vhd';
# $p.StorageProfile.OSDisk = $null;
- $p = Set-AzureRMVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
+ $p = Set-AzureRmVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
# Image Reference
$imgRef = Get-DefaultCRPImage;
- $p = ($imgRef | Set-AzureRMVMSourceImage -VM $p);
+ $p = ($imgRef | Set-AzureRmVMSourceImage -VM $p);
Assert-NotNull $p.StorageProfile.ImageReference;
Assert-Null $p.StorageProfile.SourceImageId;
@@ -214,24 +214,24 @@ function Test-SingleNetworkInterfaceDnsSettings
$p.StorageProfile.DataDisks = $null;
# Virtual Machine
- # TODO: Still need to do retry for New-AzureRMVM for SA, even it's returned in Get-.
- New-AzureRMVM -ResourceGroupName $rgname -Location $loc -VM $p;
+ # TODO: Still need to do retry for New-AzureRmVM for SA, even it's returned in Get-.
+ New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $p;
# Get VM
- $vm1 = Get-AzureRMVM -Name $vmname -ResourceGroupName $rgname;
+ $vm1 = Get-AzureRmVM -Name $vmname -ResourceGroupName $rgname;
Assert-AreEqual $vm1.Name $vmname;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
# Get NetworkInterface
- $getnic = Get-AzureRMNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
+ $getnic = Get-AzureRmNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces[0].ReferenceUri $getnic.Id;
Assert-AreEqual $getnic.Primary true;
Assert-NotNull $getnic.MacAddress;
Assert-NotNull $getnic.DnsSettings.AppliedDnsServers;
# Remove
- Remove-AzureRMVM -Name $vmname -ResourceGroupName $rgname -Force;
+ Remove-AzureRmVM -Name $vmname -ResourceGroupName $rgname -Force;
}
finally
{
@@ -253,28 +253,28 @@ function Test-MultipleNetworkInterface
{
# Common
$loc = Get-ComputeVMLocation;
- New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;
+ New-AzureRmResourceGroup -Name $rgname -Location $loc -Force;
# VM Profile & Hardware
$vmsize = 'Standard_A4';
$vmname = 'vm' + $rgname;
- $p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
+ $p = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
Assert-AreEqual $p.HardwareProfile.VirtualMachineSize $vmsize;
# NRP
- $subnet = New-AzureRMVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
- $vnet = New-AzureRMVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
- $vnet = Get-AzureRMVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
+ $subnet = New-AzureRmVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
+ $vnet = New-AzureRmVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
+ $vnet = Get-AzureRmVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
$subnetId = $vnet.Subnets[0].Id;
- $nic1 = New-AzureRMNetworkInterface -Force -Name ('nic1' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId;
- $nic2 = New-AzureRMNetworkInterface -Force -Name ('nic2' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId;
+ $nic1 = New-AzureRmNetworkInterface -Force -Name ('nic1' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId;
+ $nic2 = New-AzureRmNetworkInterface -Force -Name ('nic2' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId;
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $nic1.Id;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $nic1.Id;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nic1.Id;
Assert-Null $p.NetworkProfile.NetworkInterfaces[0].Primary;
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $nic2.Id -Primary;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $nic2.Id -Primary;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 2;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[1].ReferenceUri $nic2.Id;
@@ -284,8 +284,8 @@ function Test-MultipleNetworkInterface
# Storage Account (SA)
$stoname = 'sto' + $rgname;
$stotype = 'Standard_GRS';
- New-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
- $stoaccount = Get-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname;
+ New-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
+ $stoaccount = Get-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname;
$osDiskName = 'osDisk';
$osDiskCaching = 'ReadWrite';
@@ -294,12 +294,12 @@ function Test-MultipleNetworkInterface
$dataDiskVhdUri2 = "https://$stoname.blob.core.windows.net/test/data2.vhd";
$dataDiskVhdUri3 = "https://$stoname.blob.core.windows.net/test/data3.vhd";
- $p = Set-AzureRMVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
+ $p = Set-AzureRmVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 3 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
- $p = Remove-AzureRMVMDataDisk -VM $p -Name 'testDataDisk3';
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 3 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
+ $p = Remove-AzureRmVMDataDisk -VM $p -Name 'testDataDisk3';
# OS & Image
$user = "Foo12";
@@ -311,11 +311,11 @@ function Test-MultipleNetworkInterface
$img = 'a699494373c04fc0bc8f2bb1389d6106__Windows-Server-2012-Datacenter-201503.01-en.us-127GB.vhd';
# $p.StorageProfile.OSDisk = $null;
- $p = Set-AzureRMVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
+ $p = Set-AzureRmVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
# Image Reference
$imgRef = Get-DefaultCRPImage;
- $p = ($imgRef | Set-AzureRMVMSourceImage -VM $p);
+ $p = ($imgRef | Set-AzureRmVMSourceImage -VM $p);
Assert-NotNull $p.StorageProfile.ImageReference;
Assert-Null $p.StorageProfile.SourceImageId;
@@ -323,29 +323,29 @@ function Test-MultipleNetworkInterface
$p.StorageProfile.DataDisks = $null;
# Virtual Machine
- # TODO: Still need to do retry for New-AzureRMVM for SA, even it's returned in Get-.
- New-AzureRMVM -ResourceGroupName $rgname -Location $loc -VM $p;
+ # TODO: Still need to do retry for New-AzureRmVM for SA, even it's returned in Get-.
+ New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $p;
# Get VM
- $vm1 = Get-AzureRMVM -Name $vmname -ResourceGroupName $rgname;
+ $vm1 = Get-AzureRmVM -Name $vmname -ResourceGroupName $rgname;
Assert-AreEqual $vm1.Name $vmname;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces.Count 2;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nic1.Id;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces[1].ReferenceUri $nic2.Id;
# Get NetworkInterface
- $getnic1 = Get-AzureRMNetworkInterface -Name ('nic1' + $rgname) -ResourceGroupName $rgname;
+ $getnic1 = Get-AzureRmNetworkInterface -Name ('nic1' + $rgname) -ResourceGroupName $rgname;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces[0].ReferenceUri $getnic1.Id;
Assert-AreNotEqual $getnic1.Primary true;
Assert-NotNull $getnic1.MacAddress;
- $getnic2 = Get-AzureRMNetworkInterface -Name ('nic2' + $rgname) -ResourceGroupName $rgname;
+ $getnic2 = Get-AzureRmNetworkInterface -Name ('nic2' + $rgname) -ResourceGroupName $rgname;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces[1].ReferenceUri $getnic2.Id;
Assert-AreEqual $getnic2.Primary true;
Assert-NotNull $getnic2.MacAddress;
# Remove
- Remove-AzureRMVM -Name $vmname -ResourceGroupName $rgname -Force;
+ Remove-AzureRmVM -Name $vmname -ResourceGroupName $rgname -Force;
}
finally
{
@@ -367,28 +367,28 @@ function Test-AddNetworkInterface
{
# Common
$loc = Get-ComputeVMLocation;
- New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;
+ New-AzureRmResourceGroup -Name $rgname -Location $loc -Force;
# VM Profile & Hardware
$vmsize = 'Standard_A2';
$vmname = 'vm' + $rgname;
- $p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
+ $p = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
Assert-AreEqual $p.HardwareProfile.VirtualMachineSize $vmsize;
# NRP
- $subnet = New-AzureRMVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
- $vnet = New-AzureRMVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
- $vnet = Get-AzureRMVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
+ $subnet = New-AzureRmVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
+ $vnet = New-AzureRmVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
+ $vnet = Get-AzureRmVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
$subnetId = $vnet.Subnets[0].Id;
- $pubip = New-AzureRMPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
- $pubip = Get-AzureRMPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
+ $pubip = New-AzureRmPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
+ $pubip = Get-AzureRmPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
$pubipId = $pubip.Id;
- $nic = New-AzureRMNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
+ $nic = New-AzureRmNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
$nicId = $nic.Id;
- $nicList = Get-AzureRMNetworkInterface -ResourceGroupName $rgname;
+ $nicList = Get-AzureRmNetworkInterface -ResourceGroupName $rgname;
$nicList[0].Primary = $true;
- $p = Add-AzureRMVMNetworkInterface -VM $p -NetworkInterface $nicList;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -NetworkInterface $nicList;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicList[0].Id;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].Primary $true;
@@ -396,8 +396,8 @@ function Test-AddNetworkInterface
# Storage Account (SA)
$stoname = 'sto' + $rgname;
$stotype = 'Standard_GRS';
- New-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
- $stoaccount = Get-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname;
+ New-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
+ $stoaccount = Get-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname;
$osDiskName = 'osDisk';
$osDiskCaching = 'ReadWrite';
@@ -406,10 +406,10 @@ function Test-AddNetworkInterface
$dataDiskVhdUri2 = "https://$stoname.blob.core.windows.net/test/data2.vhd";
$dataDiskVhdUri3 = "https://$stoname.blob.core.windows.net/test/data3.vhd";
- $p = Set-AzureRMVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
+ $p = Set-AzureRmVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
Assert-AreEqual $p.StorageProfile.OSDisk.Caching $osDiskCaching;
Assert-AreEqual $p.StorageProfile.OSDisk.Name $osDiskName;
@@ -430,7 +430,7 @@ function Test-AddNetworkInterface
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force;
$cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword);
$computerName = 'test';
- $p = Set-AzureRMVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
+ $p = Set-AzureRmVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
Assert-AreEqual $p.OSProfile.AdminUsername $user;
Assert-AreEqual $p.OSProfile.ComputerName $computerName;
@@ -438,7 +438,7 @@ function Test-AddNetworkInterface
# Image Reference
$imgRef = Get-DefaultCRPImage;
- $p = ($imgRef | Set-AzureRMVMSourceImage -VM $p);
+ $p = ($imgRef | Set-AzureRmVMSourceImage -VM $p);
Assert-NotNull $p.StorageProfile.ImageReference;
Assert-Null $p.StorageProfile.SourceImageId;
@@ -446,10 +446,10 @@ function Test-AddNetworkInterface
$p.StorageProfile.DataDisks = $null;
# Virtual Machine
- # TODO: Still need to do retry for New-AzureRMVM for SA, even it's returned in Get-.
- New-AzureRMVM -ResourceGroupName $rgname -Location $loc -VM $p;
+ # TODO: Still need to do retry for New-AzureRmVM for SA, even it's returned in Get-.
+ New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $p;
- $vm1 = Get-AzureRMVM -Name $vmname -ResourceGroupName $rgname;
+ $vm1 = Get-AzureRmVM -Name $vmname -ResourceGroupName $rgname;
Assert-AreEqual $vm1.Name $vmname;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
diff --git a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineProfileTests.cs b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineProfileTests.cs
index d8592b0d8aa9..66d901739cbc 100644
--- a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineProfileTests.cs
+++ b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineProfileTests.cs
@@ -19,14 +19,14 @@ namespace Microsoft.Azure.Commands.Compute.Test.ScenarioTests
{
public class VirtualMachineProfileTests
{
- [Fact(Skip = "PSGet Migration: TODO: Get-AzureRMSubscription")]
+ [Fact(Skip = "PSGet Migration: TODO: Get-AzureRmSubscription")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestVirtualMachineProfile()
{
ComputeTestController.NewInstance.RunPsTest("Test-VirtualMachineProfile");
}
- [Fact(Skip = "PSGet Migration: TODO: Get-AzureRMSubscription")]
+ [Fact(Skip = "PSGet Migration: TODO: Get-AzureRmSubscription")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestVirtualMachineProfileWithoutAUC()
{
diff --git a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineProfileTests.ps1 b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineProfileTests.ps1
index 357c15d663f6..86ce7d2aa07c 100644
--- a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineProfileTests.ps1
+++ b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineProfileTests.ps1
@@ -21,7 +21,7 @@ function Test-VirtualMachineProfile
# VM Profile & Hardware
$vmsize = 'Standard_A2';
$vmname = 'pstestvm' + ((Get-Random) % 10000);
- $p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
+ $p = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
Assert-AreEqual $p.HardwareProfile.VirtualMachineSize $vmsize;
# Network
@@ -30,19 +30,19 @@ function Test-VirtualMachineProfile
$nicName = $ipname + 'nic1';
$publicIPName = $ipname + 'name1';
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $ipRefUri1;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $ipRefUri1;
$ipname = 'hpfip' + ((Get-Random) % 10000);
$ipRefUri2 = "https://test.foo.bar/$ipname";
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $ipRefUri2;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $ipRefUri2;
# Remove all NICs
- $p = $p | Remove-AzureRMVMNetworkInterface;
+ $p = $p | Remove-AzureRmVMNetworkInterface;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 0;
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $ipRefUri1 -Primary;
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $ipRefUri2;
- $p = Remove-AzureRMVMNetworkInterface -VM $p -Id $ipRefUri2;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $ipRefUri1 -Primary;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $ipRefUri2;
+ $p = Remove-AzureRmVMNetworkInterface -VM $p -Id $ipRefUri2;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].ReferenceUri $ipRefUri1;
@@ -59,13 +59,13 @@ function Test-VirtualMachineProfile
$dataDiskVhdUri2 = "https://$stoname.blob.core.windows.net/test/data2.vhd";
$dataDiskVhdUri3 = "https://$stoname.blob.core.windows.net/test/data3.vhd";
- $p = Set-AzureRMVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption Empty;
+ $p = Set-AzureRmVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 0 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 1 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk3' -Caching 'ReadOnly' -DiskSizeInGB $null -Lun 2 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 0 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 1 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk3' -Caching 'ReadOnly' -DiskSizeInGB $null -Lun 2 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
Assert-Null $p.StorageProfile.DataDisks[2].DiskSizeGB;
- $p = Remove-AzureRMVMDataDisk -VM $p -Name 'testDataDisk3';
+ $p = Remove-AzureRmVMDataDisk -VM $p -Name 'testDataDisk3';
Assert-AreEqual $p.StorageProfile.OSDisk.Caching $osDiskCaching;
Assert-AreEqual $p.StorageProfile.OSDisk.Name $osDiskName;
@@ -81,11 +81,11 @@ function Test-VirtualMachineProfile
Assert-AreEqual $p.StorageProfile.DataDisks[1].VirtualHardDisk.Uri $dataDiskVhdUri2;
# Remove all data disks
- $p = $p | Remove-AzureRMVMDataDisk;
+ $p = $p | Remove-AzureRmVMDataDisk;
Assert-AreEqual $p.StorageProfile.DataDisks.Count 0;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 0 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 1 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 0 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 1 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
Assert-AreEqual $p.StorageProfile.DataDisks.Count 2;
Assert-AreEqual $p.StorageProfile.DataDisks[0].Caching 'ReadOnly';
@@ -110,30 +110,30 @@ function Test-VirtualMachineProfile
$custom = "echo 'Hello World'";
$encodedCustom = "ZWNobyAnSGVsbG8gV29ybGQn";
- $p = Set-AzureRMVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred -CustomData $custom -WinRMHttp -WinRMHttps -WinRMCertificateUrl $winRMCertUrl -ProvisionVMAgent -EnableAutoUpdate -TimeZone $timeZone;
+ $p = Set-AzureRmVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred -CustomData $custom -WinRMHttp -WinRMHttps -WinRMCertificateUrl $winRMCertUrl -ProvisionVMAgent -EnableAutoUpdate -TimeZone $timeZone;
# Image Reference
$imgRef = Get-DefaultCRPWindowsImageOffline -loc $loc;
- $p = ($imgRef | Set-AzureRMVMSourceImage -VM $p);
+ $p = ($imgRef | Set-AzureRmVMSourceImage -VM $p);
- $subid = (Get-AzureRMSubscription -Current).SubscriptionId;
+ $subid = (Get-AzureRmSubscription -Current).SubscriptionId;
$referenceUri = "/subscriptions/" + $subid + "/resourceGroups/RgTest1/providers/Microsoft.KeyVault/vaults/TestVault123";
$certStore = "My";
$certUrl = "https://testvault123.vault.azure.net/secrets/Test1/514ceb769c984379a7e0230bdd703272";
- $p = Add-AzureRMVMSecret -VM $p -SourceVaultId $referenceUri -CertificateStore $certStore -CertificateUrl $certUrl;
+ $p = Add-AzureRmVMSecret -VM $p -SourceVaultId $referenceUri -CertificateStore $certStore -CertificateUrl $certUrl;
$referenceUri2 = "/subscriptions/" + $subid + "/resourceGroups/RgTest1/providers/Microsoft.KeyVault/vaults/TestVault456";
- $p = Add-AzureRMVMSecret -VM $p -SourceVaultId $referenceUri2 -CertificateStore $certStore -CertificateUrl $certUrl;
+ $p = Add-AzureRmVMSecret -VM $p -SourceVaultId $referenceUri2 -CertificateStore $certStore -CertificateUrl $certUrl;
$certStore2 = "My2";
$certUrl2 = "https://testvault123.vault.azure.net/secrets/Test1/514ceb769c984379a7e0230bddaaaaaa";
- $p = Add-AzureRMVMSecret -VM $p -SourceVaultId $referenceUri -CertificateStore $certStore2 -CertificateUrl $certUrl2;
+ $p = Add-AzureRmVMSecret -VM $p -SourceVaultId $referenceUri -CertificateStore $certStore2 -CertificateUrl $certUrl2;
$aucSetting = "AutoLogon";
$aucContent = "" + $password + "true";
- $p = Add-AzureRMVMAdditionalUnattendContent -VM $p -Content $aucContent -SettingName $aucSetting;
- $p = Add-AzureRMVMAdditionalUnattendContent -VM $p -Content $aucContent -SettingName $aucSetting;
+ $p = Add-AzureRmVMAdditionalUnattendContent -VM $p -Content $aucContent -SettingName $aucSetting;
+ $p = Add-AzureRmVMAdditionalUnattendContent -VM $p -Content $aucContent -SettingName $aucSetting;
Assert-AreEqual $p.OSProfile.AdminUsername $user;
Assert-AreEqual $p.OSProfile.ComputerName $computerName;
@@ -177,16 +177,16 @@ function Test-VirtualMachineProfile
# Linux OS
$img = "b4590d9e3ed742e4a1d46e5424aa335e__SUSE-Linux-Enterprise-Server-11-SP3-v206";
- $p = Set-AzureRMVMOperatingSystem -VM $p -Linux -ComputerName $computerName -Credential $cred -CustomData $custom -DisablePasswordAuthentication;
+ $p = Set-AzureRmVMOperatingSystem -VM $p -Linux -ComputerName $computerName -Credential $cred -CustomData $custom -DisablePasswordAuthentication;
$imgRef = Get-DefaultCRPLinuxImageOffline -loc $loc;
- $p = ($imgRef | Set-AzureRMVMSourceImage -VM $p);
+ $p = ($imgRef | Set-AzureRmVMSourceImage -VM $p);
$sshPath = "/home/pstestuser/.ssh/authorized_keys";
$sshPublicKey = "MIIDszCCApugAwIBAgIJALBV9YJCF/tAMA0GCSqGSIb3DQEBBQUAMEUxCzAJBgNV";
- $p = Add-AzureRMVMSshPublicKey -VM $p -KeyData $sshPublicKey -Path $sshPath;
- $p = Add-AzureRMVMSshPublicKey -VM $p -KeyData $sshPublicKey -Path $sshPath;
- $p = Add-AzureRMVMSecret -VM $p -SourceVaultId $referenceUri -CertificateStore $certStore -CertificateUrl $certUrl;
+ $p = Add-AzureRmVMSshPublicKey -VM $p -KeyData $sshPublicKey -Path $sshPath;
+ $p = Add-AzureRmVMSshPublicKey -VM $p -KeyData $sshPublicKey -Path $sshPath;
+ $p = Add-AzureRmVMSecret -VM $p -SourceVaultId $referenceUri -CertificateStore $certStore -CertificateUrl $certUrl;
Assert-AreEqual $p.OSProfile.AdminUsername $user;
Assert-AreEqual $p.OSProfile.ComputerName $computerName;
@@ -219,7 +219,7 @@ function Test-VirtualMachineProfileWithoutAUC
# VM Profile & Hardware
$vmsize = 'Standard_A2';
$vmname = 'pstestvm' + ((Get-Random) % 10000);
- $p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
+ $p = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
Assert-AreEqual $p.HardwareProfile.VirtualMachineSize $vmsize;
# Network
@@ -228,7 +228,7 @@ function Test-VirtualMachineProfileWithoutAUC
$nicName = $ipname + 'nic1';
$publicIPName = $ipname + 'name1';
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $ipRefUri;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $ipRefUri;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].ReferenceUri $ipRefUri;
@@ -244,12 +244,12 @@ function Test-VirtualMachineProfileWithoutAUC
$dataDiskVhdUri2 = "https://$stoname.blob.core.windows.net/test/data2.vhd";
$dataDiskVhdUri3 = "https://$stoname.blob.core.windows.net/test/data3.vhd";
- $p = Set-AzureRMVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption Empty;
+ $p = Set-AzureRmVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 0 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 1 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 2 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
- $p = Remove-AzureRMVMDataDisk -VM $p -Name 'testDataDisk3';
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 0 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 1 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 2 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
+ $p = Remove-AzureRmVMDataDisk -VM $p -Name 'testDataDisk3';
Assert-AreEqual $p.StorageProfile.OSDisk.Caching $osDiskCaching;
Assert-AreEqual $p.StorageProfile.OSDisk.Name $osDiskName;
@@ -278,24 +278,24 @@ function Test-VirtualMachineProfileWithoutAUC
$custom = "echo 'Hello World'";
$encodedCustom = "ZWNobyAnSGVsbG8gV29ybGQn";
- $p = Set-AzureRMVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred -CustomData $custom -WinRMHttp -WinRMHttps -WinRMCertificateUrl $winRMCertUrl -ProvisionVMAgent -EnableAutoUpdate -TimeZone $timeZone;
+ $p = Set-AzureRmVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred -CustomData $custom -WinRMHttp -WinRMHttps -WinRMCertificateUrl $winRMCertUrl -ProvisionVMAgent -EnableAutoUpdate -TimeZone $timeZone;
$imgRef = Get-DefaultCRPWindowsImageOffline -loc $loc;
- $p = ($imgRef | Set-AzureRMVMSourceImage -VM $p);
+ $p = ($imgRef | Set-AzureRmVMSourceImage -VM $p);
- $subid = (Get-AzureRMSubscription -Current).SubscriptionId;
+ $subid = (Get-AzureRmSubscription -Current).SubscriptionId;
$referenceUri = "/subscriptions/" + $subid + "/resourceGroups/RgTest1/providers/Microsoft.KeyVault/vaults/TestVault123";
$certStore = "My";
$certUrl = "https://testvault123.vault.azure.net/secrets/Test1/514ceb769c984Assert-True379a7e0230bdd703272";
- $p = Add-AzureRMVMSecret -VM $p -SourceVaultId $referenceUri -CertificateStore $certStore -CertificateUrl $certUrl;
+ $p = Add-AzureRmVMSecret -VM $p -SourceVaultId $referenceUri -CertificateStore $certStore -CertificateUrl $certUrl;
$referenceUri2 = "/subscriptions/" + $subid + "/resourceGroups/RgTest1/providers/Microsoft.KeyVault/vaults/TestVault456";
- $p = Add-AzureRMVMSecret -VM $p -SourceVaultId $referenceUri2 -CertificateStore $certStore -CertificateUrl $certUrl;
+ $p = Add-AzureRmVMSecret -VM $p -SourceVaultId $referenceUri2 -CertificateStore $certStore -CertificateUrl $certUrl;
$certStore2 = "My2";
$certUrl2 = "https://testvault123.vault.azure.net/secrets/Test1/514ceb769c984379a7e0230bddaaaaaa";
- $p = Add-AzureRMVMSecret -VM $p -SourceVaultId $referenceUri -CertificateStore $certStore2 -CertificateUrl $certUrl2;
+ $p = Add-AzureRmVMSecret -VM $p -SourceVaultId $referenceUri -CertificateStore $certStore2 -CertificateUrl $certUrl2;
Assert-AreEqual $p.OSProfile.AdminUsername $user;
Assert-AreEqual $p.OSProfile.ComputerName $computerName;
diff --git a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineTests.cs b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineTests.cs
index 3b3bbe973bfe..700cab5f3a43 100644
--- a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineTests.cs
+++ b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineTests.cs
@@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.Compute.Test.ScenarioTests
{
public partial class VirtualMachineTests
{
- [Fact(Skip = "PSGet Migration: TODO: Get-AzureRMSubscription")]
+ [Fact(Skip = "PSGet Migration: TODO: Get-AzureRmSubscription")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestVirtualMachine()
{
diff --git a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineTests.ps1 b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineTests.ps1
index 5865a22bbcac..3e76b74b8302 100644
--- a/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineTests.ps1
+++ b/src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineTests.ps1
@@ -25,32 +25,32 @@ function Test-VirtualMachine
{
# Common
$loc = Get-ComputeVMLocation;
- New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;
+ New-AzureRmResourceGroup -Name $rgname -Location $loc -Force;
# VM Profile & Hardware
$vmsize = 'Standard_A4';
$vmname = 'vm' + $rgname;
- $p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
+ $p = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
Assert-AreEqual $p.HardwareProfile.VirtualMachineSize $vmsize;
# NRP
- $subnet = New-AzureRMVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
- $vnet = New-AzureRMVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
- $vnet = Get-AzureRMVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
+ $subnet = New-AzureRmVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
+ $vnet = New-AzureRmVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
+ $vnet = Get-AzureRmVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
$subnetId = $vnet.Subnets[0].Id;
- $pubip = New-AzureRMPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
- $pubip = Get-AzureRMPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
+ $pubip = New-AzureRmPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
+ $pubip = Get-AzureRmPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
$pubipId = $pubip.Id;
- $nic = New-AzureRMNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
- $nic = Get-AzureRMNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
+ $nic = New-AzureRmNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
+ $nic = Get-AzureRmNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
$nicId = $nic.Id;
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $nicId;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $nicId;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
# Adding the same Nic but not set it Primary
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $nicId -Primary;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $nicId -Primary;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].Primary $true;
@@ -58,8 +58,8 @@ function Test-VirtualMachine
# Storage Account (SA)
$stoname = 'sto' + $rgname;
$stotype = 'Standard_GRS';
- New-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
- $stoaccount = Get-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname;
+ New-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
+ $stoaccount = Get-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname;
$osDiskName = 'osDisk';
$osDiskCaching = 'ReadWrite';
@@ -68,12 +68,12 @@ function Test-VirtualMachine
$dataDiskVhdUri2 = "https://$stoname.blob.core.windows.net/test/data2.vhd";
$dataDiskVhdUri3 = "https://$stoname.blob.core.windows.net/test/data3.vhd";
- $p = Set-AzureRMVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
+ $p = Set-AzureRmVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 3 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
- $p = Remove-AzureRMVMDataDisk -VM $p -Name 'testDataDisk3';
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 3 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
+ $p = Remove-AzureRmVMDataDisk -VM $p -Name 'testDataDisk3';
Assert-AreEqual $p.StorageProfile.OSDisk.Caching $osDiskCaching;
Assert-AreEqual $p.StorageProfile.OSDisk.Name $osDiskName;
@@ -97,10 +97,10 @@ function Test-VirtualMachine
$vhdContainer = "https://$stoname.blob.core.windows.net/test";
# $p.StorageProfile.OSDisk = $null;
- $p = Set-AzureRMVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
+ $p = Set-AzureRmVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
$imgRef = Get-DefaultCRPImage -loc $loc;
- $p = ($imgRef | Set-AzureRMVMSourceImage -VM $p);
+ $p = ($imgRef | Set-AzureRmVMSourceImage -VM $p);
Assert-AreEqual $p.OSProfile.AdminUsername $user;
Assert-AreEqual $p.OSProfile.ComputerName $computerName;
@@ -115,11 +115,11 @@ function Test-VirtualMachine
$p.StorageProfile.DataDisks = $null;
# Virtual Machine
- # TODO: Still need to do retry for New-AzureRMVM for SA, even it's returned in Get-.
- New-AzureRMVM -ResourceGroupName $rgname -Location $loc -VM $p;
+ # TODO: Still need to do retry for New-AzureRmVM for SA, even it's returned in Get-.
+ New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $p;
# Get VM
- $vm1 = Get-AzureRMVM -Name $vmname -ResourceGroupName $rgname;
+ $vm1 = Get-AzureRmVM -Name $vmname -ResourceGroupName $rgname;
Assert-AreEqual $vm1.Name $vmname;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
@@ -133,15 +133,15 @@ function Test-VirtualMachine
Assert-AreEqual $vm1.OSProfile.ComputerName $computerName;
Assert-AreEqual $vm1.HardwareProfile.VirtualMachineSize $vmsize;
- Start-AzureRMVM -Name $vmname -ResourceGroupName $rgname;
- Restart-AzureRMVM -Name $vmname -ResourceGroupName $rgname;
- Stop-AzureRMVM -Name $vmname -ResourceGroupName $rgname -Force -StayProvisioned;
+ Start-AzureRmVM -Name $vmname -ResourceGroupName $rgname;
+ Restart-AzureRmVM -Name $vmname -ResourceGroupName $rgname;
+ Stop-AzureRmVM -Name $vmname -ResourceGroupName $rgname -Force -StayProvisioned;
# Update
$p.Location = $vm1.Location;
- Update-AzureRMVM -ResourceGroupName $rgname -VM $p;
+ Update-AzureRmVM -ResourceGroupName $rgname -VM $p;
- $vm2 = Get-AzureRMVM -Name $vmname -ResourceGroupName $rgname;
+ $vm2 = Get-AzureRmVM -Name $vmname -ResourceGroupName $rgname;
Assert-AreEqual $vm2.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $vm2.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
@@ -155,46 +155,46 @@ function Test-VirtualMachine
Assert-AreEqual $vm2.HardwareProfile.VirtualMachineSize $vmsize;
Assert-NotNull $vm2.Location;
- $vms = Get-AzureRMVM -ResourceGroupName $rgname;
+ $vms = Get-AzureRmVM -ResourceGroupName $rgname;
Assert-AreNotEqual $vms $null;
# Remove All VMs
- Get-AzureRMVM -ResourceGroupName $rgname | Remove-AzureRMVM -ResourceGroupName $rgname -Force;
- $vms = Get-AzureRMVM -ResourceGroupName $rgname;
+ Get-AzureRmVM -ResourceGroupName $rgname | Remove-AzureRmVM -ResourceGroupName $rgname -Force;
+ $vms = Get-AzureRmVM -ResourceGroupName $rgname;
Assert-AreEqual $vms $null;
# Availability Set
$asetName = 'aset' + $rgname;
- $st = New-AzureRMAvailabilitySet -ResourceGroupName $rgname -Name $asetName -Location $loc;
+ $st = New-AzureRmAvailabilitySet -ResourceGroupName $rgname -Name $asetName -Location $loc;
Assert-NotNull $st.RequestId;
Assert-NotNull $st.StatusCode;
- $asets = Get-AzureRMAvailabilitySet -ResourceGroupName $rgname;
+ $asets = Get-AzureRmAvailabilitySet -ResourceGroupName $rgname;
Assert-NotNull $asets;
Assert-AreEqual $asetName $asets[0].Name;
Assert-NotNull $asets[0].RequestId;
Assert-NotNull $asets[0].StatusCode;
- $aset = Get-AzureRMAvailabilitySet -ResourceGroupName $rgname -Name $asetName;
+ $aset = Get-AzureRmAvailabilitySet -ResourceGroupName $rgname -Name $asetName;
Assert-NotNull $aset;
Assert-AreEqual $asetName $aset.Name;
- $asetId = ('/subscriptions/' + (Get-AzureRMSubscription -Current).SubscriptionId + '/resourceGroups/' + $rgname + '/providers/Microsoft.Compute/availabilitySets/' + $asetName);
+ $asetId = ('/subscriptions/' + (Get-AzureRmSubscription -Current).SubscriptionId + '/resourceGroups/' + $rgname + '/providers/Microsoft.Compute/availabilitySets/' + $asetName);
$vmname2 = $vmname + '2';
- $p2 = New-AzureRMVMConfig -VMName $vmname2 -VMSize $vmsize -AvailabilitySetId $asetId;
+ $p2 = New-AzureRmVMConfig -VMName $vmname2 -VMSize $vmsize -AvailabilitySetId $asetId;
$p2.HardwareProfile = $p.HardwareProfile;
$p2.OSProfile = $p.OSProfile;
$p2.NetworkProfile = $p.NetworkProfile;
$p2.StorageProfile = $p.StorageProfile;
- New-AzureRMVM -ResourceGroupName $rgname -Location $loc -VM $p2;
+ New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $p2;
- $vm2 = Get-AzureRMVM -Name $vmname2 -ResourceGroupName $rgname;
+ $vm2 = Get-AzureRmVM -Name $vmname2 -ResourceGroupName $rgname;
Assert-NotNull $vm2;
# Assert-AreEqual $vm2.AvailabilitySetReference.ReferenceUri $asetId;
# Assert-True { $vm2.ResourceGroupName -eq $rgname }
# Remove
- Remove-AzureRMVM -Name $vmname2 -ResourceGroupName $rgname -Force;
+ Remove-AzureRmVM -Name $vmname2 -ResourceGroupName $rgname -Force;
}
finally
{
@@ -216,32 +216,32 @@ function Test-VirtualMachinePiping
{
# Common
$loc = Get-ComputeVMLocation;
- New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;
+ New-AzureRmResourceGroup -Name $rgname -Location $loc -Force;
# VM Profile & Hardware
$vmsize = 'Standard_A4';
$vmname = 'vm' + $rgname;
- $p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
+ $p = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
Assert-AreEqual $p.HardwareProfile.VirtualMachineSize $vmsize;
# NRP
- $subnet = New-AzureRMVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
- $vnet = New-AzureRMVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
- $vnet = Get-AzureRMVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
+ $subnet = New-AzureRmVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
+ $vnet = New-AzureRmVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
+ $vnet = Get-AzureRmVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
$subnetId = $vnet.Subnets[0].Id;
- $pubip = New-AzureRMPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
- $pubip = Get-AzureRMPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
+ $pubip = New-AzureRmPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
+ $pubip = Get-AzureRmPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
$pubipId = $pubip.Id;
- $nic = New-AzureRMNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
- $nic = Get-AzureRMNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
+ $nic = New-AzureRmNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
+ $nic = Get-AzureRmNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
$nicId = $nic.Id;
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $nicId;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $nicId;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
# Adding the same Nic but not set it Primary
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $nicId -Primary;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $nicId -Primary;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].Primary $true;
@@ -249,8 +249,8 @@ function Test-VirtualMachinePiping
# Storage Account (SA)
$stoname = 'sto' + $rgname;
$stotype = 'Standard_GRS';
- New-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
- $stoaccount = Get-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname;
+ New-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
+ $stoaccount = Get-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname;
$osDiskName = 'osDisk';
$osDiskCaching = 'ReadWrite';
@@ -259,9 +259,9 @@ function Test-VirtualMachinePiping
$dataDiskVhdUri2 = "https://$stoname.blob.core.windows.net/test/data2.vhd";
$dataDiskVhdUri3 = "https://$stoname.blob.core.windows.net/test/data3.vhd";
- $p = Set-AzureRMVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
+ $p = Set-AzureRmVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
Assert-AreEqual $p.StorageProfile.OSDisk.Caching $osDiskCaching;
Assert-AreEqual $p.StorageProfile.OSDisk.Name $osDiskName;
@@ -284,10 +284,10 @@ function Test-VirtualMachinePiping
$computerName = 'test';
$vhdContainer = "https://$stoname.blob.core.windows.net/test";
- $p = Set-AzureRMVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
+ $p = Set-AzureRmVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
$imgRef = Get-DefaultCRPImage -loc $loc;
- $p = ($imgRef | Set-AzureRMVMSourceImage -VM $p);
+ $p = ($imgRef | Set-AzureRmVMSourceImage -VM $p);
Assert-AreEqual $p.OSProfile.AdminUsername $user;
Assert-AreEqual $p.OSProfile.ComputerName $computerName;
@@ -299,11 +299,11 @@ function Test-VirtualMachinePiping
Assert-AreEqual $p.StorageProfile.ImageReference.Version $imgRef.Version;
# Virtual Machine
- # TODO: Still need to do retry for New-AzureRMVM for SA, even it's returned in Get-.
- New-AzureRMVM -ResourceGroupName $rgname -Location $loc -VM $p;
+ # TODO: Still need to do retry for New-AzureRmVM for SA, even it's returned in Get-.
+ New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $p;
# Get VM
- $vm1 = Get-AzureRMVM -Name $vmname -ResourceGroupName $rgname;
+ $vm1 = Get-AzureRmVM -Name $vmname -ResourceGroupName $rgname;
Assert-AreEqual $vm1.Name $vmname;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
@@ -318,16 +318,16 @@ function Test-VirtualMachinePiping
Assert-AreEqual $vm1.OSProfile.ComputerName $computerName;
Assert-AreEqual $vm1.HardwareProfile.VirtualMachineSize $vmsize;
- Get-AzureRMVM -ResourceGroupName $rgname | Start-AzureRMVM;
- Get-AzureRMVM -ResourceGroupName $rgname | Restart-AzureRMVM;
- Get-AzureRMVM -ResourceGroupName $rgname | Stop-AzureRMVM -Force -StayProvisioned;
+ Get-AzureRmVM -ResourceGroupName $rgname | Start-AzureRmVM;
+ Get-AzureRmVM -ResourceGroupName $rgname | Restart-AzureRmVM;
+ Get-AzureRmVM -ResourceGroupName $rgname | Stop-AzureRmVM -Force -StayProvisioned;
# Update VM
- Get-AzureRMVM -ResourceGroupName $rgname -Name $vmname `
- | Add-AzureRMVMDataDisk -Name 'testDataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 3 -VhdUri $dataDiskVhdUri3 -CreateOption Empty `
- | Update-AzureRMVM;
+ Get-AzureRmVM -ResourceGroupName $rgname -Name $vmname `
+ | Add-AzureRmVMDataDisk -Name 'testDataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 3 -VhdUri $dataDiskVhdUri3 -CreateOption Empty `
+ | Update-AzureRmVM;
- $vm2 = Get-AzureRMVM -Name $vmname -ResourceGroupName $rgname;
+ $vm2 = Get-AzureRmVM -Name $vmname -ResourceGroupName $rgname;
Assert-AreEqual $vm2.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $vm2.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
@@ -343,19 +343,19 @@ function Test-VirtualMachinePiping
Assert-AreEqual $vm2.HardwareProfile.VirtualMachineSize $vmsize;
Assert-NotNull $vm2.Location;
- Get-AzureRMVM -ResourceGroupName $rgname | Stop-AzureRMVM -Force;
- Get-AzureRMVM -ResourceGroupName $rgname | Set-AzureRMVM -Generalize;
+ Get-AzureRmVM -ResourceGroupName $rgname | Stop-AzureRmVM -Force;
+ Get-AzureRmVM -ResourceGroupName $rgname | Set-AzureRmVM -Generalize;
$dest = Get-ComputeTestResourceName;
$templatePath = ".\template.txt";
- Get-AzureRMVM -ResourceGroupName $rgname | Save-AzureRMVMImage -DestinationContainerName $dest -VHDNamePrefix 'pslib' -Overwrite -Path $templatePath;
+ Get-AzureRmVM -ResourceGroupName $rgname | Save-AzureRmVMImage -DestinationContainerName $dest -VHDNamePrefix 'pslib' -Overwrite -Path $templatePath;
$template = Get-Content $templatePath;
Assert-True { $template[1].Contains("$schema"); }
# Remove All VMs
- Get-AzureRMVM -ResourceGroupName $rgname | Remove-AzureRMVM -Force;
- $vms = Get-AzureRMVM -ResourceGroupName $rgname;
+ Get-AzureRmVM -ResourceGroupName $rgname | Remove-AzureRmVM -Force;
+ $vms = Get-AzureRmVM -ResourceGroupName $rgname;
Assert-AreEqual $vms $null;
}
finally
@@ -376,15 +376,15 @@ function Test-VirtualMachineList
try
{
- $s1 = Get-AzureRMVM;
- $s2 = Get-AzureRMVM;
+ $s1 = Get-AzureRmVM;
+ $s2 = Get-AzureRmVM;
if ($s2 -ne $null)
{
Assert-NotNull $s2[0].Id;
}
- Assert-ThrowsContains { $s3 = Get-AzureRMVM -NextLink "http://www.test.com/test"; } "Unexpected character"
+ Assert-ThrowsContains { $s3 = Get-AzureRmVM -NextLink "http://www.test.com/test"; } "Unexpected character"
$passed = $true;
}
@@ -409,7 +409,7 @@ function Test-VirtualMachineImageList
# List Tests
$foundAnyImage = $false;
- $pubNames = Get-AzureRMVMImagePublisher -Location $locStr | select -ExpandProperty PublisherName;
+ $pubNames = Get-AzureRmVMImagePublisher -Location $locStr | select -ExpandProperty PublisherName;
$maxPubCheck = 3;
$numPubCheck = 1;
$pubNameFilter = '*Windows*';
@@ -418,7 +418,7 @@ function Test-VirtualMachineImageList
# Filter Windows Images
if (-not ($pub -like $pubNameFilter)) { continue; }
- $s2 = Get-AzureRMVMImageOffer -Location $locStr -PublisherName $pub;
+ $s2 = Get-AzureRmVMImageOffer -Location $locStr -PublisherName $pub;
if ($s2.Count -gt 0)
{
# Check "$maxPubCheck" publishers at most
@@ -428,18 +428,18 @@ function Test-VirtualMachineImageList
$offerNames = $s2 | select -ExpandProperty Offer;
foreach ($offer in $offerNames)
{
- $s3 = Get-AzureRMVMImageSku -Location $locStr -PublisherName $pub -Offer $offer;
+ $s3 = Get-AzureRmVMImageSku -Location $locStr -PublisherName $pub -Offer $offer;
if ($s3.Count -gt 0)
{
$skus = $s3 | select -ExpandProperty Skus;
foreach ($sku in $skus)
{
- $s4 = Get-AzureRMVMImage -Location $locStr -PublisherName $pub -Offer $offer -Sku $sku;
+ $s4 = Get-AzureRmVMImage -Location $locStr -PublisherName $pub -Offer $offer -Sku $sku;
if ($s4.Count -gt 0)
{
$versions = $s4 | select -ExpandProperty Version;
- $s5 = Get-AzureRMVMImage -Location $locStr -PublisherName $pub -Offer $offer -Sku $sku -FilterExpression ('name -eq *');
+ $s5 = Get-AzureRmVMImage -Location $locStr -PublisherName $pub -Offer $offer -Sku $sku -FilterExpression ('name -eq *');
Assert-NotNull $s5;
Assert-NotNull $s5.Count -gt 0;
$verNames = $s5 | select -ExpandProperty Version;
@@ -447,7 +447,7 @@ function Test-VirtualMachineImageList
foreach ($ver in $versions)
{
if ($ver -eq $null -or $ver -eq '') { continue; }
- $s6 = Get-AzureRMVMImage -Location $locStr -PublisherName $pub -Offer $offer -Sku $sku -Version $ver;
+ $s6 = Get-AzureRmVMImage -Location $locStr -PublisherName $pub -Offer $offer -Sku $sku -Version $ver;
Assert-NotNull $s6;
$s6;
@@ -476,17 +476,17 @@ function Test-VirtualMachineImageList
# Filter Windows Images
if (-not ($pub -like $pubNameFilter)) { continue; }
- $s1 = Get-AzureRMVMExtensionImageType -Location $locStr -PublisherName $pub;
+ $s1 = Get-AzureRmVMExtensionImageType -Location $locStr -PublisherName $pub;
$types = $s1 | select -ExpandProperty Type;
if ($types.Count -gt 0)
{
foreach ($type in $types)
{
- $s2 = Get-AzureRMVMExtensionImage -Location $locStr -PublisherName $pub -Type $type -FilterExpression '*';
+ $s2 = Get-AzureRmVMExtensionImage -Location $locStr -PublisherName $pub -Type $type -FilterExpression '*';
$versions = $s2 | select -ExpandProperty Version;
foreach ($ver in $versions)
{
- $s3 = Get-AzureRMVMExtensionImage -Location $locStr -PublisherName $pub -Type $type -Version $ver -FilterExpression '*';
+ $s3 = Get-AzureRmVMExtensionImage -Location $locStr -PublisherName $pub -Type $type -Version $ver -FilterExpression '*';
Assert-NotNull $s3;
Assert-True { $s3.Version -eq $ver; }
@@ -503,40 +503,40 @@ function Test-VirtualMachineImageList
# Test Piping
$pubNameFilter = '*Microsoft*Windows*Server*';
- $imgs = Get-AzureRMVMImagePublisher -Location $locStr | where { $_.PublisherName -like $pubNameFilter } | Get-AzureRMVMImageOffer | Get-AzureRMVMImageSku | Get-AzureRMVMImage | Get-AzureRMVMImage;
+ $imgs = Get-AzureRmVMImagePublisher -Location $locStr | where { $_.PublisherName -like $pubNameFilter } | Get-AzureRmVMImageOffer | Get-AzureRmVMImageSku | Get-AzureRmVMImage | Get-AzureRmVMImage;
Assert-True { $imgs.Count -gt 0 };
$pubNameFilter = '*Microsoft.Compute*';
- $extimgs = Get-AzureRMVMImagePublisher -Location $locStr | where { $_.PublisherName -like $pubNameFilter } | Get-AzureRMVMExtensionImageType | Get-AzureRMVMExtensionImage | Get-AzureRMVMExtensionImage;
+ $extimgs = Get-AzureRmVMImagePublisher -Location $locStr | where { $_.PublisherName -like $pubNameFilter } | Get-AzureRmVMExtensionImageType | Get-AzureRmVMExtensionImage | Get-AzureRmVMExtensionImage;
Assert-True { $extimgs.Count -gt 0 };
# Negative Tests
# VM Images
- $s1 = Get-AzureRMVMImagePublisher -Location $locStr;
+ $s1 = Get-AzureRmVMImagePublisher -Location $locStr;
Assert-NotNull $s1;
$publisherName = Get-ComputeTestResourceName;
- Assert-ThrowsContains { $s2 = Get-AzureRMVMImageOffer -Location $locStr -PublisherName $publisherName; } "$publisherName was not found";
+ Assert-ThrowsContains { $s2 = Get-AzureRmVMImageOffer -Location $locStr -PublisherName $publisherName; } "$publisherName was not found";
$offerName = Get-ComputeTestResourceName;
- Assert-ThrowsContains { $s3 = Get-AzureRMVMImageSku -Location $locStr -PublisherName $publisherName -Offer $offerName; } "was not found";
+ Assert-ThrowsContains { $s3 = Get-AzureRmVMImageSku -Location $locStr -PublisherName $publisherName -Offer $offerName; } "was not found";
$skusName = Get-ComputeTestResourceName;
- Assert-ThrowsContains { $s4 = Get-AzureRMVMImage -Location $locStr -PublisherName $publisherName -Offer $offerName -Skus $skusName; } "was not found";
+ Assert-ThrowsContains { $s4 = Get-AzureRmVMImage -Location $locStr -PublisherName $publisherName -Offer $offerName -Skus $skusName; } "was not found";
$filter = "name eq 'latest'";
- Assert-ThrowsContains { $s5 = Get-AzureRMVMImage -Location $locStr -PublisherName $publisherName -Offer $offerName -Skus $skusName -FilterExpression $filter; } "was not found";
+ Assert-ThrowsContains { $s5 = Get-AzureRmVMImage -Location $locStr -PublisherName $publisherName -Offer $offerName -Skus $skusName -FilterExpression $filter; } "was not found";
$version = '1.0.0';
- Assert-ThrowsContains { $s6 = Get-AzureRMVMImage -Location $locStr -PublisherName $publisherName -Offer $offerName -Skus $skusName -Version $version; } "was not found";
+ Assert-ThrowsContains { $s6 = Get-AzureRmVMImage -Location $locStr -PublisherName $publisherName -Offer $offerName -Skus $skusName -Version $version; } "was not found";
# Extension Images
$type = Get-ComputeTestResourceName;
- Assert-ThrowsContains { $s7 = Get-AzureRMVMExtensionImage -Location $locStr -PublisherName $publisherName -Type $type -FilterExpression $filter -Version $version; } "was not found";
+ Assert-ThrowsContains { $s7 = Get-AzureRmVMExtensionImage -Location $locStr -PublisherName $publisherName -Type $type -FilterExpression $filter -Version $version; } "was not found";
- Assert-ThrowsContains { $s8 = Get-AzureRMVMExtensionImageType -Location $locStr -PublisherName $publisherName; } "was not found";
+ Assert-ThrowsContains { $s8 = Get-AzureRmVMExtensionImageType -Location $locStr -PublisherName $publisherName; } "was not found";
- Assert-ThrowsContains { $s9 = Get-AzureRMVMExtensionImage -Location $locStr -PublisherName $publisherName -Type $type -FilterExpression $filter; } "was not found";
+ Assert-ThrowsContains { $s9 = Get-AzureRmVMExtensionImage -Location $locStr -PublisherName $publisherName -Type $type -FilterExpression $filter; } "was not found";
$passed = $true;
}
@@ -560,40 +560,40 @@ function Test-VirtualMachineSizeAndUsage
{
# Common
$loc = Get-ComputeVMLocation;
- New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;
+ New-AzureRmResourceGroup -Name $rgname -Location $loc -Force;
# Availability Set
$asetName = 'aset' + $rgname;
- New-AzureRMAvailabilitySet -ResourceGroupName $rgname -Name $asetName -Location $loc;
- $aset = Get-AzureRMAvailabilitySet -ResourceGroupName $rgname -Name $asetName;
+ New-AzureRmAvailabilitySet -ResourceGroupName $rgname -Name $asetName -Location $loc;
+ $aset = Get-AzureRmAvailabilitySet -ResourceGroupName $rgname -Name $asetName;
# VM Profile & Hardware
$vmsize = 'Standard_A1';
$vmname = 'vm' + $rgname;
- $p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize -AvailabilitySetId $aset.Id;
+ $p = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize -AvailabilitySetId $aset.Id;
Assert-AreEqual $p.HardwareProfile.VirtualMachineSize $vmsize;
# NRP
- $subnet = New-AzureRMVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
- $vnet = New-AzureRMVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
- $vnet = Get-AzureRMVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
+ $subnet = New-AzureRmVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
+ $vnet = New-AzureRmVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
+ $vnet = Get-AzureRmVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
$subnetId = $vnet.Subnets[0].Id;
- $pubip = New-AzureRMPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
- $pubip = Get-AzureRMPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
+ $pubip = New-AzureRmPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
+ $pubip = Get-AzureRmPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
$pubipId = $pubip.Id;
- $nic = New-AzureRMNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
- $nic = Get-AzureRMNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
+ $nic = New-AzureRmNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
+ $nic = Get-AzureRmNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
$nicId = $nic.Id;
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $nicId;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $nicId;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
# Storage Account (SA)
$stoname = 'sto' + $rgname;
$stotype = 'Standard_GRS';
- New-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
- $stoaccount = Get-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname;
+ New-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
+ $stoaccount = Get-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname;
$osDiskName = 'osDisk';
$osDiskCaching = 'ReadWrite';
@@ -602,12 +602,12 @@ function Test-VirtualMachineSizeAndUsage
$dataDiskVhdUri2 = "https://$stoname.blob.core.windows.net/test/data2.vhd";
$dataDiskVhdUri3 = "https://$stoname.blob.core.windows.net/test/data3.vhd";
- $p = Set-AzureRMVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
+ $p = Set-AzureRmVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 3 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
- $p = Remove-AzureRMVMDataDisk -VM $p -Name 'testDataDisk3';
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 3 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
+ $p = Remove-AzureRmVMDataDisk -VM $p -Name 'testDataDisk3';
Assert-AreEqual $p.StorageProfile.OSDisk.Caching $osDiskCaching;
Assert-AreEqual $p.StorageProfile.OSDisk.Name $osDiskName;
@@ -632,7 +632,7 @@ function Test-VirtualMachineSizeAndUsage
$img = 'a699494373c04fc0bc8f2bb1389d6106__Windows-Server-2012-Datacenter-201503.01-en.us-127GB.vhd';
# $p.StorageProfile.OSDisk = $null;
- $p = Set-AzureRMVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
+ $p = Set-AzureRmVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
Assert-AreEqual $p.OSProfile.AdminUsername $user;
Assert-AreEqual $p.OSProfile.ComputerName $computerName;
@@ -640,7 +640,7 @@ function Test-VirtualMachineSizeAndUsage
# Image Reference
$imgRef = Get-DefaultCRPImage -loc $loc;
- $p = Set-AzureRMVMSourceImage -VM $p -PublisherName $imgRef.PublisherName -Offer $imgRef.Offer -Skus $imgRef.Skus -Version $imgRef.Version;
+ $p = Set-AzureRmVMSourceImage -VM $p -PublisherName $imgRef.PublisherName -Offer $imgRef.Offer -Skus $imgRef.Skus -Version $imgRef.Version;
Assert-NotNull $p.StorageProfile.ImageReference;
Assert-Null $p.StorageProfile.SourceImageId;
@@ -648,27 +648,27 @@ function Test-VirtualMachineSizeAndUsage
$p.StorageProfile.DataDisks = $null;
# Virtual Machine
- # TODO: Still need to do retry for New-AzureRMVM for SA, even it's returned in Get-.
- New-AzureRMVM -ResourceGroupName $rgname -Location $loc -VM $p;
+ # TODO: Still need to do retry for New-AzureRmVM for SA, even it's returned in Get-.
+ New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $p;
# Test Sizes
- $s1 = Get-AzureRMVMSize -Location ($loc -replace ' ');
+ $s1 = Get-AzureRmVMSize -Location ($loc -replace ' ');
Assert-NotNull $s1;
Assert-NotNull $s1.RequestId;
Assert-NotNull $s1.StatusCode;
Validate-VirtualMachineSize $vmsize $s1;
- $s2 = Get-AzureRMVMSize -ResourceGroupName $rgname -VMName $vmname;
+ $s2 = Get-AzureRmVMSize -ResourceGroupName $rgname -VMName $vmname;
Assert-NotNull $s2;
Validate-VirtualMachineSize $vmsize $s2;
$asetName = $aset.Name;
- $s3 = Get-AzureRMVMSize -ResourceGroupName $rgname -AvailabilitySetName $asetName;
+ $s3 = Get-AzureRmVMSize -ResourceGroupName $rgname -AvailabilitySetName $asetName;
Assert-NotNull $s3;
Validate-VirtualMachineSize $vmsize $s3;
# Test Usage
- $u1 = Get-AzureRMVMUsage -Location ($loc -replace ' ');
+ $u1 = Get-AzureRmVMUsage -Location ($loc -replace ' ');
Validate-VirtualMachineUsage $u1;
$passed = $true;
@@ -734,35 +734,35 @@ function Test-VirtualMachinePIRv2
{
# Common
$loc = Get-ComputeVMLocation;
- New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;
+ New-AzureRmResourceGroup -Name $rgname -Location $loc -Force;
# VM Profile & Hardware
$vmsize = 'Standard_A4';
$vmname = 'vm' + $rgname;
- $p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
+ $p = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
Assert-AreEqual $p.HardwareProfile.VirtualMachineSize $vmsize;
# NRP
- $subnet = New-AzureRMVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
- $vnet = New-AzureRMVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
- $vnet = Get-AzureRMVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
+ $subnet = New-AzureRmVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
+ $vnet = New-AzureRmVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
+ $vnet = Get-AzureRmVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
$subnetId = $vnet.Subnets[0].Id;
- $pubip = New-AzureRMPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
- $pubip = Get-AzureRMPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
+ $pubip = New-AzureRmPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
+ $pubip = Get-AzureRmPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
$pubipId = $pubip.Id;
- $nic = New-AzureRMNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
- $nic = Get-AzureRMNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
+ $nic = New-AzureRmNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
+ $nic = Get-AzureRmNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
$nicId = $nic.Id;
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $nicId;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $nicId;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
# Storage Account (SA)
$stoname = 'sto' + $rgname;
$stotype = 'Standard_GRS';
- New-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
- $stoaccount = Get-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname;
+ New-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
+ $stoaccount = Get-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname;
$osDiskName = 'osDisk';
$osDiskCaching = 'ReadWrite';
@@ -771,12 +771,12 @@ function Test-VirtualMachinePIRv2
$dataDiskVhdUri2 = "https://$stoname.blob.core.windows.net/test/data2.vhd";
$dataDiskVhdUri3 = "https://$stoname.blob.core.windows.net/test/data3.vhd";
- $p = Set-AzureRMVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
+ $p = Set-AzureRmVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 3 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
- $p = Remove-AzureRMVMDataDisk -VM $p -Name 'testDataDisk3';
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 3 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
+ $p = Remove-AzureRmVMDataDisk -VM $p -Name 'testDataDisk3';
Assert-AreEqual $p.StorageProfile.OSDisk.Caching $osDiskCaching;
Assert-AreEqual $p.StorageProfile.OSDisk.Name $osDiskName;
@@ -801,7 +801,7 @@ function Test-VirtualMachinePIRv2
$img = 'a699494373c04fc0bc8f2bb1389d6106__Windows-Server-2012-Datacenter-201503.01-en.us-127GB.vhd';
# $p.StorageProfile.OSDisk = $null;
- $p = Set-AzureRMVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
+ $p = Set-AzureRmVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
Assert-AreEqual $p.OSProfile.AdminUsername $user;
Assert-AreEqual $p.OSProfile.ComputerName $computerName;
@@ -809,7 +809,7 @@ function Test-VirtualMachinePIRv2
# Image Reference
$imgRef = Get-DefaultCRPImage -loc $loc;
- $p = ($imgRef | Set-AzureRMVMSourceImage -VM $p);
+ $p = ($imgRef | Set-AzureRmVMSourceImage -VM $p);
Assert-NotNull $p.StorageProfile.ImageReference;
Assert-Null $p.StorageProfile.SourceImageId;
@@ -817,11 +817,11 @@ function Test-VirtualMachinePIRv2
$p.StorageProfile.DataDisks = $null;
# Virtual Machine
- # TODO: Still need to do retry for New-AzureRMVM for SA, even it's returned in Get-.
- New-AzureRMVM -ResourceGroupName $rgname -Location $loc -VM $p;
+ # TODO: Still need to do retry for New-AzureRmVM for SA, even it's returned in Get-.
+ New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $p;
# Remove
- # Remove-AzureRMVM -ResourceGroupName $rgname -Name $vmname -Force;
+ # Remove-AzureRmVM -ResourceGroupName $rgname -Name $vmname -Force;
}
finally
{
@@ -843,35 +843,35 @@ function Test-VirtualMachineCapture
{
# Common
$loc = Get-ComputeVMLocation;
- New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;
+ New-AzureRmResourceGroup -Name $rgname -Location $loc -Force;
# VM Profile & Hardware
$vmsize = 'Standard_A4';
$vmname = 'vm' + $rgname;
- $p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
+ $p = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
Assert-AreEqual $p.HardwareProfile.VirtualMachineSize $vmsize;
# NRP
- $subnet = New-AzureRMVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
- $vnet = New-AzureRMVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
- $vnet = Get-AzureRMVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
+ $subnet = New-AzureRmVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
+ $vnet = New-AzureRmVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
+ $vnet = Get-AzureRmVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
$subnetId = $vnet.Subnets[0].Id;
- $pubip = New-AzureRMPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
- $pubip = Get-AzureRMPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
+ $pubip = New-AzureRmPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
+ $pubip = Get-AzureRmPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
$pubipId = $pubip.Id;
- $nic = New-AzureRMNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
- $nic = Get-AzureRMNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
+ $nic = New-AzureRmNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
+ $nic = Get-AzureRmNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
$nicId = $nic.Id;
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $nicId;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $nicId;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
# Storage Account (SA)
$stoname = 'sto' + $rgname;
$stotype = 'Standard_GRS';
- New-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
- $stoaccount = Get-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname;
+ New-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
+ $stoaccount = Get-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname;
$osDiskName = 'osDisk';
$osDiskCaching = 'ReadWrite';
@@ -880,12 +880,12 @@ function Test-VirtualMachineCapture
$dataDiskVhdUri2 = "https://$stoname.blob.core.windows.net/test/data2.vhd";
$dataDiskVhdUri3 = "https://$stoname.blob.core.windows.net/test/data3.vhd";
- $p = Set-AzureRMVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
+ $p = Set-AzureRmVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 3 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
- $p = Remove-AzureRMVMDataDisk -VM $p -Name 'testDataDisk3';
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 3 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
+ $p = Remove-AzureRmVMDataDisk -VM $p -Name 'testDataDisk3';
Assert-AreEqual $p.StorageProfile.OSDisk.Caching $osDiskCaching;
Assert-AreEqual $p.StorageProfile.OSDisk.Name $osDiskName;
@@ -910,7 +910,7 @@ function Test-VirtualMachineCapture
$img = 'a699494373c04fc0bc8f2bb1389d6106__Windows-Server-2012-Datacenter-201503.01-en.us-127GB.vhd';
# $p.StorageProfile.OSDisk = $null;
- $p = Set-AzureRMVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
+ $p = Set-AzureRmVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
Assert-AreEqual $p.OSProfile.AdminUsername $user;
Assert-AreEqual $p.OSProfile.ComputerName $computerName;
@@ -918,28 +918,28 @@ function Test-VirtualMachineCapture
# Image Reference
$imgRef = Get-DefaultCRPImage -loc $loc;
- $p = ($imgRef | Set-AzureRMVMSourceImage -VM $p);
+ $p = ($imgRef | Set-AzureRmVMSourceImage -VM $p);
# TODO: Remove Data Disks for now
$p.StorageProfile.DataDisks = $null;
# Virtual Machine
- # TODO: Still need to do retry for New-AzureRMVM for SA, even it's returned in Get-.
- New-AzureRMVM -ResourceGroupName $rgname -Location $loc -VM $p;
+ # TODO: Still need to do retry for New-AzureRmVM for SA, even it's returned in Get-.
+ New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $p;
# Stop the VM before Capture
- Stop-AzureRMVM -ResourceGroupName $rgname -Name $vmname -Force;
+ Stop-AzureRmVM -ResourceGroupName $rgname -Name $vmname -Force;
- Set-AzureRMVM -Generalize -ResourceGroupName $rgname -Name $vmname;
+ Set-AzureRmVM -Generalize -ResourceGroupName $rgname -Name $vmname;
$dest = Get-ComputeTestResourceName;
$templatePath = ".\template.txt";
- Save-AzureRMVMImage -ResourceGroupName $rgname -VMName $vmname -DestinationContainerName $dest -VHDNamePrefix 'pslib' -Overwrite -Path $templatePath;
+ Save-AzureRmVMImage -ResourceGroupName $rgname -VMName $vmname -DestinationContainerName $dest -VHDNamePrefix 'pslib' -Overwrite -Path $templatePath;
$template = Get-Content $templatePath;
Assert-True { $template[1].Contains("$schema"); }
# Remove
- Remove-AzureRMVM -ResourceGroupName $rgname -Name $vmname -Force;
+ Remove-AzureRmVM -ResourceGroupName $rgname -Name $vmname -Force;
}
finally
{
@@ -957,32 +957,32 @@ function Test-VirtualMachineDataDisk
{
# Common
$loc = Get-ComputeVMLocation;
- New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;
+ New-AzureRmResourceGroup -Name $rgname -Location $loc -Force;
# VM Profile & Hardware
$vmsize = 'Standard_A4';
$vmname = 'vm' + $rgname;
- $p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
+ $p = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
Assert-AreEqual $p.HardwareProfile.VirtualMachineSize $vmsize;
# NRP
- $subnet = New-AzureRMVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
- $vnet = New-AzureRMVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
- $vnet = Get-AzureRMVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
+ $subnet = New-AzureRmVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
+ $vnet = New-AzureRmVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
+ $vnet = Get-AzureRmVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
$subnetId = $vnet.Subnets[0].Id;
- $pubip = New-AzureRMPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
- $pubip = Get-AzureRMPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
+ $pubip = New-AzureRmPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
+ $pubip = Get-AzureRmPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
$pubipId = $pubip.Id;
- $nic = New-AzureRMNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
- $nic = Get-AzureRMNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
+ $nic = New-AzureRmNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
+ $nic = Get-AzureRmNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
$nicId = $nic.Id;
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $nicId;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $nicId;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
# Adding the same Nic but not set it Primary
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $nicId -Primary;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $nicId -Primary;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].Primary $true;
@@ -990,8 +990,8 @@ function Test-VirtualMachineDataDisk
# Storage Account (SA)
$stoname = 'sto' + $rgname;
$stotype = 'Standard_GRS';
- New-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
- $stoaccount = Get-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname;
+ New-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
+ $stoaccount = Get-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname;
$osDiskName = 'osDisk';
$osDiskCaching = 'ReadWrite';
@@ -1003,15 +1003,15 @@ function Test-VirtualMachineDataDisk
$dataDiskName2 = 'testDataDisk2';
$dataDiskName3 = 'testDataDisk3';
- $p = Set-AzureRMVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
+ $p = Set-AzureRmVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
- $p = Add-AzureRMVMDataDisk -VM $p -Name $dataDiskName1 -Caching 'ReadOnly' -DiskSizeInGB 5 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name $dataDiskName2 -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name $dataDiskName3 -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 3 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
- $p = Remove-AzureRMVMDataDisk -VM $p -Name $dataDiskName3;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name $dataDiskName1 -Caching 'ReadOnly' -DiskSizeInGB 5 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name $dataDiskName2 -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name $dataDiskName3 -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 3 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
+ $p = Remove-AzureRmVMDataDisk -VM $p -Name $dataDiskName3;
- $p = Set-AzureRMVMDataDisk -VM $p -Name $dataDiskName1 -DiskSizeInGB 10;
- Assert-ThrowsContains { Set-AzureRMVMDataDisk -VM $p -Name $dataDiskName3 -Caching 'ReadWrite'; } "not currently assigned for this VM";
+ $p = Set-AzureRmVMDataDisk -VM $p -Name $dataDiskName1 -DiskSizeInGB 10;
+ Assert-ThrowsContains { Set-AzureRmVMDataDisk -VM $p -Name $dataDiskName3 -Caching 'ReadWrite'; } "not currently assigned for this VM";
Assert-AreEqual $p.StorageProfile.OSDisk.Caching $osDiskCaching;
Assert-AreEqual $p.StorageProfile.OSDisk.Name $osDiskName;
@@ -1040,10 +1040,10 @@ function Test-VirtualMachineDataDisk
$computerName = 'test';
$vhdContainer = "https://$stoname.blob.core.windows.net/test";
- $p = Set-AzureRMVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
+ $p = Set-AzureRmVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
$imgRef = Get-DefaultCRPImage -loc $loc;
- $p = ($imgRef | Set-AzureRMVMSourceImage -VM $p);
+ $p = ($imgRef | Set-AzureRmVMSourceImage -VM $p);
Assert-AreEqual $p.OSProfile.AdminUsername $user;
Assert-AreEqual $p.OSProfile.ComputerName $computerName;
@@ -1055,11 +1055,11 @@ function Test-VirtualMachineDataDisk
Assert-AreEqual $p.StorageProfile.ImageReference.Version $imgRef.Version;
# Virtual Machine
- # TODO: Still need to do retry for New-AzureRMVM for SA, even it's returned in Get-.
- New-AzureRMVM -ResourceGroupName $rgname -Location $loc -VM $p;
+ # TODO: Still need to do retry for New-AzureRmVM for SA, even it's returned in Get-.
+ New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $p;
# Get VM
- $vm1 = Get-AzureRMVM -Name $vmname -ResourceGroupName $rgname;
+ $vm1 = Get-AzureRmVM -Name $vmname -ResourceGroupName $rgname;
Assert-AreEqual $vm1.Name $vmname;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces.Count 1;
@@ -1089,14 +1089,14 @@ function Test-VirtualMachineDataDisk
Assert-AreEqual $vm1.OSProfile.ComputerName $computerName;
Assert-AreEqual $vm1.HardwareProfile.VirtualMachineSize $vmsize;
- $vm1 = Set-AzureRMVMDataDisk -VM $vm1 -Caching 'ReadWrite' -Lun 1;
- $vm1 = Set-AzureRMVMDataDisk -VM $vm1 -Name $dataDiskName2 -Caching 'ReadWrite';
- $vm1 = Add-AzureRMVMDataDisk -VM $vm1 -Name $dataDiskName3 -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 3 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
+ $vm1 = Set-AzureRmVMDataDisk -VM $vm1 -Caching 'ReadWrite' -Lun 1;
+ $vm1 = Set-AzureRmVMDataDisk -VM $vm1 -Name $dataDiskName2 -Caching 'ReadWrite';
+ $vm1 = Add-AzureRmVMDataDisk -VM $vm1 -Name $dataDiskName3 -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 3 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
# Update
- Update-AzureRMVM -ResourceGroupName $rgname -VM $vm1;
+ Update-AzureRmVM -ResourceGroupName $rgname -VM $vm1;
- $vm2 = Get-AzureRMVM -Name $vmname -ResourceGroupName $rgname;
+ $vm2 = Get-AzureRmVM -Name $vmname -ResourceGroupName $rgname;
Assert-AreEqual $vm2.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $vm2.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
@@ -1132,12 +1132,12 @@ function Test-VirtualMachineDataDisk
Assert-AreEqual $vm2.HardwareProfile.VirtualMachineSize $vmsize;
Assert-NotNull $vm2.Location;
- $vms = Get-AzureRMVM -ResourceGroupName $rgname;
+ $vms = Get-AzureRmVM -ResourceGroupName $rgname;
Assert-AreNotEqual $vms $null;
# Remove All VMs
- Get-AzureRMVM -ResourceGroupName $rgname | Remove-AzureRMVM -ResourceGroupName $rgname -Force;
- $vms = Get-AzureRMVM -ResourceGroupName $rgname;
+ Get-AzureRmVM -ResourceGroupName $rgname | Remove-AzureRmVM -ResourceGroupName $rgname -Force;
+ $vms = Get-AzureRmVM -ResourceGroupName $rgname;
Assert-AreEqual $vms $null;
}
finally
@@ -1160,31 +1160,31 @@ function Test-VirtualMachineDataDiskNegative
{
# Common
$loc = Get-ComputeVMLocation;
- New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;
+ New-AzureRmResourceGroup -Name $rgname -Location $loc -Force;
# VM Profile & Hardware
$vmsize = 'Standard_A0';
$vmname = 'vm' + $rgname;
- $p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
+ $p = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
# NRP
- $subnet = New-AzureRMVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
- $vnet = New-AzureRMVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
- $vnet = Get-AzureRMVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
+ $subnet = New-AzureRmVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
+ $vnet = New-AzureRmVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
+ $vnet = Get-AzureRmVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
$subnetId = $vnet.Subnets[0].Id;
- $pubip = New-AzureRMPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
- $pubip = Get-AzureRMPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
+ $pubip = New-AzureRmPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
+ $pubip = Get-AzureRmPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
$pubipId = $pubip.Id;
- $nic = New-AzureRMNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
- $nic = Get-AzureRMNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
+ $nic = New-AzureRmNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
+ $nic = Get-AzureRmNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
$nicId = $nic.Id;
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $nicId;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $nicId;
# Storage Account (SA)
$stoname = 'sto' + $rgname;
$stotype = 'Standard_GRS';
- New-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
- $stoaccount = Get-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname;
+ New-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
+ $stoaccount = Get-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname;
$osDiskName = 'osDisk';
$osDiskCaching = 'ReadWrite';
@@ -1193,12 +1193,12 @@ function Test-VirtualMachineDataDiskNegative
$dataDiskVhdUri2 = "https://$stoname.blob.core.windows.net/test/data2.vhd";
$dataDiskVhdUri3 = "https://$stoname.blob.core.windows.net/test/data3.vhd";
- $p = Set-AzureRMVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
+ $p = Set-AzureRmVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
- $p = Add-AzureRMVMDataDisk -VM $p -Name 'testDataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 3 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
- $p = Remove-AzureRMVMDataDisk -VM $p -Name 'testDataDisk3';
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
+ $p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 3 -VhdUri $dataDiskVhdUri3 -CreateOption Empty;
+ $p = Remove-AzureRmVMDataDisk -VM $p -Name 'testDataDisk3';
# OS & Image
$user = "Foo12";
@@ -1210,14 +1210,14 @@ function Test-VirtualMachineDataDiskNegative
$img = 'a699494373c04fc0bc8f2bb1389d6106__Windows-Server-2012-Datacenter-201503.01-en.us-127GB.vhd';
# $p.StorageProfile.OSDisk = $null;
- $p = Set-AzureRMVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
+ $p = Set-AzureRmVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
# Image Reference
$imgRef = Get-DefaultCRPImage -loc $loc;
- $p = ($imgRef | Set-AzureRMVMSourceImage -VM $p);
+ $p = ($imgRef | Set-AzureRmVMSourceImage -VM $p);
# Negative Tests on A0 Size + 2 Data Disks
- Assert-ThrowsContains { New-AzureRMVM -ResourceGroupName $rgname -Location $loc -VM $p; } "The maximum number of data disks allowed to be attached to a VM is 1.";
+ Assert-ThrowsContains { New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $p; } "The maximum number of data disks allowed to be attached to a VM is 1.";
}
finally
{
@@ -1239,31 +1239,31 @@ function Test-VirtualMachinePlan
{
# Common
$loc = Get-ComputeVMLocation;
- New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;
+ New-AzureRmResourceGroup -Name $rgname -Location $loc -Force;
# VM Profile & Hardware
$vmsize = 'Standard_A0';
$vmname = 'vm' + $rgname;
- $p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
+ $p = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
# NRP
- $subnet = New-AzureRMVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
- $vnet = New-AzureRMVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
- $vnet = Get-AzureRMVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
+ $subnet = New-AzureRmVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
+ $vnet = New-AzureRmVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
+ $vnet = Get-AzureRmVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
$subnetId = $vnet.Subnets[0].Id;
- $pubip = New-AzureRMPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
- $pubip = Get-AzureRMPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
+ $pubip = New-AzureRmPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
+ $pubip = Get-AzureRmPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
$pubipId = $pubip.Id;
- $nic = New-AzureRMNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
- $nic = Get-AzureRMNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
+ $nic = New-AzureRmNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
+ $nic = Get-AzureRmNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
$nicId = $nic.Id;
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $nicId;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $nicId;
# Storage Account (SA)
$stoname = 'sto' + $rgname;
$stotype = 'Standard_GRS';
- New-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
- $stoaccount = Get-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname;
+ New-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
+ $stoaccount = Get-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname;
$osDiskName = 'osDisk';
$osDiskCaching = 'ReadWrite';
@@ -1272,7 +1272,7 @@ function Test-VirtualMachinePlan
$dataDiskVhdUri2 = "https://$stoname.blob.core.windows.net/test/data2.vhd";
$dataDiskVhdUri3 = "https://$stoname.blob.core.windows.net/test/data3.vhd";
- $p = Set-AzureRMVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
+ $p = Set-AzureRmVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
# OS & Image
$user = "Foo12";
@@ -1284,11 +1284,11 @@ function Test-VirtualMachinePlan
$img = 'a699494373c04fc0bc8f2bb1389d6106__Windows-Server-2012-Datacenter-201503.01-en.us-127GB.vhd';
# $p.StorageProfile.OSDisk = $null;
- $p = Set-AzureRMVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
+ $p = Set-AzureRmVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
# Image Reference
$imgRef = Get-DefaultCRPImage -loc $loc;
- $p = ($imgRef | Set-AzureRMVMSourceImage -VM $p);
+ $p = ($imgRef | Set-AzureRmVMSourceImage -VM $p);
$plan = Get-ComputeTestResourceName;
$p.Plan = New-Object Microsoft.Azure.Management.Compute.Models.Plan;
@@ -1298,7 +1298,7 @@ function Test-VirtualMachinePlan
$p.Plan.PromotionCode = $plan;
# Negative Tests on non-existing Plan
- Assert-ThrowsContains { New-AzureRMVM -ResourceGroupName $rgname -Location $loc -VM $p; } "User failed validation to purchase resources";
+ Assert-ThrowsContains { New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $p; } "User failed validation to purchase resources";
}
finally
{
@@ -1323,37 +1323,37 @@ function Test-VirtualMachinePlan2
# Common
$loc = Get-ComputeVMLocation;
- New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;
+ New-AzureRmResourceGroup -Name $rgname -Location $loc -Force;
# VM Profile & Hardware
$vmsize = Get-DefaultVMSize;
$vmname = 'vm' + $rgname;
- $p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
+ $p = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
# NRP
- $subnet = New-AzureRMVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
- $vnet = New-AzureRMVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
- $vnet = Get-AzureRMVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
+ $subnet = New-AzureRmVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
+ $vnet = New-AzureRmVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
+ $vnet = Get-AzureRmVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
$subnetId = $vnet.Subnets[0].Id;
- $pubip = New-AzureRMPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
- $pubip = Get-AzureRMPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
+ $pubip = New-AzureRmPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
+ $pubip = Get-AzureRmPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
$pubipId = $pubip.Id;
- $nic = New-AzureRMNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
- $nic = Get-AzureRMNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
+ $nic = New-AzureRmNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
+ $nic = Get-AzureRmNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
$nicId = $nic.Id;
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $nicId;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $nicId;
# Storage Account (SA)
$stoname = 'sto' + $rgname;
$stotype = Get-DefaultStorageType;
- New-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
- $stoaccount = Get-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname;
+ New-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
+ $stoaccount = Get-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname;
$osDiskName = 'osDisk';
$osDiskCaching = 'ReadWrite';
$osDiskVhdUri = "https://$stoname.blob.core.windows.net/test/os.vhd";
- $p = Set-AzureRMVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
+ $p = Set-AzureRmVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
# OS & Image
$user = "Foo12";
@@ -1364,13 +1364,13 @@ function Test-VirtualMachinePlan2
$vhdContainer = "https://$stoname.blob.core.windows.net/test";
# $p.StorageProfile.OSDisk = $null;
- $p = Set-AzureRMVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
+ $p = Set-AzureRmVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
# Image Reference
# Pick a VMM Image
$imgRef = (Get-MarketplaceImage)[0];
$plan = $imgRef.PurchasePlan;
- $p = Set-AzureRMVMSourceImage -VM $p -PublisherName $imgRef.PublisherName -Offer $imgRef.Offer -Skus $imgRef.Skus -Version $imgRef.Version;
+ $p = Set-AzureRmVMSourceImage -VM $p -PublisherName $imgRef.PublisherName -Offer $imgRef.Offer -Skus $imgRef.Skus -Version $imgRef.Version;
$p.Plan = New-Object Microsoft.Azure.Management.Compute.Models.Plan;
$p.Plan.Name = $plan.Name;
$p.Plan.Publisher = $plan.Publisher;
@@ -1379,7 +1379,7 @@ function Test-VirtualMachinePlan2
$p.OSProfile.WindowsConfiguration = $null;
# Negative Tests on non-purchased Plan
- Assert-ThrowsContains { New-AzureRMVM -ResourceGroupName $rgname -Location $loc -VM $p; } "Legal terms have not been accepted for this item on this subscription";
+ Assert-ThrowsContains { New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $p; } "Legal terms have not been accepted for this item on this subscription";
}
finally
{
@@ -1402,37 +1402,37 @@ function Test-VirtualMachineTags
{
# Common
$loc = Get-ComputeVMLocation;
- New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;
+ New-AzureRmResourceGroup -Name $rgname -Location $loc -Force;
# VM Profile & Hardware
$vmsize = 'Standard_A0';
$vmname = 'vm' + $rgname;
- $p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
+ $p = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
# NRP
- $subnet = New-AzureRMVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
- $vnet = New-AzureRMVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
- $vnet = Get-AzureRMVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
+ $subnet = New-AzureRmVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
+ $vnet = New-AzureRmVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
+ $vnet = Get-AzureRmVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
$subnetId = $vnet.Subnets[0].Id;
- $pubip = New-AzureRMPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
- $pubip = Get-AzureRMPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
+ $pubip = New-AzureRmPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
+ $pubip = Get-AzureRmPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
$pubipId = $pubip.Id;
- $nic = New-AzureRMNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
- $nic = Get-AzureRMNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
+ $nic = New-AzureRmNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
+ $nic = Get-AzureRmNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
$nicId = $nic.Id;
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $nicId;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $nicId;
# Storage Account (SA)
$stoname = 'sto' + $rgname;
$stotype = 'Standard_GRS';
- New-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
- $stoaccount = Get-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname;
+ New-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
+ $stoaccount = Get-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname;
$osDiskName = 'osDisk';
$osDiskCaching = 'ReadWrite';
$osDiskVhdUri = "https://$stoname.blob.core.windows.net/test/os.vhd";
- $p = Set-AzureRMVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
+ $p = Set-AzureRmVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
# OS & Image
$user = "Foo12";
@@ -1441,18 +1441,18 @@ function Test-VirtualMachineTags
$cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword);
$computerName = 'test';
- $p = Set-AzureRMVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
+ $p = Set-AzureRmVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;
# Image Reference
$imgRef = Get-DefaultCRPImage -loc $loc;
- $p = ($imgRef | Set-AzureRMVMSourceImage -VM $p);
+ $p = ($imgRef | Set-AzureRmVMSourceImage -VM $p);
# Test Tags
$tags = @{Name = "test1"; Value = "testval1"}, @{ Name = "test2"; Value = "testval2" };
- $st = New-AzureRMVM -ResourceGroupName $rgname -Location $loc -VM $p -Tags $tags;
+ $st = New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $p -Tags $tags;
Assert-NotNull $st.RequestId;
- Assert-NotNull $st.StatusCode;
- $vm = Get-AzureRMVM -ResourceGroupName $rgname -Name $vmname;
+ Assert-NotNull $st.Status;
+ $vm = Get-AzureRmVM -ResourceGroupName $rgname -Name $vmname;
Assert-NotNull $vm.RequestId;
Assert-NotNull $vm.StatusCode;
@@ -1480,40 +1480,40 @@ function Test-VirtualMachineWithVMAgentAutoUpdate
{
# Common
$loc = Get-ComputeVMLocation;
- New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;
+ New-AzureRmResourceGroup -Name $rgname -Location $loc -Force;
# VM Profile & Hardware
$vmsize = 'Standard_A4';
$vmname = 'vm' + $rgname;
- $p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
+ $p = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
Assert-AreEqual $p.HardwareProfile.VirtualMachineSize $vmsize;
# NRP
- $subnet = New-AzureRMVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
- $vnet = New-AzureRMVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
- $vnet = Get-AzureRMVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
+ $subnet = New-AzureRmVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
+ $vnet = New-AzureRmVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
+ $vnet = Get-AzureRmVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
$subnetId = $vnet.Subnets[0].Id;
- $pubip = New-AzureRMPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
- $pubip = Get-AzureRMPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
+ $pubip = New-AzureRmPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
+ $pubip = Get-AzureRmPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
$pubipId = $pubip.Id;
- $nic = New-AzureRMNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
- $nic = Get-AzureRMNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
+ $nic = New-AzureRmNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
+ $nic = Get-AzureRmNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
$nicId = $nic.Id;
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $nicId;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $nicId;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
# Storage Account (SA)
$stoname = 'sto' + $rgname;
$stotype = 'Standard_GRS';
- New-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
- $stoaccount = Get-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname;
+ New-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
+ $stoaccount = Get-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname;
$osDiskName = 'osDisk';
$osDiskCaching = 'ReadWrite';
$osDiskVhdUri = "https://$stoname.blob.core.windows.net/test/os.vhd";
- $p = Set-AzureRMVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
+ $p = Set-AzureRmVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
Assert-AreEqual $p.StorageProfile.OSDisk.Caching $osDiskCaching;
Assert-AreEqual $p.StorageProfile.OSDisk.Name $osDiskName;
@@ -1528,8 +1528,8 @@ function Test-VirtualMachineWithVMAgentAutoUpdate
$vhdContainer = "https://$stoname.blob.core.windows.net/test";
$imgRef = Get-DefaultCRPWindowsImageOffline;
- $p = Set-AzureRMVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred -ProvisionVMAgent -EnableAutoUpdate;
- $p = ($imgRef | Set-AzureRMVMSourceImage -VM $p);
+ $p = Set-AzureRmVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred -ProvisionVMAgent -EnableAutoUpdate;
+ $p = ($imgRef | Set-AzureRmVMSourceImage -VM $p);
Assert-AreEqual $p.OSProfile.AdminUsername $user;
Assert-AreEqual $p.OSProfile.ComputerName $computerName;
@@ -1543,11 +1543,11 @@ function Test-VirtualMachineWithVMAgentAutoUpdate
Assert-Null $p.OSProfile.WindowsConfiguration.AdditionalUnattendContents "NULL";
# Virtual Machine
- # TODO: Still need to do retry for New-AzureRMVM for SA, even it's returned in Get-.
- New-AzureRMVM -ResourceGroupName $rgname -Location $loc -VM $p;
+ # TODO: Still need to do retry for New-AzureRmVM for SA, even it's returned in Get-.
+ New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $p;
# Get VM
- $vm1 = Get-AzureRMVM -Name $vmname -ResourceGroupName $rgname;
+ $vm1 = Get-AzureRmVM -Name $vmname -ResourceGroupName $rgname;
Assert-AreEqual $vm1.Name $vmname;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
@@ -1562,7 +1562,7 @@ function Test-VirtualMachineWithVMAgentAutoUpdate
Assert-AreEqual $vm1.HardwareProfile.VirtualMachineSize $vmsize;
# Remove
- Remove-AzureRMVM -Name $vmname -ResourceGroupName $rgname -Force;
+ Remove-AzureRmVM -Name $vmname -ResourceGroupName $rgname -Force;
}
finally
{
@@ -1584,40 +1584,40 @@ function Test-LinuxVirtualMachine
{
# Common
$loc = Get-ComputeVMLocation;
- New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;
+ New-AzureRmResourceGroup -Name $rgname -Location $loc -Force;
# VM Profile & Hardware
$vmsize = 'Standard_A4';
$vmname = 'vm' + $rgname;
- $p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
+ $p = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
Assert-AreEqual $p.HardwareProfile.VirtualMachineSize $vmsize;
# NRP
- $subnet = New-AzureRMVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
- $vnet = New-AzureRMVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
- $vnet = Get-AzureRMVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
+ $subnet = New-AzureRmVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
+ $vnet = New-AzureRmVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet;
+ $vnet = Get-AzureRmVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
$subnetId = $vnet.Subnets[0].Id;
- $pubip = New-AzureRMPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
- $pubip = Get-AzureRMPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
+ $pubip = New-AzureRmPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
+ $pubip = Get-AzureRmPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
$pubipId = $pubip.Id;
- $nic = New-AzureRMNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
- $nic = Get-AzureRMNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
+ $nic = New-AzureRmNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id;
+ $nic = Get-AzureRmNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
$nicId = $nic.Id;
- $p = Add-AzureRMVMNetworkInterface -VM $p -Id $nicId;
+ $p = Add-AzureRmVMNetworkInterface -VM $p -Id $nicId;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
# Storage Account (SA)
$stoname = 'sto' + $rgname;
$stotype = 'Standard_GRS';
- New-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
- $stoaccount = Get-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname;
+ New-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
+ $stoaccount = Get-AzureRmStorageAccount -ResourceGroupName $rgname -Name $stoname;
$osDiskName = 'osDisk';
$osDiskCaching = 'ReadWrite';
$osDiskVhdUri = "https://$stoname.blob.core.windows.net/test/os.vhd";
- $p = Set-AzureRMVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
+ $p = Set-AzureRmVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
Assert-AreEqual $p.StorageProfile.OSDisk.Caching $osDiskCaching;
Assert-AreEqual $p.StorageProfile.OSDisk.Name $osDiskName;
@@ -1633,8 +1633,8 @@ function Test-LinuxVirtualMachine
$imgRef = Get-DefaultCRPLinuxImageOffline;
- $p = Set-AzureRMVMOperatingSystem -VM $p -Linux -ComputerName $computerName -Credential $cred
- $p = ($imgRef | Set-AzureRMVMSourceImage -VM $p);
+ $p = Set-AzureRmVMOperatingSystem -VM $p -Linux -ComputerName $computerName -Credential $cred
+ $p = ($imgRef | Set-AzureRmVMSourceImage -VM $p);
Assert-AreEqual $p.OSProfile.AdminUsername $user;
Assert-AreEqual $p.OSProfile.ComputerName $computerName;
@@ -1646,11 +1646,11 @@ function Test-LinuxVirtualMachine
Assert-AreEqual $p.StorageProfile.ImageReference.Version $imgRef.Version;
# Virtual Machine
- # TODO: Still need to do retry for New-AzureRMVM for SA, even it's returned in Get-.
- New-AzureRMVM -ResourceGroupName $rgname -Location $loc -VM $p;
+ # TODO: Still need to do retry for New-AzureRmVM for SA, even it's returned in Get-.
+ New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $p;
# Get VM
- $vm1 = Get-AzureRMVM -Name $vmname -ResourceGroupName $rgname;
+ $vm1 = Get-AzureRmVM -Name $vmname -ResourceGroupName $rgname;
Assert-AreEqual $vm1.Name $vmname;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces.Count 1;
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
@@ -1665,7 +1665,7 @@ function Test-LinuxVirtualMachine
Assert-AreEqual $vm1.HardwareProfile.VirtualMachineSize $vmsize;
# Remove
- Remove-AzureRMVM -Name $vmname -ResourceGroupName $rgname -Force;
+ Remove-AzureRmVM -Name $vmname -ResourceGroupName $rgname -Force;
}
finally
{
@@ -1684,28 +1684,28 @@ function Test-VMImageCmdletOutputFormat
$sku = $imgRef.Skus;
$ver = $imgRef.Version;
- Assert-OutputContains " Get-AzureRMVMImagePublisher -Location $locStr" @('Id', 'Location', 'PublisherName');
+ Assert-OutputContains " Get-AzureRmVMImagePublisher -Location $locStr" @('Id', 'Location', 'PublisherName');
- Assert-OutputContains " Get-AzureRMVMImagePublisher -Location $locStr | ? { `$_.PublisherName -eq `'$publisher`' } " @('Id', 'Location', 'PublisherName');
+ Assert-OutputContains " Get-AzureRmVMImagePublisher -Location $locStr | ? { `$_.PublisherName -eq `'$publisher`' } " @('Id', 'Location', 'PublisherName');
- Assert-OutputContains " Get-AzureRMVMImagePublisher -Location $locStr | ? { `$_.PublisherName -eq `'$publisher`' } | Get-AzureRMVMImageOffer " @('Id', 'Location', 'PublisherName', 'Offer');
+ Assert-OutputContains " Get-AzureRmVMImagePublisher -Location $locStr | ? { `$_.PublisherName -eq `'$publisher`' } | Get-AzureRmVMImageOffer " @('Id', 'Location', 'PublisherName', 'Offer');
- Assert-OutputContains " Get-AzureRMVMImagePublisher -Location $locStr | ? { `$_.PublisherName -eq `'$publisher`' } | Get-AzureRMVMImageOffer | Get-AzureRMVMImageSku " @('Id', 'Location', 'PublisherName', 'Offer', 'Sku');
+ Assert-OutputContains " Get-AzureRmVMImagePublisher -Location $locStr | ? { `$_.PublisherName -eq `'$publisher`' } | Get-AzureRmVMImageOffer | Get-AzureRmVMImageSku " @('Id', 'Location', 'PublisherName', 'Offer', 'Sku');
- Assert-OutputContains " Get-AzureRMVMImagePublisher -Location $locStr | ? { `$_.PublisherName -eq `'$publisher`' } | Get-AzureRMVMImageOffer | Get-AzureRMVMImageSku | Get-AzureRMVMImage " @('Id', 'Location', 'PublisherName', 'Offer', 'Sku', 'Version', 'FilterExpression');
+ Assert-OutputContains " Get-AzureRmVMImagePublisher -Location $locStr | ? { `$_.PublisherName -eq `'$publisher`' } | Get-AzureRmVMImageOffer | Get-AzureRmVMImageSku | Get-AzureRmVMImage " @('Id', 'Location', 'PublisherName', 'Offer', 'Sku', 'Version', 'FilterExpression');
- Assert-OutputContains " Get-AzureRMVMImage -Location $locStr -PublisherName $publisher -Offer $offer -Skus $sku -Version $ver " @('Id', 'Location', 'PublisherName', 'Offer', 'Sku', 'Version', 'FilterExpression', 'Name', 'DataDiskImages', 'OSDiskImage', 'PurchasePlan');
+ Assert-OutputContains " Get-AzureRmVMImage -Location $locStr -PublisherName $publisher -Offer $offer -Skus $sku -Version $ver " @('Id', 'Location', 'PublisherName', 'Offer', 'Sku', 'Version', 'FilterExpression', 'Name', 'DataDiskImages', 'OSDiskImage', 'PurchasePlan');
- Assert-OutputContains " Get-AzureRMVMImage -Location $locStr -PublisherName $publisher -Offer $offer -Skus $sku -Version $ver " @('Id', 'Location', 'PublisherName', 'Offer', 'Sku', 'Version', 'FilterExpression', 'Name', 'DataDiskImages', 'OSDiskImage', 'PurchasePlan');
+ Assert-OutputContains " Get-AzureRmVMImage -Location $locStr -PublisherName $publisher -Offer $offer -Skus $sku -Version $ver " @('Id', 'Location', 'PublisherName', 'Offer', 'Sku', 'Version', 'FilterExpression', 'Name', 'DataDiskImages', 'OSDiskImage', 'PurchasePlan');
}
# Test Get VM Size from All Locations
function Test-GetVMSizeFromAllLocations
{
- $locations = Get-AzureRMLocation | where { $_.Name -like 'Microsoft.Compute/virtualMachines' } | select -ExpandProperty Locations;
+ $locations = Get-AzureRmLocation | where { $_.Name -like 'Microsoft.Compute/virtualMachines' } | select -ExpandProperty Locations;
foreach ($loc in $locations)
{
- $vmsizes = Get-AzureRMVMSize -Location $loc;
+ $vmsizes = Get-AzureRmVMSize -Location $loc;
Assert-True { $vmsizes.Count -gt 0 }
Assert-True { ($vmsizes | where { $_.Name -eq 'Standard_A3' }).Count -eq 1 }
@@ -1726,7 +1726,7 @@ function Test-VirtualMachineListWithPaging
{
# Common
$loc = Get-ComputeDefaultLocation;
- $st = New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;
+ $st = New-AzureRmResourceGroup -Name $rgname -Location $loc -Force;
$numberOfInstances = 51;
$vmSize = 'Standard_A0';
@@ -1759,12 +1759,12 @@ function Test-VirtualMachineListWithPaging
$st = Set-Content -Path $paramFile -Value $paramContent -Force;
- $st = New-AzureRMResourceGroupDeployment -Name "${rgname}dp" -ResourceGroupName $rgname -TemplateFile $templateFile -TemplateParameterFile $paramFile;
+ $st = New-AzureRmResourceGroupDeployment -Name "${rgname}dp" -ResourceGroupName $rgname -TemplateFile $templateFile -TemplateParameterFile $paramFile;
- $vms = Get-AzureRMVM -ResourceGroupName $rgname;
+ $vms = Get-AzureRmVM -ResourceGroupName $rgname;
Assert-True { $vms.Count -eq $numberOfInstances };
- $vms = Get-AzureRMVM;
+ $vms = Get-AzureRmVM;
Assert-True { $vms.Count -ge $numberOfInstances };
}
finally
diff --git a/src/ResourceManager/Compute/Commands.Compute.Test/packages.config b/src/ResourceManager/Compute/Commands.Compute.Test/packages.config
index 43d6cd407d42..76d7772702c5 100644
--- a/src/ResourceManager/Compute/Commands.Compute.Test/packages.config
+++ b/src/ResourceManager/Compute/Commands.Compute.Test/packages.config
@@ -2,12 +2,12 @@
-
+
-
+
diff --git a/src/ResourceManager/Compute/Commands.Compute/Commands.Compute.csproj b/src/ResourceManager/Compute/Commands.Compute/Commands.Compute.csproj
index 5b3517ce2792..4a678d64da5c 100644
--- a/src/ResourceManager/Compute/Commands.Compute/Commands.Compute.csproj
+++ b/src/ResourceManager/Compute/Commands.Compute/Commands.Compute.csproj
@@ -59,7 +59,7 @@
..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.dll
- ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.3.0-preview\lib\net45\Microsoft.Azure.Common.Authentication.dll
+ ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.3.1-preview\lib\net45\Microsoft.Azure.Common.Authentication.dllTrue
@@ -174,12 +174,6 @@
-
- Common\ComputeCloudException.cs
-
-
- Common\DiagnosticsHelper.cs
-
Extension\DSC\DscExtensionCmdletConstants.cs
@@ -205,6 +199,8 @@
+
+
@@ -345,6 +341,10 @@
{65c3a86a-716d-4e7d-ab67-1db00b3bf72d}Commands.Common.Storage
+
+ {5ee72c53-1720-4309-b54b-5fb79703195f}
+ Commands.Common
+ {3819d8a7-c62c-4c47-8ddd-0332d9ce1252}Commands.ResourceManager.Common
diff --git a/src/Common/Commands.Common/ComputeCloudException.cs b/src/ResourceManager/Compute/Commands.Compute/Common/ComputeCloudException.cs
similarity index 100%
rename from src/Common/Commands.Common/ComputeCloudException.cs
rename to src/ResourceManager/Compute/Commands.Compute/Common/ComputeCloudException.cs
diff --git a/src/ResourceManager/Compute/Commands.Compute/Common/ConstantStringTypes.cs b/src/ResourceManager/Compute/Commands.Compute/Common/ConstantStringTypes.cs
index 078d8629c9d4..eb62eeea1d86 100644
--- a/src/ResourceManager/Compute/Commands.Compute/Common/ConstantStringTypes.cs
+++ b/src/ResourceManager/Compute/Commands.Compute/Common/ConstantStringTypes.cs
@@ -52,56 +52,56 @@ public static class ValidateSetValues
public static class ProfileNouns
{
- public const string VirtualMachineProfile = "AzureRMVMProfile";
+ public const string VirtualMachineProfile = "AzureRmVMProfile";
- public const string OSProfile = "AzureRMVMOSProfile";
- public const string StorageProfile = "AzureRMVMStorageProfile";
- public const string HardwareProfile = "AzureRMVMHardwareProfile";
- public const string NetworkProfile = "AzureRMVMNetworkProfile";
+ public const string OSProfile = "AzureRmVMOSProfile";
+ public const string StorageProfile = "AzureRmVMStorageProfile";
+ public const string HardwareProfile = "AzureRmVMHardwareProfile";
+ public const string NetworkProfile = "AzureRmVMNetworkProfile";
- public const string OperatingSystem = "AzureRMVMOperatingSystem";
+ public const string OperatingSystem = "AzureRmVMOperatingSystem";
- public const string DataDisk = "AzureRMVMDataDisk";
- public const string OSDisk = "AzureRMVMOSDisk";
- public const string SourceImage = "AzureRMVMSourceImage";
+ public const string DataDisk = "AzureRmVMDataDisk";
+ public const string OSDisk = "AzureRmVMOSDisk";
+ public const string SourceImage = "AzureRmVMSourceImage";
- public const string NetworkInterface = "AzureRMVMNetworkInterface";
+ public const string NetworkInterface = "AzureRmVMNetworkInterface";
- public const string VirtualMachine = "AzureRMVM";
- public const string VirtualMachineExtension = "AzureRMVMExtension";
- public const string VirtualMachineCustomScriptExtension = "AzureRMVMCustomScriptExtension";
- public const string VirtualMachineAccessExtension = "AzureRMVMAccessExtension";
- public const string VirtualMachineDiagnosticsExtension = "AzureRMVMDiagnosticsExtension";
- public const string VirtualMachineExtensionImage = "AzureRMVMExtensionImage";
- public const string VirtualMachineExtensionImageVersion = "AzureRMVMExtensionImageVersion";
- public const string VirtualMachineExtensionImageType = "AzureRMVMExtensionImageType";
+ public const string VirtualMachine = "AzureRmVM";
+ public const string VirtualMachineExtension = "AzureRmVMExtension";
+ public const string VirtualMachineCustomScriptExtension = "AzureRmVMCustomScriptExtension";
+ public const string VirtualMachineAccessExtension = "AzureRmVMAccessExtension";
+ public const string VirtualMachineDiagnosticsExtension = "AzureRmVMDiagnosticsExtension";
+ public const string VirtualMachineExtensionImage = "AzureRmVMExtensionImage";
+ public const string VirtualMachineExtensionImageVersion = "AzureRmVMExtensionImageVersion";
+ public const string VirtualMachineExtensionImageType = "AzureRmVMExtensionImageType";
- public const string AvailabilitySet = "AzureRMAvailabilitySet";
- public const string VirtualMachineConfig = "AzureRMVMConfig";
- public const string VirtualMachinePlan = "AzureRMVMPlan";
+ public const string AvailabilitySet = "AzureRmAvailabilitySet";
+ public const string VirtualMachineConfig = "AzureRmVMConfig";
+ public const string VirtualMachinePlan = "AzureRmVMPlan";
- public const string VirtualMachineSize = "AzureRMVMSize";
+ public const string VirtualMachineSize = "AzureRmVMSize";
- public const string VirtualMachineImage = "AzureRMVMImage";
- public const string VirtualMachineImagePublisher = "AzureRMVMImagePublisher";
- public const string VirtualMachineImageOffer = "AzureRMVMImageOffer";
- public const string VirtualMachineImageSku = "AzureRMVMImageSku";
- public const string VirtualMachineImageVersion = "AzureRMVMImageVersion";
+ public const string VirtualMachineImage = "AzureRmVMImage";
+ public const string VirtualMachineImagePublisher = "AzureRmVMImagePublisher";
+ public const string VirtualMachineImageOffer = "AzureRmVMImageOffer";
+ public const string VirtualMachineImageSku = "AzureRmVMImageSku";
+ public const string VirtualMachineImageVersion = "AzureRmVMImageVersion";
- public const string VirtualMachineUsage = "AzureRMVMUsage";
+ public const string VirtualMachineUsage = "AzureRmVMUsage";
- public const string SshPublicKey = "AzureRMVMSshPublicKey";
- public const string AdditionalUnattendContent = "AzureRMVMAdditionalUnattendContent";
- public const string VaultSecretGroup = "AzureRMVMSecret";
- public const string RemoteDesktopFile = "AzureRMRemoteDesktopFile";
+ public const string SshPublicKey = "AzureRmVMSshPublicKey";
+ public const string AdditionalUnattendContent = "AzureRmVMAdditionalUnattendContent";
+ public const string VaultSecretGroup = "AzureRmVMSecret";
+ public const string RemoteDesktopFile = "AzureRmRemoteDesktopFile";
//DSC
- public const string VirtualMachineDscExtension = "AzureRMVMDscExtension";
- public const string VirtualMachineDscConfiguration = "AzureRMVMDscConfiguration";
+ public const string VirtualMachineDscExtension = "AzureRmVMDscExtension";
+ public const string VirtualMachineDscConfiguration = "AzureRmVMDscConfiguration";
- public const string Vhd = "AzureRMVhd";
+ public const string Vhd = "AzureRmVhd";
// Sql Server
- public const string VirtualMachineSqlServerExtension = "AzureRMVMSqlServerExtension";
+ public const string VirtualMachineSqlServerExtension = "AzureRmVMSqlServerExtension";
}
}
diff --git a/src/Common/Commands.Common/DiagnosticsHelper.cs b/src/ResourceManager/Compute/Commands.Compute/Common/DiagnosticsHelper.cs
similarity index 100%
rename from src/Common/Commands.Common/DiagnosticsHelper.cs
rename to src/ResourceManager/Compute/Commands.Compute/Common/DiagnosticsHelper.cs
diff --git a/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/GetAzureVMDscExtensionCommand.cs b/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/GetAzureVMDscExtensionCommand.cs
index 1d94d1acae02..a83ff0f4207b 100644
--- a/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/GetAzureVMDscExtensionCommand.cs
+++ b/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/GetAzureVMDscExtensionCommand.cs
@@ -40,8 +40,8 @@ public class GetAzureVMDscExtensionCommand : VirtualMachineExtensionBaseCmdlet
[Parameter(
Position = 2,
ValueFromPipelineByPropertyName = true,
- HelpMessage = "Name of the ARM resource that represents the extension. The Set-AzureRMVMDscExtension cmdlet sets this name to " +
- "'Microsoft.Powershell.DSC', which is the same value used by Get-AzureRMVMDscExtension. Specify this parameter only if you changed " +
+ HelpMessage = "Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to " +
+ "'Microsoft.Powershell.DSC', which is the same value used by Get-AzureRmVMDscExtension. Specify this parameter only if you changed " +
"the default name in the Set cmdlet or used a different resource name in an ARM template.")]
[ValidateNotNullOrEmpty]
public string Name { get; set; }
diff --git a/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/PublishAzureVMDscConfigurationCommand.cs b/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/PublishAzureVMDscConfigurationCommand.cs
index d9edd8a084b9..0b15e2773df1 100644
--- a/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/PublishAzureVMDscConfigurationCommand.cs
+++ b/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/PublishAzureVMDscConfigurationCommand.cs
@@ -11,7 +11,7 @@ namespace Microsoft.Azure.Commands.Compute.Extension.DSC
///
/// Uploads a Desired State Configuration script to Azure blob storage, which
/// later can be applied to Azure Virtual Machines using the
- /// Set-AzureRMVMDscExtension cmdlet.
+ /// Set-AzureRmVMDscExtension cmdlet.
///
[Cmdlet(
VerbsData.Publish,
@@ -73,7 +73,7 @@ public class PublishAzureVMDscConfigurationCommand : DscExtensionPublishCmdletCo
///
/// Path to a local ZIP file to write the configuration archive to.
- /// When using this parameter, Publish-AzureRMVMDscConfiguration creates a
+ /// When using this parameter, Publish-AzureRmVMDscConfiguration creates a
/// local ZIP archive instead of uploading it to blob storage..
///
[Alias("ConfigurationArchivePath")]
@@ -96,10 +96,10 @@ public class PublishAzureVMDscConfigurationCommand : DscExtensionPublishCmdletCo
public string StorageEndpointSuffix { get; set; }
///
- /// By default Publish-AzureRMVMDscConfiguration will not overwrite any existing blobs.
+ /// By default Publish-AzureRmVMDscConfiguration will not overwrite any existing blobs.
/// Use -Force to overwrite them.
///
- [Parameter(HelpMessage = "By default Publish-AzureRMVMDscConfiguration will not overwrite any existing blobs")]
+ [Parameter(HelpMessage = "By default Publish-AzureRmVMDscConfiguration will not overwrite any existing blobs")]
public SwitchParameter Force { get; set; }
///
@@ -117,7 +117,7 @@ public class PublishAzureVMDscConfigurationCommand : DscExtensionPublishCmdletCo
ValueFromPipelineByPropertyName = true,
HelpMessage = "Path to a .psd1 file that specifies the data for the Configuration. This is added to the configuration " +
"archive and then passed to the configuration function. It gets overwritten by the configuration data path " +
- "provided through the Set-AzureRMVMDscExtension cmdlet")]
+ "provided through the Set-AzureRmVMDscExtension cmdlet")]
[ValidateNotNullOrEmpty]
public string ConfigurationDataPath { get; set; }
diff --git a/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/RemoveAzureVMDscExtensionCommand.cs b/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/RemoveAzureVMDscExtensionCommand.cs
index 7c6cfdafa52b..62a11dc7039c 100644
--- a/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/RemoveAzureVMDscExtensionCommand.cs
+++ b/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/RemoveAzureVMDscExtensionCommand.cs
@@ -39,8 +39,8 @@ public class RemoveAzureVMDscExtensionCommand : VirtualMachineExtensionBaseCmdle
[Parameter(
Position = 2,
ValueFromPipelineByPropertyName = true,
- HelpMessage = "Name of the ARM resource that represents the extension. The Set-AzureRMVMDscExtension cmdlet sets this name to " +
- "'Microsoft.Powershell.DSC', which is the same value used by Get-AzureRMVMDscExtension. Specify this parameter only if you changed " +
+ HelpMessage = "Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to " +
+ "'Microsoft.Powershell.DSC', which is the same value used by Get-AzureRmVMDscExtension. Specify this parameter only if you changed " +
"the default name in the Set cmdlet or used a different resource name in an ARM template.")]
[ValidateNotNullOrEmpty]
public string Name { get; set; }
diff --git a/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/SetAzureVMDscExtensionCommand.cs b/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/SetAzureVMDscExtensionCommand.cs
index 063b809aafd3..5377a8b43572 100644
--- a/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/SetAzureVMDscExtensionCommand.cs
+++ b/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/SetAzureVMDscExtensionCommand.cs
@@ -51,7 +51,7 @@ public class SetAzureVMDscExtensionCommand : VirtualMachineExtensionBaseCmdlet
///
/// The name of the configuration archive that was previously uploaded by
- /// Publish-AzureRMVMDSCConfiguration. This parameter must specify only the name
+ /// Publish-AzureRmVMDSCConfiguration. This parameter must specify only the name
/// of the file, without any path.
/// A null value or empty string indicate that the VM extension should install DSC,
/// but not start any configuration
@@ -62,7 +62,7 @@ public class SetAzureVMDscExtensionCommand : VirtualMachineExtensionBaseCmdlet
Position = 5,
ValueFromPipelineByPropertyName = true,
ParameterSetName = AzureBlobDscExtensionParamSet,
- HelpMessage = "The name of the configuration file that was previously uploaded by Publish-AzureRMVMDSCConfiguration")]
+ HelpMessage = "The name of the configuration file that was previously uploaded by Publish-AzureRmVMDSCConfiguration")]
[AllowEmptyString]
[AllowNull]
public string ArchiveBlobName { get; set; }
@@ -146,7 +146,7 @@ public class SetAzureVMDscExtensionCommand : VirtualMachineExtensionBaseCmdlet
public string ConfigurationData { get; set; }
///
- /// The specific version of the DSC extension that Set-AzureRMVMDSCExtension will
+ /// The specific version of the DSC extension that Set-AzureRmVMDSCExtension will
/// apply the settings to.
///
[Alias("HandlerVersion")]
@@ -154,13 +154,13 @@ public class SetAzureVMDscExtensionCommand : VirtualMachineExtensionBaseCmdlet
Mandatory = true,
Position = 1,
ValueFromPipelineByPropertyName = true,
- HelpMessage = "The version of the DSC extension that Set-AzureRMVMDSCExtension will apply the settings to. " +
+ HelpMessage = "The version of the DSC extension that Set-AzureRmVMDSCExtension will apply the settings to. " +
"Allowed format N.N")]
[ValidateNotNullOrEmpty]
public string Version { get; set; }
///
- /// By default Set-AzureRMVMDscExtension will not overwrite any existing blobs. Use -Force to overwrite them.
+ /// By default Set-AzureRmVMDscExtension will not overwrite any existing blobs. Use -Force to overwrite them.
///
[Parameter(
HelpMessage = "Use this parameter to overwrite any existing blobs")]
diff --git a/src/ResourceManager/Compute/Commands.Compute/Extension/SqlServer/GetAzureVMSqlServerExtensionCommand.cs b/src/ResourceManager/Compute/Commands.Compute/Extension/SqlServer/GetAzureVMSqlServerExtensionCommand.cs
index 50a3454e86b8..c0f83fcb25dc 100644
--- a/src/ResourceManager/Compute/Commands.Compute/Extension/SqlServer/GetAzureVMSqlServerExtensionCommand.cs
+++ b/src/ResourceManager/Compute/Commands.Compute/Extension/SqlServer/GetAzureVMSqlServerExtensionCommand.cs
@@ -51,8 +51,8 @@ public class GetAzureVMSqlServerExtensionCommand : VirtualMachineExtensionBaseCm
[Parameter(
Position = 2,
ValueFromPipelineByPropertyName = true,
- HelpMessage = "Name of the ARM resource that represents the extension. The Set-AzureRMVMSqlServerExtension cmdlet sets this name to " +
- "'Microsoft.SqlServer.Management.SqlIaaSAgent', which is the same value used by Get-AzureRMVMSqlServerExtension. Specify this parameter only if you changed " +
+ HelpMessage = "Name of the ARM resource that represents the extension. The Set-AzureRmVMSqlServerExtension cmdlet sets this name to " +
+ "'Microsoft.SqlServer.Management.SqlIaaSAgent', which is the same value used by Get-AzureRmVMSqlServerExtension. Specify this parameter only if you changed " +
"the default name in the Set cmdlet or used a different resource name in an ARM template.")]
[ValidateNotNullOrEmpty]
public string Name { get; set; }
diff --git a/src/ResourceManager/Compute/Commands.Compute/Extension/SqlServer/SetAzureVMSqlServerExtensionCommand.cs b/src/ResourceManager/Compute/Commands.Compute/Extension/SqlServer/SetAzureVMSqlServerExtensionCommand.cs
index e0a62f538fa6..f497678e09d9 100644
--- a/src/ResourceManager/Compute/Commands.Compute/Extension/SqlServer/SetAzureVMSqlServerExtensionCommand.cs
+++ b/src/ResourceManager/Compute/Commands.Compute/Extension/SqlServer/SetAzureVMSqlServerExtensionCommand.cs
@@ -27,14 +27,14 @@ namespace Microsoft.Azure.Commands.Compute
public class SetAzureSqlServerExtensionCommand : VirtualMachineExtensionBaseCmdlet
{
///
- /// The specific version of the SqlServer extension that Set-AzureRMVMSqlServerExtension will
+ /// The specific version of the SqlServer extension that Set-AzureRmVMSqlServerExtension will
/// apply the settings to.
///
[Alias("HandlerVersion")]
[Parameter(
Position = 1,
ValueFromPipelineByPropertyName = true,
- HelpMessage = "The version of the SqlServer extension that Set-AzureRMVMSqlServerExtension will apply the settings to. " +
+ HelpMessage = "The version of the SqlServer extension that Set-AzureRmVMSqlServerExtension will apply the settings to. " +
"Allowed format N.N")]
[ValidateNotNullOrEmpty]
public string Version { get; set; }
diff --git a/src/ResourceManager/Compute/Commands.Compute/Extension/SqlServer/VirtualMachineSqlServerExtensionContext.cs b/src/ResourceManager/Compute/Commands.Compute/Extension/SqlServer/VirtualMachineSqlServerExtensionContext.cs
index 3b7f37fd88bb..1fe203b9d74e 100644
--- a/src/ResourceManager/Compute/Commands.Compute/Extension/SqlServer/VirtualMachineSqlServerExtensionContext.cs
+++ b/src/ResourceManager/Compute/Commands.Compute/Extension/SqlServer/VirtualMachineSqlServerExtensionContext.cs
@@ -20,7 +20,7 @@
namespace Microsoft.Azure.Commands.Compute
{
///
- /// SQL VM Extension's context object used by Get-AzureRMVMSqlServerExtension
+ /// SQL VM Extension's context object used by Get-AzureRmVMSqlServerExtension
///
public class VirtualMachineSqlServerExtensionContext : PSVirtualMachineExtension
{
diff --git a/src/ResourceManager/Compute/Commands.Compute/Generated/cli.js b/src/ResourceManager/Compute/Commands.Compute/Generated/cli.js
index 03d54bc845bc..66ab3e920e16 100644
--- a/src/ResourceManager/Compute/Commands.Compute/Generated/cli.js
+++ b/src/ResourceManager/Compute/Commands.Compute/Generated/cli.js
@@ -16,6 +16,7 @@
'use strict';
var __ = require('underscore');
+var fs = require('fs');
var util = require('util');
var profile = require('../../../util/profile');
@@ -23,330 +24,538 @@ var utils = require('../../../util/utils');
var $ = utils.getLocaleString;
+function beautify(jsonText) {
+ var obj = JSON.parse(jsonText);
+ return JSON.stringify(obj, null, 2);
+}
+
exports.init = function (cli) {
var compute = cli.category('compute')
.description($('Commands for Azure Compute'));
-//VirtualMachineScaleSet.CreateOrUpdate
-var VirtualMachineScaleSet = compute.category('virtualMachineScaleSet').description($('Commands for Azure Compute'));VirtualMachineScaleSet.command('CreateOrUpdate')
-.description($('VirtualMachineScaleSet CreateOrUpdate'))
-.usage('[options]')
-.option('--ResourceGroupName ', $('ResourceGroupName'))
-.option('--Parameters ', $('Parameters'))
-.option('-s, --subscription ', $('the subscription identifier'))
-.execute(function (ResourceGroupName, Parameters, options, _) {
- var subscription = profile.current.getSubscription(options.subscription);
- var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
- var result = computeManagementClient.virtualMachineScaleSets.createOrUpdate(ResourceGroupName, Parameters, _);
- cli.output.json(result);
-});
-//VirtualMachineScaleSet.Deallocate
-var VirtualMachineScaleSet = compute.category('virtualMachineScaleSet').description($('Commands for Azure Compute'));VirtualMachineScaleSet.command('Deallocate')
-.description($('VirtualMachineScaleSet Deallocate'))
-.usage('[options]')
-.option('--ResourceGroupName ', $('ResourceGroupName'))
-.option('--VMScaleSetName ', $('VMScaleSetName'))
-.option('-s, --subscription ', $('the subscription identifier'))
-.execute(function (ResourceGroupName, VMScaleSetName, options, _) {
- var subscription = profile.current.getSubscription(options.subscription);
- var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
- var result = computeManagementClient.virtualMachineScaleSets.deallocate(ResourceGroupName, VMScaleSetName, _);
- cli.output.json(result);
-});
-//VirtualMachineScaleSet.DeallocateInstances
-var VirtualMachineScaleSet = compute.category('virtualMachineScaleSet').description($('Commands for Azure Compute'));VirtualMachineScaleSet.command('DeallocateInstances')
-.description($('VirtualMachineScaleSet DeallocateInstances'))
-.usage('[options]')
-.option('--ResourceGroupName ', $('ResourceGroupName'))
-.option('--VMScaleSetName ', $('VMScaleSetName'))
-.option('--VMInstanceIDs ', $('VMInstanceIDs'))
-.option('-s, --subscription ', $('the subscription identifier'))
-.execute(function (ResourceGroupName, VMScaleSetName, VMInstanceIDs, options, _) {
- var subscription = profile.current.getSubscription(options.subscription);
- var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
- var result = computeManagementClient.virtualMachineScaleSets.deallocateInstances(ResourceGroupName, VMScaleSetName, VMInstanceIDs, _);
- cli.output.json(result);
-});
-//VirtualMachineScaleSet.Delete
-var VirtualMachineScaleSet = compute.category('virtualMachineScaleSet').description($('Commands for Azure Compute'));VirtualMachineScaleSet.command('Delete')
-.description($('VirtualMachineScaleSet Delete'))
-.usage('[options]')
-.option('--ResourceGroupName ', $('ResourceGroupName'))
-.option('--VMScaleSetName ', $('VMScaleSetName'))
-.option('-s, --subscription ', $('the subscription identifier'))
-.execute(function (ResourceGroupName, VMScaleSetName, options, _) {
- var subscription = profile.current.getSubscription(options.subscription);
- var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
- var result = computeManagementClient.virtualMachineScaleSets.delete(ResourceGroupName, VMScaleSetName, _);
- cli.output.json(result);
-});
-//VirtualMachineScaleSet.DeleteInstances
-var VirtualMachineScaleSet = compute.category('virtualMachineScaleSet').description($('Commands for Azure Compute'));VirtualMachineScaleSet.command('DeleteInstances')
-.description($('VirtualMachineScaleSet DeleteInstances'))
-.usage('[options]')
-.option('--ResourceGroupName ', $('ResourceGroupName'))
-.option('--VMScaleSetName ', $('VMScaleSetName'))
-.option('--VMInstanceIDs ', $('VMInstanceIDs'))
-.option('-s, --subscription ', $('the subscription identifier'))
-.execute(function (ResourceGroupName, VMScaleSetName, VMInstanceIDs, options, _) {
- var subscription = profile.current.getSubscription(options.subscription);
- var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
- var result = computeManagementClient.virtualMachineScaleSets.deleteInstances(ResourceGroupName, VMScaleSetName, VMInstanceIDs, _);
- cli.output.json(result);
-});
-//VirtualMachineScaleSet.Get
-var VirtualMachineScaleSet = compute.category('virtualMachineScaleSet').description($('Commands for Azure Compute'));VirtualMachineScaleSet.command('Get')
-.description($('VirtualMachineScaleSet Get'))
-.usage('[options]')
-.option('--ResourceGroupName ', $('ResourceGroupName'))
-.option('--VMScaleSetName ', $('VMScaleSetName'))
-.option('-s, --subscription ', $('the subscription identifier'))
-.execute(function (ResourceGroupName, VMScaleSetName, options, _) {
- var subscription = profile.current.getSubscription(options.subscription);
- var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
- var result = computeManagementClient.virtualMachineScaleSets.get(ResourceGroupName, VMScaleSetName, _);
- cli.output.json(result);
-});
-//VirtualMachineScaleSet.List
-var VirtualMachineScaleSet = compute.category('virtualMachineScaleSet').description($('Commands for Azure Compute'));VirtualMachineScaleSet.command('List')
-.description($('VirtualMachineScaleSet List'))
-.usage('[options]')
-.option('--ResourceGroupName ', $('ResourceGroupName'))
-.option('-s, --subscription ', $('the subscription identifier'))
-.execute(function (ResourceGroupName, options, _) {
- var subscription = profile.current.getSubscription(options.subscription);
- var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
- var result = computeManagementClient.virtualMachineScaleSets.list(ResourceGroupName, _);
- cli.output.json(result);
-});
-//VirtualMachineScaleSet.ListAll
-var VirtualMachineScaleSet = compute.category('virtualMachineScaleSet').description($('Commands for Azure Compute'));VirtualMachineScaleSet.command('ListAll')
-.description($('VirtualMachineScaleSet ListAll'))
-.usage('[options]')
-.option('--Parameters ', $('Parameters'))
-.option('-s, --subscription ', $('the subscription identifier'))
-.execute(function (Parameters, options, _) {
- var subscription = profile.current.getSubscription(options.subscription);
- var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
- var result = computeManagementClient.virtualMachineScaleSets.listAll(Parameters, _);
- cli.output.json(result);
-});
-//VirtualMachineScaleSet.ListNext
-var VirtualMachineScaleSet = compute.category('virtualMachineScaleSet').description($('Commands for Azure Compute'));VirtualMachineScaleSet.command('ListNext')
-.description($('VirtualMachineScaleSet ListNext'))
-.usage('[options]')
-.option('--NextLink ', $('NextLink'))
-.option('-s, --subscription ', $('the subscription identifier'))
-.execute(function (NextLink, options, _) {
- var subscription = profile.current.getSubscription(options.subscription);
- var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
- var result = computeManagementClient.virtualMachineScaleSets.listNext(NextLink, _);
- cli.output.json(result);
-});
-//VirtualMachineScaleSet.ListSkus
-var VirtualMachineScaleSet = compute.category('virtualMachineScaleSet').description($('Commands for Azure Compute'));VirtualMachineScaleSet.command('ListSkus')
-.description($('VirtualMachineScaleSet ListSkus'))
-.usage('[options]')
-.option('--ResourceGroupName ', $('ResourceGroupName'))
-.option('--VMScaleSetName ', $('VMScaleSetName'))
-.option('-s, --subscription ', $('the subscription identifier'))
-.execute(function (ResourceGroupName, VMScaleSetName, options, _) {
- var subscription = profile.current.getSubscription(options.subscription);
- var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
- var result = computeManagementClient.virtualMachineScaleSets.listSkus(ResourceGroupName, VMScaleSetName, _);
- cli.output.json(result);
-});
-//VirtualMachineScaleSet.PowerOff
-var VirtualMachineScaleSet = compute.category('virtualMachineScaleSet').description($('Commands for Azure Compute'));VirtualMachineScaleSet.command('PowerOff')
-.description($('VirtualMachineScaleSet PowerOff'))
-.usage('[options]')
-.option('--ResourceGroupName ', $('ResourceGroupName'))
-.option('--VMScaleSetName ', $('VMScaleSetName'))
-.option('-s, --subscription ', $('the subscription identifier'))
-.execute(function (ResourceGroupName, VMScaleSetName, options, _) {
- var subscription = profile.current.getSubscription(options.subscription);
- var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
- var result = computeManagementClient.virtualMachineScaleSets.powerOff(ResourceGroupName, VMScaleSetName, _);
- cli.output.json(result);
-});
-//VirtualMachineScaleSet.PowerOffInstances
-var VirtualMachineScaleSet = compute.category('virtualMachineScaleSet').description($('Commands for Azure Compute'));VirtualMachineScaleSet.command('PowerOffInstances')
-.description($('VirtualMachineScaleSet PowerOffInstances'))
-.usage('[options]')
-.option('--ResourceGroupName ', $('ResourceGroupName'))
-.option('--VMScaleSetName ', $('VMScaleSetName'))
-.option('--VMInstanceIDs ', $('VMInstanceIDs'))
-.option('-s, --subscription ', $('the subscription identifier'))
-.execute(function (ResourceGroupName, VMScaleSetName, VMInstanceIDs, options, _) {
- var subscription = profile.current.getSubscription(options.subscription);
- var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
- var result = computeManagementClient.virtualMachineScaleSets.powerOffInstances(ResourceGroupName, VMScaleSetName, VMInstanceIDs, _);
- cli.output.json(result);
-});
-//VirtualMachineScaleSet.Restart
-var VirtualMachineScaleSet = compute.category('virtualMachineScaleSet').description($('Commands for Azure Compute'));VirtualMachineScaleSet.command('Restart')
-.description($('VirtualMachineScaleSet Restart'))
-.usage('[options]')
-.option('--ResourceGroupName ', $('ResourceGroupName'))
-.option('--VMScaleSetName ', $('VMScaleSetName'))
-.option('-s, --subscription ', $('the subscription identifier'))
-.execute(function (ResourceGroupName, VMScaleSetName, options, _) {
- var subscription = profile.current.getSubscription(options.subscription);
- var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
- var result = computeManagementClient.virtualMachineScaleSets.restart(ResourceGroupName, VMScaleSetName, _);
- cli.output.json(result);
-});
-//VirtualMachineScaleSet.RestartInstances
-var VirtualMachineScaleSet = compute.category('virtualMachineScaleSet').description($('Commands for Azure Compute'));VirtualMachineScaleSet.command('RestartInstances')
-.description($('VirtualMachineScaleSet RestartInstances'))
-.usage('[options]')
-.option('--ResourceGroupName ', $('ResourceGroupName'))
-.option('--VMScaleSetName ', $('VMScaleSetName'))
-.option('--VMInstanceIDs ', $('VMInstanceIDs'))
-.option('-s, --subscription ', $('the subscription identifier'))
-.execute(function (ResourceGroupName, VMScaleSetName, VMInstanceIDs, options, _) {
- var subscription = profile.current.getSubscription(options.subscription);
- var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
- var result = computeManagementClient.virtualMachineScaleSets.restartInstances(ResourceGroupName, VMScaleSetName, VMInstanceIDs, _);
- cli.output.json(result);
-});
-//VirtualMachineScaleSet.Start
-var VirtualMachineScaleSet = compute.category('virtualMachineScaleSet').description($('Commands for Azure Compute'));VirtualMachineScaleSet.command('Start')
-.description($('VirtualMachineScaleSet Start'))
-.usage('[options]')
-.option('--ResourceGroupName ', $('ResourceGroupName'))
-.option('--VMScaleSetName ', $('VMScaleSetName'))
-.option('-s, --subscription ', $('the subscription identifier'))
-.execute(function (ResourceGroupName, VMScaleSetName, options, _) {
- var subscription = profile.current.getSubscription(options.subscription);
- var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
- var result = computeManagementClient.virtualMachineScaleSets.start(ResourceGroupName, VMScaleSetName, _);
- cli.output.json(result);
-});
-//VirtualMachineScaleSet.StartInstances
-var VirtualMachineScaleSet = compute.category('virtualMachineScaleSet').description($('Commands for Azure Compute'));VirtualMachineScaleSet.command('StartInstances')
-.description($('VirtualMachineScaleSet StartInstances'))
-.usage('[options]')
-.option('--ResourceGroupName ', $('ResourceGroupName'))
-.option('--VMScaleSetName ', $('VMScaleSetName'))
-.option('--VMInstanceIDs ', $('VMInstanceIDs'))
-.option('-s, --subscription ', $('the subscription identifier'))
-.execute(function (ResourceGroupName, VMScaleSetName, VMInstanceIDs, options, _) {
- var subscription = profile.current.getSubscription(options.subscription);
- var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
- var result = computeManagementClient.virtualMachineScaleSets.startInstances(ResourceGroupName, VMScaleSetName, VMInstanceIDs, _);
- cli.output.json(result);
-});
-//VirtualMachineScaleSetVM.Deallocate
-var VirtualMachineScaleSetVM = compute.category('virtualMachineScaleSetVM').description($('Commands for Azure Compute'));VirtualMachineScaleSetVM.command('Deallocate')
-.description($('VirtualMachineScaleSetVM Deallocate'))
-.usage('[options]')
-.option('--ResourceGroupName ', $('ResourceGroupName'))
-.option('--VMScaleSetName ', $('VMScaleSetName'))
-.option('--InstanceId ', $('InstanceId'))
-.option('-s, --subscription ', $('the subscription identifier'))
-.execute(function (ResourceGroupName, VMScaleSetName, InstanceId, options, _) {
- var subscription = profile.current.getSubscription(options.subscription);
- var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
- var result = computeManagementClient.virtualMachineScaleSetVMs.deallocate(ResourceGroupName, VMScaleSetName, InstanceId, _);
- cli.output.json(result);
-});
-//VirtualMachineScaleSetVM.Delete
-var VirtualMachineScaleSetVM = compute.category('virtualMachineScaleSetVM').description($('Commands for Azure Compute'));VirtualMachineScaleSetVM.command('Delete')
-.description($('VirtualMachineScaleSetVM Delete'))
-.usage('[options]')
-.option('--ResourceGroupName ', $('ResourceGroupName'))
-.option('--VMScaleSetName ', $('VMScaleSetName'))
-.option('--InstanceId ', $('InstanceId'))
-.option('-s, --subscription ', $('the subscription identifier'))
-.execute(function (ResourceGroupName, VMScaleSetName, InstanceId, options, _) {
- var subscription = profile.current.getSubscription(options.subscription);
- var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
- var result = computeManagementClient.virtualMachineScaleSetVMs.delete(ResourceGroupName, VMScaleSetName, InstanceId, _);
- cli.output.json(result);
-});
-//VirtualMachineScaleSetVM.Get
-var VirtualMachineScaleSetVM = compute.category('virtualMachineScaleSetVM').description($('Commands for Azure Compute'));VirtualMachineScaleSetVM.command('Get')
-.description($('VirtualMachineScaleSetVM Get'))
-.usage('[options]')
-.option('--ResourceGroupName ', $('ResourceGroupName'))
-.option('--VMScaleSetName ', $('VMScaleSetName'))
-.option('--InstanceId ', $('InstanceId'))
-.option('-s, --subscription ', $('the subscription identifier'))
-.execute(function (ResourceGroupName, VMScaleSetName, InstanceId, options, _) {
- var subscription = profile.current.getSubscription(options.subscription);
- var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
- var result = computeManagementClient.virtualMachineScaleSetVMs.get(ResourceGroupName, VMScaleSetName, InstanceId, _);
- cli.output.json(result);
-});
-//VirtualMachineScaleSetVM.GetInstanceView
-var VirtualMachineScaleSetVM = compute.category('virtualMachineScaleSetVM').description($('Commands for Azure Compute'));VirtualMachineScaleSetVM.command('GetInstanceView')
-.description($('VirtualMachineScaleSetVM GetInstanceView'))
-.usage('[options]')
-.option('--ResourceGroupName ', $('ResourceGroupName'))
-.option('--VMScaleSetName ', $('VMScaleSetName'))
-.option('--InstanceId ', $('InstanceId'))
-.option('-s, --subscription ', $('the subscription identifier'))
-.execute(function (ResourceGroupName, VMScaleSetName, InstanceId, options, _) {
- var subscription = profile.current.getSubscription(options.subscription);
- var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
- var result = computeManagementClient.virtualMachineScaleSetVMs.getInstanceView(ResourceGroupName, VMScaleSetName, InstanceId, _);
- cli.output.json(result);
-});
-//VirtualMachineScaleSetVM.List
-var VirtualMachineScaleSetVM = compute.category('virtualMachineScaleSetVM').description($('Commands for Azure Compute'));VirtualMachineScaleSetVM.command('List')
-.description($('VirtualMachineScaleSetVM List'))
-.usage('[options]')
-.option('--Parameters ', $('Parameters'))
-.option('-s, --subscription ', $('the subscription identifier'))
-.execute(function (Parameters, options, _) {
- var subscription = profile.current.getSubscription(options.subscription);
- var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
- var result = computeManagementClient.virtualMachineScaleSetVMs.list(Parameters, _);
- cli.output.json(result);
-});
-//VirtualMachineScaleSetVM.PowerOff
-var VirtualMachineScaleSetVM = compute.category('virtualMachineScaleSetVM').description($('Commands for Azure Compute'));VirtualMachineScaleSetVM.command('PowerOff')
-.description($('VirtualMachineScaleSetVM PowerOff'))
-.usage('[options]')
-.option('--ResourceGroupName ', $('ResourceGroupName'))
-.option('--VMScaleSetName ', $('VMScaleSetName'))
-.option('--InstanceId ', $('InstanceId'))
-.option('-s, --subscription ', $('the subscription identifier'))
-.execute(function (ResourceGroupName, VMScaleSetName, InstanceId, options, _) {
- var subscription = profile.current.getSubscription(options.subscription);
- var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
- var result = computeManagementClient.virtualMachineScaleSetVMs.powerOff(ResourceGroupName, VMScaleSetName, InstanceId, _);
- cli.output.json(result);
-});
-//VirtualMachineScaleSetVM.Restart
-var VirtualMachineScaleSetVM = compute.category('virtualMachineScaleSetVM').description($('Commands for Azure Compute'));VirtualMachineScaleSetVM.command('Restart')
-.description($('VirtualMachineScaleSetVM Restart'))
-.usage('[options]')
-.option('--ResourceGroupName ', $('ResourceGroupName'))
-.option('--VMScaleSetName ', $('VMScaleSetName'))
-.option('--InstanceId ', $('InstanceId'))
-.option('-s, --subscription ', $('the subscription identifier'))
-.execute(function (ResourceGroupName, VMScaleSetName, InstanceId, options, _) {
- var subscription = profile.current.getSubscription(options.subscription);
- var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
- var result = computeManagementClient.virtualMachineScaleSetVMs.restart(ResourceGroupName, VMScaleSetName, InstanceId, _);
- cli.output.json(result);
-});
-//VirtualMachineScaleSetVM.Start
-var VirtualMachineScaleSetVM = compute.category('virtualMachineScaleSetVM').description($('Commands for Azure Compute'));VirtualMachineScaleSetVM.command('Start')
-.description($('VirtualMachineScaleSetVM Start'))
-.usage('[options]')
-.option('--ResourceGroupName ', $('ResourceGroupName'))
-.option('--VMScaleSetName ', $('VMScaleSetName'))
-.option('--InstanceId ', $('InstanceId'))
-.option('-s, --subscription ', $('the subscription identifier'))
-.execute(function (ResourceGroupName, VMScaleSetName, InstanceId, options, _) {
- var subscription = profile.current.getSubscription(options.subscription);
- var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
- var result = computeManagementClient.virtualMachineScaleSetVMs.start(ResourceGroupName, VMScaleSetName, InstanceId, _);
- cli.output.json(result);
-});
+//virtualMachineScaleSet -> CreateOrUpdate
+/*
+{"provisioningState":"","sku":{"capacity":null,"name":"","tier":""},"upgradePolicy":{"mode":""},"virtualMachineProfile":{"extensions":[{"autoUpgradeMinorVersion":false,"extensionType":"","instanceView":{"extensionType":"","name":"","subStatuses":[{"code":"","displayStatus":"","level":"","message":"","time":null}],"typeHandlerVersion":"","statuses":[{"code":"","displayStatus":"","level":"","message":"","time":null}]},"protectedSettings":"","provisioningState":"","publisher":"","settings":"","typeHandlerVersion":"","id":"","name":"","type":"","location":"","tags":{}}],"networkProfile":{"networkInterfaceConfigurations":[{"iPConfigurations":[{"loadBalancerBackendAddressPools":[{"referenceUri":""}],"name":"","subnet":{"referenceUri":""}}],"name":"","primary":null}]},"oSProfile":{"computerNamePrefix":"","adminPassword":"","adminUsername":"","customData":"","linuxConfiguration":{"disablePasswordAuthentication":null,"sshConfiguration":{"publicKeys":[{"keyData":"","path":""}]}},"secrets":[{"sourceVault":{"referenceUri":""},"vaultCertificates":[{"certificateStore":"","certificateUrl":""}]}],"windowsConfiguration":{"additionalUnattendContents":[{"componentName":"","content":"","passName":"","settingName":""}],"enableAutomaticUpdates":null,"provisionVMAgent":null,"timeZone":"","winRMConfiguration":{"listeners":[{"certificateUrl":"","protocol":""}]}}},"storageProfile":{"imageReference":{"offer":"","publisher":"","sku":"","version":""},"oSDisk":{"caching":"","createOption":"","name":"","operatingSystemType":"","sourceImage":{"uri":""},"virtualHardDiskContainers":[""]}}},"id":"","name":"","type":"","location":"","tags":{}}
+*/
+ var vmss = compute.category('vmss').description($('Commands for Azure Compute VirtualMachineScaleSet'));
+ vmss.command('createOrUpdate')
+ .description($('vmss createOrUpdate'))
+ .usage('[options]')
+ .option('--ResourceGroupName ', $('ResourceGroupName'))
+ .option('--Parameters ', $('Parameters'))
+ .option('--ParameterFile ', $('the input parameter file'))
+ .option('-s, --subscription ', $('the subscription identifier'))
+ .execute(function (ResourceGroupName, Parameters, options, _) {
+ console.log('ResourceGroupName = ' + options.ResourceGroupName);
+ console.log('Parameters = ' + options.Parameters);
+ if (options.ParameterFile) {
+ console.log("Reading file content from: \"" + options.ParameterFile + "\"");
+ var fileContent = fs.readFileSync(options.ParameterFile, 'utf8');
+ var ParametersObj = JSON.parse(fileContent);
+ }
+ else {
+ var ParametersObj = JSON.parse(options.Parameters);
+ }
+ console.log('ParametersObj = ' + JSON.stringify(ParametersObj));
+ var subscription = profile.current.getSubscription(options.subscription);
+ var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
+ console.log(computeManagementClient.virtualMachineScaleSets.createOrUpdate);
+ var result = computeManagementClient.virtualMachineScaleSets.createOrUpdate(options.ResourceGroupName, ParametersObj, _);
+ cli.output.json(result);
+ });
+ var parameters = vmss.category('parameters').description($('Generate Parameters for Azure Compute VirtualMachineScaleSet'));
+ parameters.command('createOrUpdate')
+ .description($('Generate vmss parameter string or files.'))
+ .usage('[options]')
+ .option('--generate', $('To generate parameter string/file for method: createOrUpdate.'))
+ .option('--output-file ', $('The output file path.'))
+ .execute(function (generate, outputFile, options, _) {
+ console.log("{\"provisioningState\":\"\",\"sku\":{\"capacity\":null,\"name\":\"\",\"tier\":\"\"},\"upgradePolicy\":{\"mode\":\"\"},\"virtualMachineProfile\":{\"extensions\":[{\"autoUpgradeMinorVersion\":false,\"extensionType\":\"\",\"instanceView\":{\"extensionType\":\"\",\"name\":\"\",\"subStatuses\":[{\"code\":\"\",\"displayStatus\":\"\",\"level\":\"\",\"message\":\"\",\"time\":null}],\"typeHandlerVersion\":\"\",\"statuses\":[{\"code\":\"\",\"displayStatus\":\"\",\"level\":\"\",\"message\":\"\",\"time\":null}]},\"protectedSettings\":\"\",\"provisioningState\":\"\",\"publisher\":\"\",\"settings\":\"\",\"typeHandlerVersion\":\"\",\"id\":\"\",\"name\":\"\",\"type\":\"\",\"location\":\"\",\"tags\":{}}],\"networkProfile\":{\"networkInterfaceConfigurations\":[{\"iPConfigurations\":[{\"loadBalancerBackendAddressPools\":[{\"referenceUri\":\"\"}],\"name\":\"\",\"subnet\":{\"referenceUri\":\"\"}}],\"name\":\"\",\"primary\":null}]},\"oSProfile\":{\"computerNamePrefix\":\"\",\"adminPassword\":\"\",\"adminUsername\":\"\",\"customData\":\"\",\"linuxConfiguration\":{\"disablePasswordAuthentication\":null,\"sshConfiguration\":{\"publicKeys\":[{\"keyData\":\"\",\"path\":\"\"}]}},\"secrets\":[{\"sourceVault\":{\"referenceUri\":\"\"},\"vaultCertificates\":[{\"certificateStore\":\"\",\"certificateUrl\":\"\"}]}],\"windowsConfiguration\":{\"additionalUnattendContents\":[{\"componentName\":\"\",\"content\":\"\",\"passName\":\"\",\"settingName\":\"\"}],\"enableAutomaticUpdates\":null,\"provisionVMAgent\":null,\"timeZone\":\"\",\"winRMConfiguration\":{\"listeners\":[{\"certificateUrl\":\"\",\"protocol\":\"\"}]}}},\"storageProfile\":{\"imageReference\":{\"offer\":\"\",\"publisher\":\"\",\"sku\":\"\",\"version\":\"\"},\"oSDisk\":{\"caching\":\"\",\"createOption\":\"\",\"name\":\"\",\"operatingSystemType\":\"\",\"sourceImage\":{\"uri\":\"\"},\"virtualHardDiskContainers\":[\"\"]}}},\"id\":\"\",\"name\":\"\",\"type\":\"\",\"location\":\"\",\"tags\":{}}");
+ var filePath = "vmss_createOrUpdate.json";
+ if (options.outputFile) { filePath = options.outputFile; };
+ fs.writeFileSync(filePath, beautify("{\r\n\"provisioningState\":\"\",\r\n\"sku\":{\r\n\"capacity\":null,\r\n\"name\":\"\",\r\n\"tier\":\"\"\r\n},\r\n\"upgradePolicy\":{\r\n\"mode\":\"\"\r\n},\r\n\"virtualMachineProfile\":{\r\n\"extensions\":[\r\n{\r\n\"autoUpgradeMinorVersion\":false,\r\n\"extensionType\":\"\",\r\n\"instanceView\":{\r\n\"extensionType\":\"\",\r\n\"name\":\"\",\r\n\"subStatuses\":[\r\n{\r\n\"code\":\"\",\r\n\"displayStatus\":\"\",\r\n\"level\":\"\",\r\n\"message\":\"\",\r\n\"time\":null\r\n}\r\n],\r\n\"typeHandlerVersion\":\"\",\r\n\"statuses\":[\r\n{\r\n\"code\":\"\",\r\n\"displayStatus\":\"\",\r\n\"level\":\"\",\r\n\"message\":\"\",\r\n\"time\":null\r\n}\r\n]\r\n},\r\n\"protectedSettings\":\"\",\r\n\"provisioningState\":\"\",\r\n\"publisher\":\"\",\r\n\"settings\":\"\",\r\n\"typeHandlerVersion\":\"\",\r\n\"id\":\"\",\r\n\"name\":\"\",\r\n\"type\":\"\",\r\n\"location\":\"\",\r\n\"tags\":{\r\n\r\n}\r\n}\r\n],\r\n\"networkProfile\":{\r\n\"networkInterfaceConfigurations\":[\r\n{\r\n\"iPConfigurations\":[\r\n{\r\n\"loadBalancerBackendAddressPools\":[\r\n{\r\n\"referenceUri\":\"\"\r\n}\r\n],\r\n\"name\":\"\",\r\n\"subnet\":{\r\n\"referenceUri\":\"\"\r\n}\r\n}\r\n],\r\n\"name\":\"\",\r\n\"primary\":null\r\n}\r\n]\r\n},\r\n\"oSProfile\":{\r\n\"computerNamePrefix\":\"\",\r\n\"adminPassword\":\"\",\r\n\"adminUsername\":\"\",\r\n\"customData\":\"\",\r\n\"linuxConfiguration\":{\r\n\"disablePasswordAuthentication\":null,\r\n\"sshConfiguration\":{\r\n\"publicKeys\":[\r\n{\r\n\"keyData\":\"\",\r\n\"path\":\"\"\r\n}\r\n]\r\n}\r\n},\r\n\"secrets\":[\r\n{\r\n\"sourceVault\":{\r\n\"referenceUri\":\"\"\r\n},\r\n\"vaultCertificates\":[\r\n{\r\n\"certificateStore\":\"\",\r\n\"certificateUrl\":\"\"\r\n}\r\n]\r\n}\r\n],\r\n\"windowsConfiguration\":{\r\n\"additionalUnattendContents\":[\r\n{\r\n\"componentName\":\"\",\r\n\"content\":\"\",\r\n\"passName\":\"\",\r\n\"settingName\":\"\"\r\n}\r\n],\r\n\"enableAutomaticUpdates\":null,\r\n\"provisionVMAgent\":null,\r\n\"timeZone\":\"\",\r\n\"winRMConfiguration\":{\r\n\"listeners\":[\r\n{\r\n\"certificateUrl\":\"\",\r\n\"protocol\":\"\"\r\n}\r\n]\r\n}\r\n}\r\n},\r\n\"storageProfile\":{\r\n\"imageReference\":{\r\n\"offer\":\"\",\r\n\"publisher\":\"\",\r\n\"sku\":\"\",\r\n\"version\":\"\"\r\n},\r\n\"oSDisk\":{\r\n\"caching\":\"\",\r\n\"createOption\":\"\",\r\n\"name\":\"\",\r\n\"operatingSystemType\":\"\",\r\n\"sourceImage\":{\r\n\"uri\":\"\"\r\n},\r\n\"virtualHardDiskContainers\":[\r\n\"\"\r\n]\r\n}\r\n}\r\n},\r\n\"id\":\"\",\r\n\"name\":\"\",\r\n\"type\":\"\",\r\n\"location\":\"\",\r\n\"tags\":{\r\n\r\n}\r\n}"));
+ console.log("Parameter file output to: " + filePath);
+ });
+//virtualMachineScaleSet -> Deallocate
+ var vmss = compute.category('vmss').description($('Commands for Azure Compute VirtualMachineScaleSet'));
+ vmss.command('deallocate')
+ .description($('vmss deallocate'))
+ .usage('[options]')
+ .option('--ResourceGroupName ', $('ResourceGroupName'))
+ .option('--VMScaleSetName ', $('VMScaleSetName'))
+ .option('--ParameterFile ', $('the input parameter file'))
+ .option('-s, --subscription ', $('the subscription identifier'))
+ .execute(function (ResourceGroupName, VMScaleSetName, options, _) {
+ console.log('ResourceGroupName = ' + options.ResourceGroupName);
+ console.log('VMScaleSetName = ' + options.VMScaleSetName);
+ var subscription = profile.current.getSubscription(options.subscription);
+ var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
+ console.log(computeManagementClient.virtualMachineScaleSets.deallocate);
+ var result = computeManagementClient.virtualMachineScaleSets.deallocate(options.ResourceGroupName, options.VMScaleSetName, _);
+ cli.output.json(result);
+ });
+//virtualMachineScaleSet -> DeallocateInstances
+ var vmss = compute.category('vmss').description($('Commands for Azure Compute VirtualMachineScaleSet'));
+ vmss.command('deallocateInstances')
+ .description($('vmss deallocateInstances'))
+ .usage('[options]')
+ .option('--ResourceGroupName ', $('ResourceGroupName'))
+ .option('--VMScaleSetName ', $('VMScaleSetName'))
+ .option('--VMInstanceIDs ', $('VMInstanceIDs'))
+ .option('--ParameterFile ', $('the input parameter file'))
+ .option('-s, --subscription ', $('the subscription identifier'))
+ .execute(function (ResourceGroupName, VMScaleSetName, VMInstanceIDs, options, _) {
+ console.log('ResourceGroupName = ' + options.ResourceGroupName);
+ console.log('VMScaleSetName = ' + options.VMScaleSetName);
+ console.log('VMInstanceIDs = ' + options.VMInstanceIDs);
+ var subscription = profile.current.getSubscription(options.subscription);
+ var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
+ console.log(computeManagementClient.virtualMachineScaleSets.deallocateInstances);
+ var result = computeManagementClient.virtualMachineScaleSets.deallocateInstances(options.ResourceGroupName, options.VMScaleSetName, options.VMInstanceIDs, _);
+ cli.output.json(result);
+ });
+//virtualMachineScaleSet -> Delete
+ var vmss = compute.category('vmss').description($('Commands for Azure Compute VirtualMachineScaleSet'));
+ vmss.command('delete')
+ .description($('vmss delete'))
+ .usage('[options]')
+ .option('--ResourceGroupName ', $('ResourceGroupName'))
+ .option('--VMScaleSetName ', $('VMScaleSetName'))
+ .option('--ParameterFile ', $('the input parameter file'))
+ .option('-s, --subscription ', $('the subscription identifier'))
+ .execute(function (ResourceGroupName, VMScaleSetName, options, _) {
+ console.log('ResourceGroupName = ' + options.ResourceGroupName);
+ console.log('VMScaleSetName = ' + options.VMScaleSetName);
+ var subscription = profile.current.getSubscription(options.subscription);
+ var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
+ console.log(computeManagementClient.virtualMachineScaleSets.delete);
+ var result = computeManagementClient.virtualMachineScaleSets.delete(options.ResourceGroupName, options.VMScaleSetName, _);
+ cli.output.json(result);
+ });
+//virtualMachineScaleSet -> DeleteInstances
+ var vmss = compute.category('vmss').description($('Commands for Azure Compute VirtualMachineScaleSet'));
+ vmss.command('deleteInstances')
+ .description($('vmss deleteInstances'))
+ .usage('[options]')
+ .option('--ResourceGroupName ', $('ResourceGroupName'))
+ .option('--VMScaleSetName ', $('VMScaleSetName'))
+ .option('--VMInstanceIDs ', $('VMInstanceIDs'))
+ .option('--ParameterFile ', $('the input parameter file'))
+ .option('-s, --subscription ', $('the subscription identifier'))
+ .execute(function (ResourceGroupName, VMScaleSetName, VMInstanceIDs, options, _) {
+ console.log('ResourceGroupName = ' + options.ResourceGroupName);
+ console.log('VMScaleSetName = ' + options.VMScaleSetName);
+ console.log('VMInstanceIDs = ' + options.VMInstanceIDs);
+ var subscription = profile.current.getSubscription(options.subscription);
+ var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
+ console.log(computeManagementClient.virtualMachineScaleSets.deleteInstances);
+ var result = computeManagementClient.virtualMachineScaleSets.deleteInstances(options.ResourceGroupName, options.VMScaleSetName, options.VMInstanceIDs, _);
+ cli.output.json(result);
+ });
+//virtualMachineScaleSet -> Get
+ var vmss = compute.category('vmss').description($('Commands for Azure Compute VirtualMachineScaleSet'));
+ vmss.command('get')
+ .description($('vmss get'))
+ .usage('[options]')
+ .option('--ResourceGroupName ', $('ResourceGroupName'))
+ .option('--VMScaleSetName ', $('VMScaleSetName'))
+ .option('--ParameterFile ', $('the input parameter file'))
+ .option('-s, --subscription ', $('the subscription identifier'))
+ .execute(function (ResourceGroupName, VMScaleSetName, options, _) {
+ console.log('ResourceGroupName = ' + options.ResourceGroupName);
+ console.log('VMScaleSetName = ' + options.VMScaleSetName);
+ var subscription = profile.current.getSubscription(options.subscription);
+ var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
+ console.log(computeManagementClient.virtualMachineScaleSets.get);
+ var result = computeManagementClient.virtualMachineScaleSets.get(options.ResourceGroupName, options.VMScaleSetName, _);
+ cli.output.json(result);
+ });
+//virtualMachineScaleSet -> List
+ var vmss = compute.category('vmss').description($('Commands for Azure Compute VirtualMachineScaleSet'));
+ vmss.command('list')
+ .description($('vmss list'))
+ .usage('[options]')
+ .option('--ResourceGroupName ', $('ResourceGroupName'))
+ .option('--ParameterFile ', $('the input parameter file'))
+ .option('-s, --subscription ', $('the subscription identifier'))
+ .execute(function (ResourceGroupName, options, _) {
+ console.log('ResourceGroupName = ' + options.ResourceGroupName);
+ var subscription = profile.current.getSubscription(options.subscription);
+ var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
+ console.log(computeManagementClient.virtualMachineScaleSets.list);
+ var result = computeManagementClient.virtualMachineScaleSets.list(options.ResourceGroupName, _);
+ cli.output.json(result);
+ });
+//virtualMachineScaleSet -> ListAll
+/*
+{}
+*/
+ var vmss = compute.category('vmss').description($('Commands for Azure Compute VirtualMachineScaleSet'));
+ vmss.command('listAll')
+ .description($('vmss listAll'))
+ .usage('[options]')
+ .option('--Parameters ', $('Parameters'))
+ .option('--ParameterFile ', $('the input parameter file'))
+ .option('-s, --subscription ', $('the subscription identifier'))
+ .execute(function (Parameters, options, _) {
+ console.log('Parameters = ' + options.Parameters);
+ if (options.ParameterFile) {
+ console.log("Reading file content from: \"" + options.ParameterFile + "\"");
+ var fileContent = fs.readFileSync(options.ParameterFile, 'utf8');
+ var ParametersObj = JSON.parse(fileContent);
+ }
+ else {
+ var ParametersObj = JSON.parse(options.Parameters);
+ }
+ console.log('ParametersObj = ' + JSON.stringify(ParametersObj));
+ var subscription = profile.current.getSubscription(options.subscription);
+ var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
+ console.log(computeManagementClient.virtualMachineScaleSets.listAll);
+ var result = computeManagementClient.virtualMachineScaleSets.listAll(ParametersObj, _);
+ cli.output.json(result);
+ });
+ var parameters = vmss.category('parameters').description($('Generate Parameters for Azure Compute VirtualMachineScaleSet'));
+ parameters.command('listAll')
+ .description($('Generate vmss parameter string or files.'))
+ .usage('[options]')
+ .option('--generate', $('To generate parameter string/file for method: listAll.'))
+ .option('--output-file ', $('The output file path.'))
+ .execute(function (generate, outputFile, options, _) {
+ console.log("{}");
+ var filePath = "vmss_listAll.json";
+ if (options.outputFile) { filePath = options.outputFile; };
+ fs.writeFileSync(filePath, beautify("{\r\n\r\n}"));
+ console.log("Parameter file output to: " + filePath);
+ });
+//virtualMachineScaleSet -> ListNext
+ var vmss = compute.category('vmss').description($('Commands for Azure Compute VirtualMachineScaleSet'));
+ vmss.command('listNext')
+ .description($('vmss listNext'))
+ .usage('[options]')
+ .option('--NextLink ', $('NextLink'))
+ .option('--ParameterFile ', $('the input parameter file'))
+ .option('-s, --subscription ', $('the subscription identifier'))
+ .execute(function (NextLink, options, _) {
+ console.log('NextLink = ' + options.NextLink);
+ var subscription = profile.current.getSubscription(options.subscription);
+ var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
+ console.log(computeManagementClient.virtualMachineScaleSets.listNext);
+ var result = computeManagementClient.virtualMachineScaleSets.listNext(options.NextLink, _);
+ cli.output.json(result);
+ });
+//virtualMachineScaleSet -> ListSkus
+ var vmss = compute.category('vmss').description($('Commands for Azure Compute VirtualMachineScaleSet'));
+ vmss.command('listSkus')
+ .description($('vmss listSkus'))
+ .usage('[options]')
+ .option('--ResourceGroupName ', $('ResourceGroupName'))
+ .option('--VMScaleSetName ', $('VMScaleSetName'))
+ .option('--ParameterFile ', $('the input parameter file'))
+ .option('-s, --subscription ', $('the subscription identifier'))
+ .execute(function (ResourceGroupName, VMScaleSetName, options, _) {
+ console.log('ResourceGroupName = ' + options.ResourceGroupName);
+ console.log('VMScaleSetName = ' + options.VMScaleSetName);
+ var subscription = profile.current.getSubscription(options.subscription);
+ var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
+ console.log(computeManagementClient.virtualMachineScaleSets.listSkus);
+ var result = computeManagementClient.virtualMachineScaleSets.listSkus(options.ResourceGroupName, options.VMScaleSetName, _);
+ cli.output.json(result);
+ });
+//virtualMachineScaleSet -> PowerOff
+ var vmss = compute.category('vmss').description($('Commands for Azure Compute VirtualMachineScaleSet'));
+ vmss.command('powerOff')
+ .description($('vmss powerOff'))
+ .usage('[options]')
+ .option('--ResourceGroupName ', $('ResourceGroupName'))
+ .option('--VMScaleSetName ', $('VMScaleSetName'))
+ .option('--ParameterFile ', $('the input parameter file'))
+ .option('-s, --subscription ', $('the subscription identifier'))
+ .execute(function (ResourceGroupName, VMScaleSetName, options, _) {
+ console.log('ResourceGroupName = ' + options.ResourceGroupName);
+ console.log('VMScaleSetName = ' + options.VMScaleSetName);
+ var subscription = profile.current.getSubscription(options.subscription);
+ var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
+ console.log(computeManagementClient.virtualMachineScaleSets.powerOff);
+ var result = computeManagementClient.virtualMachineScaleSets.powerOff(options.ResourceGroupName, options.VMScaleSetName, _);
+ cli.output.json(result);
+ });
+//virtualMachineScaleSet -> PowerOffInstances
+ var vmss = compute.category('vmss').description($('Commands for Azure Compute VirtualMachineScaleSet'));
+ vmss.command('powerOffInstances')
+ .description($('vmss powerOffInstances'))
+ .usage('[options]')
+ .option('--ResourceGroupName ', $('ResourceGroupName'))
+ .option('--VMScaleSetName ', $('VMScaleSetName'))
+ .option('--VMInstanceIDs ', $('VMInstanceIDs'))
+ .option('--ParameterFile ', $('the input parameter file'))
+ .option('-s, --subscription ', $('the subscription identifier'))
+ .execute(function (ResourceGroupName, VMScaleSetName, VMInstanceIDs, options, _) {
+ console.log('ResourceGroupName = ' + options.ResourceGroupName);
+ console.log('VMScaleSetName = ' + options.VMScaleSetName);
+ console.log('VMInstanceIDs = ' + options.VMInstanceIDs);
+ var subscription = profile.current.getSubscription(options.subscription);
+ var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
+ console.log(computeManagementClient.virtualMachineScaleSets.powerOffInstances);
+ var result = computeManagementClient.virtualMachineScaleSets.powerOffInstances(options.ResourceGroupName, options.VMScaleSetName, options.VMInstanceIDs, _);
+ cli.output.json(result);
+ });
+//virtualMachineScaleSet -> Restart
+ var vmss = compute.category('vmss').description($('Commands for Azure Compute VirtualMachineScaleSet'));
+ vmss.command('restart')
+ .description($('vmss restart'))
+ .usage('[options]')
+ .option('--ResourceGroupName ', $('ResourceGroupName'))
+ .option('--VMScaleSetName ', $('VMScaleSetName'))
+ .option('--ParameterFile ', $('the input parameter file'))
+ .option('-s, --subscription ', $('the subscription identifier'))
+ .execute(function (ResourceGroupName, VMScaleSetName, options, _) {
+ console.log('ResourceGroupName = ' + options.ResourceGroupName);
+ console.log('VMScaleSetName = ' + options.VMScaleSetName);
+ var subscription = profile.current.getSubscription(options.subscription);
+ var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
+ console.log(computeManagementClient.virtualMachineScaleSets.restart);
+ var result = computeManagementClient.virtualMachineScaleSets.restart(options.ResourceGroupName, options.VMScaleSetName, _);
+ cli.output.json(result);
+ });
+//virtualMachineScaleSet -> RestartInstances
+ var vmss = compute.category('vmss').description($('Commands for Azure Compute VirtualMachineScaleSet'));
+ vmss.command('restartInstances')
+ .description($('vmss restartInstances'))
+ .usage('[options]')
+ .option('--ResourceGroupName ', $('ResourceGroupName'))
+ .option('--VMScaleSetName ', $('VMScaleSetName'))
+ .option('--VMInstanceIDs ', $('VMInstanceIDs'))
+ .option('--ParameterFile ', $('the input parameter file'))
+ .option('-s, --subscription ', $('the subscription identifier'))
+ .execute(function (ResourceGroupName, VMScaleSetName, VMInstanceIDs, options, _) {
+ console.log('ResourceGroupName = ' + options.ResourceGroupName);
+ console.log('VMScaleSetName = ' + options.VMScaleSetName);
+ console.log('VMInstanceIDs = ' + options.VMInstanceIDs);
+ var subscription = profile.current.getSubscription(options.subscription);
+ var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
+ console.log(computeManagementClient.virtualMachineScaleSets.restartInstances);
+ var result = computeManagementClient.virtualMachineScaleSets.restartInstances(options.ResourceGroupName, options.VMScaleSetName, options.VMInstanceIDs, _);
+ cli.output.json(result);
+ });
+//virtualMachineScaleSet -> Start
+ var vmss = compute.category('vmss').description($('Commands for Azure Compute VirtualMachineScaleSet'));
+ vmss.command('start')
+ .description($('vmss start'))
+ .usage('[options]')
+ .option('--ResourceGroupName ', $('ResourceGroupName'))
+ .option('--VMScaleSetName ', $('VMScaleSetName'))
+ .option('--ParameterFile ', $('the input parameter file'))
+ .option('-s, --subscription ', $('the subscription identifier'))
+ .execute(function (ResourceGroupName, VMScaleSetName, options, _) {
+ console.log('ResourceGroupName = ' + options.ResourceGroupName);
+ console.log('VMScaleSetName = ' + options.VMScaleSetName);
+ var subscription = profile.current.getSubscription(options.subscription);
+ var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
+ console.log(computeManagementClient.virtualMachineScaleSets.start);
+ var result = computeManagementClient.virtualMachineScaleSets.start(options.ResourceGroupName, options.VMScaleSetName, _);
+ cli.output.json(result);
+ });
+//virtualMachineScaleSet -> StartInstances
+ var vmss = compute.category('vmss').description($('Commands for Azure Compute VirtualMachineScaleSet'));
+ vmss.command('startInstances')
+ .description($('vmss startInstances'))
+ .usage('[options]')
+ .option('--ResourceGroupName ', $('ResourceGroupName'))
+ .option('--VMScaleSetName ', $('VMScaleSetName'))
+ .option('--VMInstanceIDs ', $('VMInstanceIDs'))
+ .option('--ParameterFile ', $('the input parameter file'))
+ .option('-s, --subscription ', $('the subscription identifier'))
+ .execute(function (ResourceGroupName, VMScaleSetName, VMInstanceIDs, options, _) {
+ console.log('ResourceGroupName = ' + options.ResourceGroupName);
+ console.log('VMScaleSetName = ' + options.VMScaleSetName);
+ console.log('VMInstanceIDs = ' + options.VMInstanceIDs);
+ var subscription = profile.current.getSubscription(options.subscription);
+ var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
+ console.log(computeManagementClient.virtualMachineScaleSets.startInstances);
+ var result = computeManagementClient.virtualMachineScaleSets.startInstances(options.ResourceGroupName, options.VMScaleSetName, options.VMInstanceIDs, _);
+ cli.output.json(result);
+ });
+//virtualMachineScaleSetVM -> Deallocate
+ var vmssvm = compute.category('vmssvm').description($('Commands for Azure Compute VirtualMachineScaleSetVM'));
+ vmssvm.command('deallocate')
+ .description($('vmssvm deallocate'))
+ .usage('[options]')
+ .option('--ResourceGroupName ', $('ResourceGroupName'))
+ .option('--VMScaleSetName ', $('VMScaleSetName'))
+ .option('--InstanceId ', $('InstanceId'))
+ .option('--ParameterFile ', $('the input parameter file'))
+ .option('-s, --subscription ', $('the subscription identifier'))
+ .execute(function (ResourceGroupName, VMScaleSetName, InstanceId, options, _) {
+ console.log('ResourceGroupName = ' + options.ResourceGroupName);
+ console.log('VMScaleSetName = ' + options.VMScaleSetName);
+ console.log('InstanceId = ' + options.InstanceId);
+ var subscription = profile.current.getSubscription(options.subscription);
+ var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
+ console.log(computeManagementClient.virtualMachineScaleSetVMs.deallocate);
+ var result = computeManagementClient.virtualMachineScaleSetVMs.deallocate(options.ResourceGroupName, options.VMScaleSetName, options.InstanceId, _);
+ cli.output.json(result);
+ });
+//virtualMachineScaleSetVM -> Delete
+ var vmssvm = compute.category('vmssvm').description($('Commands for Azure Compute VirtualMachineScaleSetVM'));
+ vmssvm.command('delete')
+ .description($('vmssvm delete'))
+ .usage('[options]')
+ .option('--ResourceGroupName ', $('ResourceGroupName'))
+ .option('--VMScaleSetName ', $('VMScaleSetName'))
+ .option('--InstanceId ', $('InstanceId'))
+ .option('--ParameterFile ', $('the input parameter file'))
+ .option('-s, --subscription ', $('the subscription identifier'))
+ .execute(function (ResourceGroupName, VMScaleSetName, InstanceId, options, _) {
+ console.log('ResourceGroupName = ' + options.ResourceGroupName);
+ console.log('VMScaleSetName = ' + options.VMScaleSetName);
+ console.log('InstanceId = ' + options.InstanceId);
+ var subscription = profile.current.getSubscription(options.subscription);
+ var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
+ console.log(computeManagementClient.virtualMachineScaleSetVMs.delete);
+ var result = computeManagementClient.virtualMachineScaleSetVMs.delete(options.ResourceGroupName, options.VMScaleSetName, options.InstanceId, _);
+ cli.output.json(result);
+ });
+//virtualMachineScaleSetVM -> Get
+ var vmssvm = compute.category('vmssvm').description($('Commands for Azure Compute VirtualMachineScaleSetVM'));
+ vmssvm.command('get')
+ .description($('vmssvm get'))
+ .usage('[options]')
+ .option('--ResourceGroupName ', $('ResourceGroupName'))
+ .option('--VMScaleSetName ', $('VMScaleSetName'))
+ .option('--InstanceId ', $('InstanceId'))
+ .option('--ParameterFile ', $('the input parameter file'))
+ .option('-s, --subscription ', $('the subscription identifier'))
+ .execute(function (ResourceGroupName, VMScaleSetName, InstanceId, options, _) {
+ console.log('ResourceGroupName = ' + options.ResourceGroupName);
+ console.log('VMScaleSetName = ' + options.VMScaleSetName);
+ console.log('InstanceId = ' + options.InstanceId);
+ var subscription = profile.current.getSubscription(options.subscription);
+ var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
+ console.log(computeManagementClient.virtualMachineScaleSetVMs.get);
+ var result = computeManagementClient.virtualMachineScaleSetVMs.get(options.ResourceGroupName, options.VMScaleSetName, options.InstanceId, _);
+ cli.output.json(result);
+ });
+//virtualMachineScaleSetVM -> GetInstanceView
+ var vmssvm = compute.category('vmssvm').description($('Commands for Azure Compute VirtualMachineScaleSetVM'));
+ vmssvm.command('getInstanceView')
+ .description($('vmssvm getInstanceView'))
+ .usage('[options]')
+ .option('--ResourceGroupName ', $('ResourceGroupName'))
+ .option('--VMScaleSetName ', $('VMScaleSetName'))
+ .option('--InstanceId ', $('InstanceId'))
+ .option('--ParameterFile ', $('the input parameter file'))
+ .option('-s, --subscription ', $('the subscription identifier'))
+ .execute(function (ResourceGroupName, VMScaleSetName, InstanceId, options, _) {
+ console.log('ResourceGroupName = ' + options.ResourceGroupName);
+ console.log('VMScaleSetName = ' + options.VMScaleSetName);
+ console.log('InstanceId = ' + options.InstanceId);
+ var subscription = profile.current.getSubscription(options.subscription);
+ var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
+ console.log(computeManagementClient.virtualMachineScaleSetVMs.getInstanceView);
+ var result = computeManagementClient.virtualMachineScaleSetVMs.getInstanceView(options.ResourceGroupName, options.VMScaleSetName, options.InstanceId, _);
+ cli.output.json(result);
+ });
+//virtualMachineScaleSetVM -> List
+/*
+{"expandExpression":"","filterExpression":"","resourceGroupName":"","selectExpression":"","virtualMachineScaleSetName":""}
+*/
+ var vmssvm = compute.category('vmssvm').description($('Commands for Azure Compute VirtualMachineScaleSetVM'));
+ vmssvm.command('list')
+ .description($('vmssvm list'))
+ .usage('[options]')
+ .option('--Parameters ', $('Parameters'))
+ .option('--ParameterFile ', $('the input parameter file'))
+ .option('-s, --subscription ', $('the subscription identifier'))
+ .execute(function (Parameters, options, _) {
+ console.log('Parameters = ' + options.Parameters);
+ if (options.ParameterFile) {
+ console.log("Reading file content from: \"" + options.ParameterFile + "\"");
+ var fileContent = fs.readFileSync(options.ParameterFile, 'utf8');
+ var ParametersObj = JSON.parse(fileContent);
+ }
+ else {
+ var ParametersObj = JSON.parse(options.Parameters);
+ }
+ console.log('ParametersObj = ' + JSON.stringify(ParametersObj));
+ var subscription = profile.current.getSubscription(options.subscription);
+ var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
+ console.log(computeManagementClient.virtualMachineScaleSetVMs.list);
+ var result = computeManagementClient.virtualMachineScaleSetVMs.list(ParametersObj, _);
+ cli.output.json(result);
+ });
+ var parameters = vmssvm.category('parameters').description($('Generate Parameters for Azure Compute VirtualMachineScaleSetVM'));
+ parameters.command('list')
+ .description($('Generate vmssvm parameter string or files.'))
+ .usage('[options]')
+ .option('--generate', $('To generate parameter string/file for method: list.'))
+ .option('--output-file ', $('The output file path.'))
+ .execute(function (generate, outputFile, options, _) {
+ console.log("{\"expandExpression\":\"\",\"filterExpression\":\"\",\"resourceGroupName\":\"\",\"selectExpression\":\"\",\"virtualMachineScaleSetName\":\"\"}");
+ var filePath = "vmssvm_list.json";
+ if (options.outputFile) { filePath = options.outputFile; };
+ fs.writeFileSync(filePath, beautify("{\r\n\"expandExpression\":\"\",\r\n\"filterExpression\":\"\",\r\n\"resourceGroupName\":\"\",\r\n\"selectExpression\":\"\",\r\n\"virtualMachineScaleSetName\":\"\"\r\n}"));
+ console.log("Parameter file output to: " + filePath);
+ });
+//virtualMachineScaleSetVM -> PowerOff
+ var vmssvm = compute.category('vmssvm').description($('Commands for Azure Compute VirtualMachineScaleSetVM'));
+ vmssvm.command('powerOff')
+ .description($('vmssvm powerOff'))
+ .usage('[options]')
+ .option('--ResourceGroupName ', $('ResourceGroupName'))
+ .option('--VMScaleSetName ', $('VMScaleSetName'))
+ .option('--InstanceId ', $('InstanceId'))
+ .option('--ParameterFile ', $('the input parameter file'))
+ .option('-s, --subscription ', $('the subscription identifier'))
+ .execute(function (ResourceGroupName, VMScaleSetName, InstanceId, options, _) {
+ console.log('ResourceGroupName = ' + options.ResourceGroupName);
+ console.log('VMScaleSetName = ' + options.VMScaleSetName);
+ console.log('InstanceId = ' + options.InstanceId);
+ var subscription = profile.current.getSubscription(options.subscription);
+ var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
+ console.log(computeManagementClient.virtualMachineScaleSetVMs.powerOff);
+ var result = computeManagementClient.virtualMachineScaleSetVMs.powerOff(options.ResourceGroupName, options.VMScaleSetName, options.InstanceId, _);
+ cli.output.json(result);
+ });
+//virtualMachineScaleSetVM -> Restart
+ var vmssvm = compute.category('vmssvm').description($('Commands for Azure Compute VirtualMachineScaleSetVM'));
+ vmssvm.command('restart')
+ .description($('vmssvm restart'))
+ .usage('[options]')
+ .option('--ResourceGroupName ', $('ResourceGroupName'))
+ .option('--VMScaleSetName ', $('VMScaleSetName'))
+ .option('--InstanceId ', $('InstanceId'))
+ .option('--ParameterFile ', $('the input parameter file'))
+ .option('-s, --subscription ', $('the subscription identifier'))
+ .execute(function (ResourceGroupName, VMScaleSetName, InstanceId, options, _) {
+ console.log('ResourceGroupName = ' + options.ResourceGroupName);
+ console.log('VMScaleSetName = ' + options.VMScaleSetName);
+ console.log('InstanceId = ' + options.InstanceId);
+ var subscription = profile.current.getSubscription(options.subscription);
+ var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
+ console.log(computeManagementClient.virtualMachineScaleSetVMs.restart);
+ var result = computeManagementClient.virtualMachineScaleSetVMs.restart(options.ResourceGroupName, options.VMScaleSetName, options.InstanceId, _);
+ cli.output.json(result);
+ });
+//virtualMachineScaleSetVM -> Start
+ var vmssvm = compute.category('vmssvm').description($('Commands for Azure Compute VirtualMachineScaleSetVM'));
+ vmssvm.command('start')
+ .description($('vmssvm start'))
+ .usage('[options]')
+ .option('--ResourceGroupName ', $('ResourceGroupName'))
+ .option('--VMScaleSetName ', $('VMScaleSetName'))
+ .option('--InstanceId ', $('InstanceId'))
+ .option('--ParameterFile ', $('the input parameter file'))
+ .option('-s, --subscription ', $('the subscription identifier'))
+ .execute(function (ResourceGroupName, VMScaleSetName, InstanceId, options, _) {
+ console.log('ResourceGroupName = ' + options.ResourceGroupName);
+ console.log('VMScaleSetName = ' + options.VMScaleSetName);
+ console.log('InstanceId = ' + options.InstanceId);
+ var subscription = profile.current.getSubscription(options.subscription);
+ var computeManagementClient = utils.createComputeResourceProviderClient(subscription);
+ console.log(computeManagementClient.virtualMachineScaleSetVMs.start);
+ var result = computeManagementClient.virtualMachineScaleSetVMs.start(options.ResourceGroupName, options.VMScaleSetName, options.InstanceId, _);
+ cli.output.json(result);
+ });
};
diff --git a/src/ResourceManager/Compute/Commands.Compute/Microsoft.Azure.Commands.Compute.dll-Help.xml b/src/ResourceManager/Compute/Commands.Compute/Microsoft.Azure.Commands.Compute.dll-Help.xml
index 50f41e5e8578..808c60a27217 100644
--- a/src/ResourceManager/Compute/Commands.Compute/Microsoft.Azure.Commands.Compute.dll-Help.xml
+++ b/src/ResourceManager/Compute/Commands.Compute/Microsoft.Azure.Commands.Compute.dll-Help.xml
@@ -4,7 +4,7 @@
- Add-AzureRMVMAdditionalUnattendContent
+ Add-AzureRmVMAdditionalUnattendContentAdds information to the unattended Windows Setup answer file.
@@ -16,15 +16,15 @@
- The Add-AzureRMVMAdditionalUnattendContent cmdlet adds information to the unattended Windows Setup answer file. Specify additional base 64 encoded XML formatted information that this cmdlet adds to the unattend.xml file.
+ The Add-AzureRmVMAdditionalUnattendContent cmdlet adds information to the unattended Windows Setup answer file. Specify additional base 64 encoded XML formatted information that this cmdlet adds to the unattend.xml file.
- Add-AzureRMVMAdditionalUnattendContent
+ Add-AzureRmVMAdditionalUnattendContentVM
- Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRMVM cmdlet. Create a virtual machine object by using the New-AzureRMVMConfig cmdlet.
+ Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. PSVirtualMachine
@@ -97,7 +97,7 @@
VM
- Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRMVM cmdlet. Create a virtual machine object by using the New-AzureRMVMConfig cmdlet.
+ Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. PSVirtualMachine
@@ -150,18 +150,18 @@
- PS C:\>$AvailabilitySet = Get-AzureRMAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03"
-PS C:\> $VirtualMachine = New-AzureRMVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -AvailabilitySetID $AvailabilitySet.Id
+ PS C:\>$AvailabilitySet = Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03"
+PS C:\> $VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -AvailabilitySetID $AvailabilitySet.Id
PS C:\> $Credential = Get-Credential
-PS C:\> $VirtualMachine = Set-AzureRMVMOperatingSystem -VM $VirtualMachine -Windows -ComputerName "Contoso26" -Credential $Credential
+PS C:\> $VirtualMachine = Set-AzureRmVMOperatingSystem -VM $VirtualMachine -Windows -ComputerName "Contoso26" -Credential $Credential
PS C:\> $AucContent = "<UserAccounts><AdministratorPassword><Value>" + "Password" + "</Value><PlainText>true</PlainText></AdministratorPassword></UserAccounts>";
-PS C:\> $VirtualMachine = Add-AzureRMVMAdditionalUnattendContent -VM $VirtualMachine -Content $AucContent -SettingName "AutoLogon"
+PS C:\> $VirtualMachine = Add-AzureRmVMAdditionalUnattendContent -VM $VirtualMachine -Content $AucContent -SettingName "AutoLogon"
The first command gets the availability set named AvailablitySet03 in the resource group named ResourceGroup11, and then stores that object in the $AvailabilitySet variable.The second command creates a virtual machine object, and then stores it in the $VirtualMachine variable. The command assigns a name and size to the virtual machine. The virtual machine belongs to the availability set stored in $AvailabilitySet.The third command creates a credential object by using the Get-Credential cmdlet, and then stores the result in the $Credential variable. The command prompts you for a user name and password. For more information, type Get-Help Get-Credential.
- The fourth command uses the Set-AzureRMVMOperatingSystem cmdlet to configure the virtual machine stored in $VirtualMachine.
+ The fourth command uses the Set-AzureRmVMOperatingSystem cmdlet to configure the virtual machine stored in $VirtualMachine.The fifth command assigns content to the $AucContent variable. The content includes a password. The final command adds the content stored in $AucContent to the unattend.xml file.
@@ -176,22 +176,22 @@ PS C:\> $VirtualMachine = Add-AzureRMVMAdditionalUnattendContent -VM $Virtual
- Get-AzureRMAvailabilitySet
+ Get-AzureRmAvailabilitySet
- Set-AzureRMVMOperatingSystem
+ Set-AzureRmVMOperatingSystem
- New-AzureRMVMConfig
+ New-AzureRmVMConfig
- Add-AzureRMVMDataDisk
+ Add-AzureRmVMDataDiskAdds a data disk to a virtual machine.
@@ -203,15 +203,15 @@ PS C:\> $VirtualMachine = Add-AzureRMVMAdditionalUnattendContent -VM $Virtual
- The Add-AzureRMVMDataDisk cmdlet adds a data disk to a virtual machine. You can add a data disk when you create a virtual machine, or you can add a data disk to an existing virtual machine.
+ The Add-AzureRmVMDataDisk cmdlet adds a data disk to a virtual machine. You can add a data disk when you create a virtual machine, or you can add a data disk to an existing virtual machine.
- Add-AzureRMVMDataDisk
+ Add-AzureRmVMDataDiskVM
- Specifies the local virtual machine object to which to add a data disk. To obtain a virtual machine object, use the Get-AzureRMVM cmdlet. Create a virtual machine object by using the New-AzureRMVMConfig cmdlet.
+ Specifies the local virtual machine object to which to add a data disk. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet.PSVirtualMachine
@@ -400,7 +400,7 @@ The default value is ReadWrite. Changing this value causes the virtual machine t
VM
- Specifies the local virtual machine object to which to add a data disk. To obtain a virtual machine object, use the Get-AzureRMVM cmdlet. Create a virtual machine object by using the New-AzureRMVMConfig cmdlet.
+ Specifies the local virtual machine object to which to add a data disk. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet.PSVirtualMachine
@@ -453,13 +453,13 @@ The default value is ReadWrite. Changing this value causes the virtual machine t
- PS C:\>$VirtualMachine = New-AzureRMVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1"
+ PS C:\>$VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1"
PS C:\> $DataDiskVhdUri01 = "https://contoso.blob.core.windows.net/test/data1.vhd"
PS C:\> $DataDiskVhdUri02 = "https://contoso.blob.core.windows.net/test/data2.vhd"
PS C:\> $DataDiskVhdUri03 = "https://contoso.blob.core.windows.net/test/data3.vhd"
-PS C:\> $VirtualMachine = Add-AzureRMVMDataDisk -VM $VirtualMachine -Name 'DataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 0 -VhdUri $DataDiskVhdUri1 -CreateOption Empty
-PS C:\> $VirtualMachine = Add-AzureRMVMDataDisk -VM $VirtualMachine -Name 'DataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 1 -VhdUri $DataDiskVhdUri2 -CreateOption Empty
-PS C:\> $VirtualMachine = Add-AzureRMVMDataDisk -VM $VirtualMachine -Name 'DataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 2 -VhdUri $DataDiskVhdUri3 -CreateOption Empty
+PS C:\> $VirtualMachine = Add-AzureRmVMDataDisk -VM $VirtualMachine -Name 'DataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 0 -VhdUri $DataDiskVhdUri1 -CreateOption Empty
+PS C:\> $VirtualMachine = Add-AzureRmVMDataDisk -VM $VirtualMachine -Name 'DataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 1 -VhdUri $DataDiskVhdUri2 -CreateOption Empty
+PS C:\> $VirtualMachine = Add-AzureRmVMDataDisk -VM $VirtualMachine -Name 'DataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 2 -VhdUri $DataDiskVhdUri3 -CreateOption Empty
@@ -481,13 +481,13 @@ PS C:\> $VirtualMachine = Add-AzureRMVMDataDisk -VM $VirtualMachine -Name 'Da
- PS C:\>$VirtualMachine = Get-AzureRMVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07"
-PS C:\> Add-AzureRMVMDataDisk -VM $VirtualMachine -Name "disk1" -VhdUri "https://contoso.blob.core.windows.net/vhds/diskstandard03.vhd" -LUN 0 -Caching ReadOnly -DiskSizeinGB 1 -CreateOption Empty
-PS C:\> Update-AzureRMVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -VM $VirtualMachine
+ PS C:\>$VirtualMachine = Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07"
+PS C:\> Add-AzureRmVMDataDisk -VM $VirtualMachine -Name "disk1" -VhdUri "https://contoso.blob.core.windows.net/vhds/diskstandard03.vhd" -LUN 0 -Caching ReadOnly -DiskSizeinGB 1 -CreateOption Empty
+PS C:\> Update-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -VM $VirtualMachine
- The first command gets the virtual machine named VirtualMachine07 by using the Get-AzureRMVM cmdlet. The command stores the virtual machine in the $VirtualMachine variable.
+ The first command gets the virtual machine named VirtualMachine07 by using the Get-AzureRmVM cmdlet. The command stores the virtual machine in the $VirtualMachine variable. The second command adds a data disk to the virtual machine stored in $VirtualMachine. The final command updates the state of the virtual machine stored in $VirtualMachine in ResourceGroup11.
@@ -502,22 +502,22 @@ PS C:\> Update-AzureRMVM -ResourceGroupName "ResourceGroup11" -Name "VirtualM
- Remove-AzureRMVMDataDisk
+ Remove-AzureRmVMDataDisk
- Get-AzureRMVM
+ Get-AzureRmVM
- New-AzureRMVMConfig
+ New-AzureRmVMConfig
- Add-AzureRMVMNetworkInterface
+ Add-AzureRmVMNetworkInterfaceAdds a network interface to a virtual machine.
@@ -529,22 +529,22 @@ PS C:\> Update-AzureRMVM -ResourceGroupName "ResourceGroup11" -Name "VirtualM
- The Add-AzureRMVMNetworkInterface cmdlet adds a network interface to a virtual machine. You can add an interface when you create a virtual machine or add one to an existing virtual machine.
+ The Add-AzureRmVMNetworkInterface cmdlet adds a network interface to a virtual machine. You can add an interface when you create a virtual machine or add one to an existing virtual machine.
- Add-AzureRMVMNetworkInterface
+ Add-AzureRmVMNetworkInterfaceVM
- Specifies a local virtual machine object to which to add a network interface. To create a virtual machine, use the New-AzureRMVMConfig cmdlet. To obtain an existing virtual machine, use the Get-AzureRMVM cmdlet.
+ Specifies a local virtual machine object to which to add a network interface. To create a virtual machine, use the New-AzureRmVMConfig cmdlet. To obtain an existing virtual machine, use the Get-AzureRmVM cmdlet.PSVirtualMachineId
- Specifies the ID of a network interface to add to a virtual machine. To obtain a network interface, use the Get-AzureRMNetworkInterface cmdlet.
+ Specifies the ID of a network interface to add to a virtual machine. To obtain a network interface, use the Get-AzureRmNetworkInterface cmdlet.String
@@ -567,7 +567,7 @@ PS C:\> Update-AzureRMVM -ResourceGroupName "ResourceGroup11" -Name "VirtualM
Id
- Specifies the ID of a network interface to add to a virtual machine. To obtain a network interface, use the Get-AzureRMNetworkInterface cmdlet.
+ Specifies the ID of a network interface to add to a virtual machine. To obtain a network interface, use the Get-AzureRmNetworkInterface cmdlet.String
@@ -603,7 +603,7 @@ PS C:\> Update-AzureRMVM -ResourceGroupName "ResourceGroup11" -Name "VirtualM
VM
- Specifies a local virtual machine object to which to add a network interface. To create a virtual machine, use the New-AzureRMVMConfig cmdlet. To obtain an existing virtual machine, use the Get-AzureRMVM cmdlet.
+ Specifies a local virtual machine object to which to add a network interface. To create a virtual machine, use the New-AzureRmVMConfig cmdlet. To obtain an existing virtual machine, use the Get-AzureRmVM cmdlet.PSVirtualMachine
@@ -656,8 +656,8 @@ PS C:\> Update-AzureRMVM -ResourceGroupName "ResourceGroup11" -Name "VirtualM
- PS C:\>$VirtualMachine = New-AzureRMVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1"
-PS C:\> Add-AzureRMVMNetworkInterface -VM $VirtualMachine -Id "/subscriptions/46fc8ea4-2de6-4179-8ab1-365da4121af4/resourceGroups/contoso/providers/Microsoft.Network/networkInterfaces/sshNIC"
+ PS C:\>$VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1"
+PS C:\> Add-AzureRmVMNetworkInterface -VM $VirtualMachine -Id "/subscriptions/46fc8ea4-2de6-4179-8ab1-365da4121af4/resourceGroups/contoso/providers/Microsoft.Network/networkInterfaces/sshNIC"
The first command creates a virtual machine object, and then stores it in the $VirtualMachine variable. The command assigns a name and size to the virtual machine.
@@ -677,12 +677,12 @@ PS C:\> Add-AzureRMVMNetworkInterface -VM $VirtualMachine -Id "/subscriptions
- PS C:\>$VirtualMachine = Get-AzureRMVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07"
-PS C:\> Add-AzureRMVMNetworkInterface -VM $VirtualMachine -Id "/subscriptions/46fc8ea4-2de6-4179-8ab1-365da4121af4/resourceGroups/contoso/providers/Microsoft.Network/networkInterfaces/sshNIC"
-PS C:\> Update-AzureRMVM -ResourceGroupName "ResourceGroup11" -Name " VirtualMachine07" -VM $VirtualMachine
+ PS C:\>$VirtualMachine = Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07"
+PS C:\> Add-AzureRmVMNetworkInterface -VM $VirtualMachine -Id "/subscriptions/46fc8ea4-2de6-4179-8ab1-365da4121af4/resourceGroups/contoso/providers/Microsoft.Network/networkInterfaces/sshNIC"
+PS C:\> Update-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name " VirtualMachine07" -VM $VirtualMachine
- The first command gets the virtual machine named VirtualMachine07 by using the Get-AzureRMVM cmldet. The command stores the virtual machine in the $VirtualMachine variable.
+ The first command gets the virtual machine named VirtualMachine07 by using the Get-AzureRmVM cmldet. The command stores the virtual machine in the $VirtualMachine variable. The second command adds a network interface to the virtual machine stored in $VirtualMachine. The final command updates the state of the virtual machine stored in $VirtualMachine in ResourceGroup11.
@@ -697,22 +697,22 @@ PS C:\> Update-AzureRMVM -ResourceGroupName "ResourceGroup11" -Name " Virtual