Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $paramList =
- @{
- "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"}
- }
- foreach ($keys in $paramList.Keys) {
- $paramvalues = $paramList.$keys
- New-AzureRmResourceGroupDeployment -ResourceGroupName "RGName" -TemplateFile "$Global:Outpath\DeployAzr$Global:RNo.json" -TemplateParameterObject $paramValues
- }
Add Comment
Please, Sign In to add comment