Edit

Share via


Get-AzRecoveryServicesAsrStorageClassification

Gets the available(discovered) ASR storage classifications in the Recovery Services vault.

Syntax

ByFabricObject (Default)

Get-AzRecoveryServicesAsrStorageClassification
    -Fabric <ASRFabric>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

ByObjectWithName

Get-AzRecoveryServicesAsrStorageClassification
    -Name <String>
    -Fabric <ASRFabric>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

ByObjectWithFriendlyName

Get-AzRecoveryServicesAsrStorageClassification
    -FriendlyName <String>
    -Fabric <ASRFabric>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

The Get-AzRecoveryServicesAsrStorageClassification cmdlet gets details of the discovered ASR storage classifications in the Recovery Services vault.

Examples

Example 1

$StorageClassifications = Get-AzRecoveryServicesAsrStorageClassification -Fabric $Fabric

List the discovered storage classifications corresponding to the specified ASR fabric.

Parameters

-DefaultProfile

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

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Fabric

Specifies an ASR fabric object. The cmdlet gets the details of discovered storage classifications corresponding to the specified ASR fabric.

Parameter properties

Type:ASRFabric
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-FriendlyName

Specifies the friendly name of the storage classification object to get.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByObjectWithFriendlyName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Specifies the name of the storage classification object to get.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByObjectWithName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

ASRFabric

Outputs

ASRStorageClassification