-1

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?

GhostCat
  • 137,827
  • 25
  • 176
  • 248
testuser1
  • 9
  • 2
  • I tried to improve the wording of your question a bit, please review my changes and see if you find them helpful. – GhostCat Aug 31 '18 at 12:29

1 Answers1

0

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"

Ref1: Create a VMSS with New-AzureRmVmss

Nancy
  • 26,865
  • 3
  • 18
  • 34