Lab 8 create a scale set using powershell

Veröffentlicht am: 04 November 2019
auf dem Kanal: The Azure guy
150
0

In this lab we will create a 2vm scale set and install and IIS web application to test
Define the script for your Custom Script Extension to run
$publicSettings = @{
"fileUris" = (,"https://raw.githubusercontent.com/Azu...");
"commandToExecute" = "powershell -ExecutionPolicy Unrestricted -File automate-iis.ps1"
}

Get information about the scale set
$vmss = Get-AzVmss `
-ResourceGroupName $rgname `
-VMScaleSetName $vmscalesetname

Use Custom Script Extension to install IIS and configure basic website
Add-AzVmssExtension -VirtualMachineScaleSet $vmss `
-Name "customScript" `
-Publisher "Microsoft.Compute" `
-Type "CustomScriptExtension" `
-TypeHandlerVersion 1.8 `
-Setting $publicSettings

Update the scale set and apply the Custom Script Extension to the VM instances
Update-AzVmss `
-ResourceGroupName $rgname `
-Name $vmscalesetname `
-VirtualMachineScaleSet $vmss


Auf dieser Seite können Sie das Online-Video Lab 8 create a scale set using powershell mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer The Azure guy 04 November 2019 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 150 Mal angesehen und es wurde von 0 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!