New-CmAzIaasVm

Deploys multiple virtual machines, over multiple resource groups.

Completes the following:

  • Deploys multiple virtual machines over multiple resource groups.
  • Encrypts all os and data disks using a key encryption key from a specified keyvault.
  • Mounts all hard drives set up in the vms.
  • Enables azure monitor and links all vms to the core log analytics workspace.

This command forms part of the IaaS Building Block.

Parameters

-SettingsFile

Required. (String) File path for the settings file to be converted into a settings object.

-SettingsObject

Required. (Object) Object containing the configuration values required to run this cmdlet.

-LocalAdminUsername

Required. (SecureString) Local admin username for deployed vms, max length 20 characters.

-LocalAdminPassword

Required. (SecureString) Local admin passwords for deployed vms, requires three of the following character types: * Uppercase * Lowercase * Numeric * Special

-WhatIf

(Switch) Run the command without executing any actions, so that no changes are made. The command will output a description of actions to be performed against the affected resources in the console window. Use this option if you are unsure of the overall impact of your command and wish to review it before committing to making changes.

-Confirm

(Switch) Run the command without executing any actions, so that no changes are made. The command will output a description of actions to be performed against the affected resources in the console window. Use this option if you are unsure of the overall impact of your command and wish to review it before committing to making changes.

Examples

Example 1

1
2
3
    New-CmAzIaasCompute -SettingsFile "c:/directory/settingsFile.yml" -LocalAdminUsername "username" -LocalAdminPassword "password"
    
  

Example 2

1
2
3
    New-CmAzIaasCompute -SettingsObject $settings -LocalAdminUsername "username" -LocalAdminPassword "password"