Guest User

Untitled

a guest
Mar 20th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. $paramList =
  2. @{
  3. "Params1" = @{ customVmName = $($Global:InputVMName.Text) ; userImageStorageAccountName = "Image Storage Name" ; adminUsername = "vmusername" ; adminPassword = "vmpassword" ; osDiskVhdUri = $Global:VhdUri ; dnsLabelPrefix = $Global:InputVMName.Text ; osType = "Windows" ; vmSize = "Standard_D2" ; newOrExistingVnet = "existing" ; newOrExistingVnetName = "VMVPNName" ; newOrExistingSubnetName = "VMSubnet" ; newOrExistingVnetRG = "VNETResourceGroupName"}
  4. }
  5. foreach ($keys in $paramList.Keys) {
  6. $paramvalues = $paramList.$keys
  7. New-AzureRmResourceGroupDeployment -ResourceGroupName "RGName" -TemplateFile "$Global:Outpath\DeployAzr$Global:RNo.json" -TemplateParameterObject $paramValues
  8. }
Add Comment
Please, Sign In to add comment