0% found this document useful (0 votes)
17 views1 page

Copy of IIS Script

Ok

Uploaded by

tarunsood2009
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
0% found this document useful (0 votes)
17 views1 page

Copy of IIS Script

Ok

Uploaded by

tarunsood2009
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
You are on page 1/ 1

$publicSettings = @{ "fileUris" = (,"https://raw.githubusercontent.

com/Azure/azure-
docs-powershell-samples/master/application-gateway/iis/appgatewayurl.ps1");
"commandToExecute" = "powershell -ExecutionPolicy Unrestricted -File
appgatewayurl.ps1" }

Set-AzVMExtension `
-ResourceGroupName az-304demo `
-Location eastus `
-ExtensionName IIS `
-VMName vm1 `
-Publisher Microsoft.Compute `
-ExtensionType CustomScriptExtension `
-TypeHandlerVersion 1.4 `
-Settings $publicSettings

$publicSettings = @{ "fileUris" = (,"https://raw.githubusercontent.com/Azure/azure-


docs-powershell-samples/master/application-gateway/iis/appgatewayurl.ps1");
"commandToExecute" = "powershell -ExecutionPolicy Unrestricted -File
appgatewayurl.ps1" }

Set-AzVMExtension `
-ResourceGroupName az-304demo `
-Location eastus `
-ExtensionName IIS `
-VMName vm2 `
-Publisher Microsoft.Compute `
-ExtensionType CustomScriptExtension `
-TypeHandlerVersion 1.4 `
-Settings $publicSettings

$publicSettings = @{ "fileUris" = (,"https://raw.githubusercontent.com/Azure/azure-


docs-powershell-samples/master/application-gateway/iis/appgatewayurl.ps1");
"commandToExecute" = "powershell -ExecutionPolicy Unrestricted -File
appgatewayurl.ps1" }

Set-AzVMExtension `
-ResourceGroupName az-304demo2 `
-Location centralus `
-ExtensionName IIS `
-VMName vm3 `
-Publisher Microsoft.Compute `
-ExtensionType CustomScriptExtension `
-TypeHandlerVersion 1.4 `
-Settings $publicSettings

$publicSettings = @{ "fileUris" = (,"https://raw.githubusercontent.com/Azure/azure-


docs-powershell-samples/master/application-gateway/iis/appgatewayurl.ps1");
"commandToExecute" = "powershell -ExecutionPolicy Unrestricted -File
appgatewayurl.ps1" }

Set-AzVMExtension `
-ResourceGroupName az-304demo2 `
-Location centralus `
-ExtensionName IIS `
-VMName vm4 `
-Publisher Microsoft.Compute `
-ExtensionType CustomScriptExtension `
-TypeHandlerVersion 1.4 `
-Settings $publicSettings

You might also like