New-AzRecoveryServicesAsrvCenter

Adds a vCenter server to discover protectable items from.

Syntax

New-AzRecoveryServicesAsrvCenter
   -Fabric <ASRFabric>
   -Name <String>
   -Account <ASRRunAsAccount>
   -Port <Int32>
   -IpOrHostName <String>
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The New-AzRecoveryServicesAsrvCenter cmdlet adds a vCenter server to discover protectable items from. This cmdlet registers the vCenter server for discovery with the Configuration server.

Examples

Example 1

PS C:\> New-AzRecoveryServicesAsrvCenterServer -Account $ConfigServer.FabricSpecificDetails.RunAsAccounts[1] -Fabric $ConfigServer -Name InmTest59 -Port 443 -Server 10.150.209.6

Asr Job for vCenter creation.

Adds a vCenter server to discover protectable items from.

Parameters

-Account

User login creadential Account.

Type:Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DefaultProfile

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

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Fabric

ASR fabric corresponding to the Configuration server.

Type:ASRFabric
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-IpOrHostName

IPv4 address or FQDN of the vCenter server.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

A friendly name for the vCenter server.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Port

The TCP port on the vCenter server to use for discovery.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

ASRFabric

Outputs

ASRJob