Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
Deploy-AzResources.ps1
README.md
resources.png

README.md

101-vm-simaple-windows

Very simple deployment of a Windows VM

Description

This is a convertion of ARM template 101-vm-simple-windows from the reporsitory azure\azure-quickstart-templates to PowerShell Script, and this script will deply following the resources...

image

... and in-addition to it, just in-case if the deployment is not successful, then it will rollback the entire deployment.

Note:

If there is already the specified resource group exists then the script will not continue with the deployment.

Syntax

Deploy-AzResources.ps1 [-resourceGroupName] <string> [-location] <string> [-adminUsername] <string> [-adminPassword] <securestring> [-dnsLabelPrefix] <string> [[-windowsOSVersion] <string>] [[-vmSize] <string>] [<CommonParameters>]

Example

I 💙 PS> $param = @{
>> resourceGroupName = 'simple-rg'
>> location = 'westus'
>> adminUsername = 'sysadmin'
>> dnsLabelPrefix = 'patnayakuni1981'
>> }

I 💙 PS> .\Deploy-AzResources.ps1 @param
cmdlet Deploy-AzResources.ps1 at command pipeline position 1
Supply values for the following parameters:
adminPassword: *************
Deployment is successful!
HostName: patnayakuni1981.westus.cloudapp.azure.com

Thank you.

You can’t perform that action at this time.