New-CmAzCoreKeyVault

Creates keyvaults for a specified resource group in the current subscription.

Completes the following:

  • Deploys multiple keyvaults in multiple locations to a specified resource group.
  • Adds diagnostic settings linking the keyvaults to the core workspace.
  • Adds activity log alert rules for whenever an auditevent is raised in any of the keyvaults.

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.

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

Example 2

1
2
3
    New-CmAzCoreKeyVault -SettingsObject $settings