mirror of
https://github.com/MicrosoftLearning/AZ-104-MicrosoftAzureAdministrator.git
synced 2026-02-04 23:59:08 +00:00
Delete Allfiles/Labs/08/az104-08-configure_VMSS_disks.ps1
This commit is contained in:
parent
350a98aae9
commit
c3d62d1e26
@ -1,23 +0,0 @@
|
|||||||
$rgName = 'az104-08-rg02'
|
|
||||||
$vmssName = 'az10408vmss0'
|
|
||||||
$vmss = Get-AzVmss `
|
|
||||||
-ResourceGroupName $rgName `
|
|
||||||
-VMScaleSetName $vmssName
|
|
||||||
|
|
||||||
$publicSettings = @{
|
|
||||||
"fileUris" = (,"https://raw.githubusercontent.com/Azure-Samples/compute-automation-configurations/master/prepare_vm_disks.ps1");
|
|
||||||
"commandToExecute" = "powershell -ExecutionPolicy Unrestricted -File prepare_vm_disks.ps1"
|
|
||||||
}
|
|
||||||
|
|
||||||
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 $vmssName `
|
|
||||||
-VirtualMachineScaleSet $vmss
|
|
||||||
Loading…
x
Reference in New Issue
Block a user