Lab 8 create a scale set using powershell

Pubblicato il: 04 novembre 2019
sul canale di: 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


In questa pagina del sito puoi guardare il video online Lab 8 create a scale set using powershell della durata di ore minuti seconda in buona qualità , che l'utente ha caricato The Azure guy 04 novembre 2019, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 150 volte e gli è piaciuto 0 spettatori. Buona visione!