New-CmAzRecoveryServicesVault

Creation of Azure Recovery Services Vault.

Creation of Azure Recovery Services Vault from a YAML settings file, with the additional option of attaching Backup Policies also using a YAML settings file.

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.

-PolicySettingsFile

Required. (String) The full path to the settings file (YAML), e.g. C:\ProjectDirectory\RecoveryServicesPolicy.yml

-PolicySettingsObject

Required. (Object) The object representing the policy settings for 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-CmAzRecoveryServicesVault -SettingsFile C:\ProjectDirectory\RecoveryServicesVault.yml
    
  

Example 2

1
2
3
    New-CmAzRecoveryServicesVault -SettingsFile C:\ProjectDirectory\RecoveryServicesVault.yml -PolicySettingsFile C:\ProjectDirectory\RecoveryServicesPolicy.yml
    
  

Example 3

1
2
3
    New-CmAzRecoveryServicesVault -SettingsFile C:\ProjectDirectory\RecoveryServicesVault.yml -PolicySettingsObject $policies
    
  

Example 4

1
2
3
    New-CmAzRecoveryServicesVault -SettingsObject $settings
    
  

Example 5

1
2
3
    New-CmAzRecoveryServicesVault -SettingsObject $settings -PolicySettingsFile C:\ProjectDirectory\RecoveryServicesPolicy.yml
    
  

Example 6

1
2
3
    New-CmAzRecoveryServicesVault -SettingsObject $settings -PolicySettingsObject $policies