Skip to content

Instantly share code, notes, and snippets.

@johnlokerse
Created May 24, 2023 18:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnlokerse/498d95d5a6effd9da60374150d0b5d7f to your computer and use it in GitHub Desktop.
Save johnlokerse/498d95d5a6effd9da60374150d0b5d7f to your computer and use it in GitHub Desktop.
@description('parUserName is the username for the Virtual Machine.')
param parUserName string = 'admin'
@description('parPassword is the password for the Virtual Machine.')
param parPassword string = 'P@ssw0rd1234!'
resource resWindowsVM 'Microsoft.Compute/virtualMachines@2020-12-01' = {
name: 'my-vm'
location: 'westeurope'
properties: {
hardwareProfile: {
vmSize: 'Standard_A2_v2'
}
osProfile: {
computerName: 'computerName'
adminUsername: parUserName
adminPassword: parPassword
}
... truncated for length purposes ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment