< Back
New-AzureRmRecoveryServicesAsrStorageClassificationMapping
Post
NAME New-AzureRmRecoveryServicesAsrStorageClassificationMapping
SYNOPSIS
Creates an ASR storage classification mapping in the Recovery Services vault.
SYNTAX
New-AzureRmRecoveryServicesAsrStorageClassificationMapping [-Confirm] [-DefaultProfile <IAzureContextContainer>] -Name <String>
-PrimaryStorageClassification <ASRStorageClassification> -RecoveryStorageClassification <ASRStorageClassification> [-WhatIf] [<CommonParameters>]
DESCRIPTION
The New-AzureRmRecoveryServicesAsrStorageClassificationMapping cmdlet creates a storage classification mapping the Recovery Services vault.
PARAMETERS
-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
-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
-Name <String>
Specifies a name for the ASR storage classification mapping.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-PrimaryStorageClassification <ASRStorageClassification>
Specifies the primary ASR storage classification object for the mapping.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-RecoveryStorageClassification <ASRStorageClassification>
Specifies the recovery ASR storage classification object for the mapping.
Required? true
Position? named
Default value None
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
<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
Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassification
OUTPUTS
Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob
NOTES
Example 1
PS C:\\> $currentJob = New-AzureRmRecoveryServicesAsrStorageClassificationMapping -Name $StrorageClassificationMappingName
-PrimaryStorageClassification $PrimaryStorageClassification -RecoveryStorageClassification $RecoveryStorageClassification
Starts the storage classification mapping creation operation with the specified parameters and returns the ASR job used to track the operation.
RELATED LINKS
Online Version:
https://docs.microsoft.com/en-us/powers ... ionmapping
Get-AzureRmRecoveryServicesAsrStorageClassificationMapping
Remove-AzureRmRecoveryServicesAsrStorageClassificationMapping
SYNOPSIS
Creates an ASR storage classification mapping in the Recovery Services vault.
SYNTAX
New-AzureRmRecoveryServicesAsrStorageClassificationMapping [-Confirm] [-DefaultProfile <IAzureContextContainer>] -Name <String>
-PrimaryStorageClassification <ASRStorageClassification> -RecoveryStorageClassification <ASRStorageClassification> [-WhatIf] [<CommonParameters>]
DESCRIPTION
The New-AzureRmRecoveryServicesAsrStorageClassificationMapping cmdlet creates a storage classification mapping the Recovery Services vault.
PARAMETERS
-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
-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
-Name <String>
Specifies a name for the ASR storage classification mapping.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-PrimaryStorageClassification <ASRStorageClassification>
Specifies the primary ASR storage classification object for the mapping.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-RecoveryStorageClassification <ASRStorageClassification>
Specifies the recovery ASR storage classification object for the mapping.
Required? true
Position? named
Default value None
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
<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
Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassification
OUTPUTS
Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob
NOTES
Example 1
PS C:\\> $currentJob = New-AzureRmRecoveryServicesAsrStorageClassificationMapping -Name $StrorageClassificationMappingName
-PrimaryStorageClassification $PrimaryStorageClassification -RecoveryStorageClassification $RecoveryStorageClassification
Starts the storage classification mapping creation operation with the specified parameters and returns the ASR job used to track the operation.
RELATED LINKS
Online Version:
https://docs.microsoft.com/en-us/powers ... ionmapping
Get-AzureRmRecoveryServicesAsrStorageClassificationMapping
Remove-AzureRmRecoveryServicesAsrStorageClassificationMapping