New-CmAzCoreAutomation

Create an Automation account with runbooks.

Completes the following:

  • Creates Resource Group for runbook, dsc or both.
  • Creates Automation account for runbook, dsc or both.
  • Creates Key vault certificate if not available.
  • Create RunAsAccount and RunAsCertificate for Automation accounts.
  • Optionally sync code repository (tvfc git github).

This command forms part of the Core 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.

-TagSettingsFile

Required. (String) File path for the tags settings file containing tags defination.

-AutomationCertificatePassword

Required. (SecureString) Certificate password used to create automation account run as certificate.

-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-CmAzCoreAutomation -SettingsFile "c:/directory/settingsFile.yml"
    
  

Example 2

1
2
3
    New-CmAzCoreAutomation -SettingsObject $settings