New-CmAzCore

Helper function which wraps all the resources in Core and deploys them together.

Deploys a complete set of Core resources, representing a “Landing Zone” for wider deployments. Deploys the following:

  • Deploys Cloudmarque Monitoring solutions with action groups.
  • Deploys Automation solution for runbook and dsc.
  • Deploys Key vaults.
  • Deploys Billing rules.

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 settings containing tags definition.

-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.

Usage

Example 1

1
New-CmAzCore -SettingsFile "c:/directory/settingsFile.yml"

Example 2

1
New-CmAzCore -SettingsObject $settings

Settings

Beta documentation
The following schema documentation is automatically generated as part of a recent roadmap task. There may be inaccuracies or incomplete information while we flush out bugs; please refer to the packed project settings examples where necessary.

Settings Root.

Component

component [string | null]

Value to determine what cmdlet should be dynamically loaded for these settings.

AutomationSettings

automationSettings [string] Mandatory

Path to settings file for New-CmAzCoreAutomation.

BudgetSettings

budgetSettings [string] Mandatory

Path to settings file for New-CmAzCoreBillingRule.

KeyvaultSettings

keyvaultSettings [string] Mandatory

Path to settings file for New-CmAzCoreKeyvault.

MonitorSettings

monitorSettings [string] Mandatory

Path to settings file for New-CmAzCoreMonitor.

Examples

The following example files are automatically generated from the settings file schema definition to show how the specification can be used in practise. Cloudmarque can accept both JSON and YAML parameter files.

1
2
3
4
5
6
7
{
  "component": "string",
  "automationSettings": "string",
  "budgetSettings": "string",
  "keyvaultSettings": "string",
  "monitorSettings": "string"
}
1
2
3
4
5
component: "string"    # Optional
automationSettings: "string"    # Mandatory
budgetSettings: "string"    # Mandatory
keyvaultSettings: "string"    # Mandatory
monitorSettings: "string"    # Mandatory