< Back

New-AzureRmRecoveryServicesVault

Tue Jan 29, 2019 10:03 pm

NAME New-AzureRmRecoveryServicesVault



SYNOPSIS

Creates a new Recovery Services vault.





SYNTAX

New-AzureRmRecoveryServicesVault -Location <String> -Name <String> -ResourceGroupName <String> [-Confirm] [-WhatIf] [-DefaultProfile

<IAzureContextContainer>] [<CommonParameters>]





DESCRIPTION

The New-AzureRmRecoveryServicesVault cmdlet creates a new Recovery Services vault.





PARAMETERS

-Location <String>

Specifies the name of the geographic location of the vault.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

Specifies the name of the vault to create.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ResourceGroupName <String>

Specifies the name of the Azure resource group in which to create or from which to retrieve the specified Recovery Services object.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS

Microsoft.Azure.Commands.RecoveryServices.ARSVault







NOTES









Example 1



PS C:\\> New-AzureRmRecoveryServicesVault -Name "vaultName" -ResourceGroupName "rg" -Location "eastasia"



Create recovery service vault in resource group and given location.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... vicesvault

Get-AzureRmRecoveryServicesVault

Get-AzureRmRecoveryServicesVaultSettingsFile

Remove-AzureRmRecoveryServicesVault