次の方法で共有


New-AzRecoveryServicesAsrNetworkMapping

Creates an ASR network mapping between two networks.

構文

EnterpriseToEnterprise (既定)

New-AzRecoveryServicesAsrNetworkMapping
    -Name <String>
    -PrimaryNetwork <ASRNetwork>
    -RecoveryNetwork <ASRNetwork>
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

AzureToAzure

New-AzRecoveryServicesAsrNetworkMapping
    -Name <String>
    -PrimaryFabric <ASRFabric>
    -PrimaryAzureNetworkId <String>
    -RecoveryFabric <ASRFabric>
    -RecoveryAzureNetworkId <String>
    [-AzureToAzure]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

EnterpriseToAzure

New-AzRecoveryServicesAsrNetworkMapping
    -Name <String>
    -PrimaryNetwork <ASRNetwork>
    -RecoveryAzureNetworkId <String>
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

説明

The New-AzRecoveryServicesAsrNetworkMapping cmdlet starts the operation of creating an ASR network mapping between two networks and returns the ASR job object for the ASR job used to track the operation.

Example 1

$currentJob = New-AzRecoveryServicesAsrNetworkMapping -Name $NetworkMapName -PrimaryNetwork $PrimaryNetwork -RecoveryNetwork $RecoveryNetwork

Starts the network mapping creation operation using the specified name, primary and recovery networks, and returns an ASR job to track the operation.

Example 2

$currentJob = New-AzRecoveryServicesAsrNetworkMapping -AzureToAzure -Name "mappingName" -PrimaryFabric $AzureFabric `
 -PrimaryAzureNetworkId $AzureNetworkId -RecoveryFabric $RecoveryAzureFabric -RecoveryAzureNetworkId $RecoveryNetworkId

Starts the network mapping for creation operation using the specified name, primary and recovery networks, and returns an ASR job to track the operation(Azure to Azure scenario).

パラメーター

-AzureToAzure

Flag to create AzureToAzure scenario.

パラメーターのプロパティ

型:SwitchParameter
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

AzureToAzure
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-Confirm

Prompts you for confirmation before running the cmdlet.

パラメーターのプロパティ

型:SwitchParameter
規定値:None
ワイルドカードのサポート:False
DontShow:False
Aliases:cf

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-DefaultProfile

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

パラメーターのプロパティ

型:IAzureContextContainer
規定値:None
ワイルドカードのサポート:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-Name

Name of the ASR network mapping to create.

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-PrimaryAzureNetworkId

Specifies the Azure virtual network ID of the primary network for the mapping.

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

AzureToAzure
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-PrimaryFabric

Specifies the ASR fabric where mapping should be created.

パラメーターのプロパティ

型:ASRFabric
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

AzureToAzure
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-PrimaryNetwork

Specifies the primary network object for the ASR network mapping.

パラメーターのプロパティ

型:ASRNetwork
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

EnterpriseToEnterprise
配置:Named
必須:True
パイプラインからの値:True
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False
EnterpriseToAzure
配置:Named
必須:True
パイプラインからの値:True
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-RecoveryAzureNetworkId

Specifies the recovery azure network ID for the network mapping.

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

AzureToAzure
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False
EnterpriseToAzure
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-RecoveryFabric

The Azure Site Recovery fabric object corresponding to the recovery Azure region.

パラメーターのプロパティ

型:ASRFabric
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

AzureToAzure
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-RecoveryNetwork

Specifies the recovery network object for the ASR network mapping.

パラメーターのプロパティ

型:ASRNetwork
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

EnterpriseToEnterprise
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-WhatIf

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

パラメーターのプロパティ

型:SwitchParameter
規定値:None
ワイルドカードのサポート:False
DontShow:False
Aliases:wi

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値: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.

入力

ASRNetwork

出力

ASRJob