How can I deploy a VM scale set generalized image into an existing vnet?
Are there some powershell commands to do this?
How could I go about this?
How can I deploy a VM scale set generalized image into an existing vnet?
Are there some powershell commands to do this?
How could I go about this?
You can create a scale set with New-AzureRmVmss
command that uses the -ImageName
parameter. I run the following Powershell Scripts successfully. The existing virtual network and existing Image are in the same resource group.
New-AzureRmVmss `
-ResourceGroupName "myResourceGroup" `
-Location "EastUS" `
-VMScaleSetName "myScaleSet" `
-VirtualNetworkName "myVnet" `
-SubnetName "mySubnet" `
-PublicIpAddressName "myPublicIPAddress" `
-LoadBalancerName "myLoadBalancer" `
-UpgradePolicyMode "Automatic" `
-ImageName "myImage"