< Back

New-AzureRmRecoveryServicesAsrvCenter

Tue Jan 29, 2019 10:01 pm

NAME New-AzureRmRecoveryServicesAsrvCenter



SYNOPSIS

Adds a vCenter server to discover protectable items from.





SYNTAX

New-AzureRmRecoveryServicesAsrvCenter -Account <ASRRunAsAccount> [-Confirm] [-DefaultProfile <IAzureContextContainer>] -Fabric <ASRFabric>

-IpOrHostName <String> -Name <String> -Port <Int32> [-WhatIf] [<CommonParameters>]





DESCRIPTION

The New-AzureRmRecoveryServicesAsrvCenter cmdlet adds a vCenter server to discover protectable items from. This cmdlet registers the vCenter

server for discovery with the Configuration server.





PARAMETERS

-Account <ASRRunAsAccount>

User login creadential Account.



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



-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



-Fabric <ASRFabric>

ASR fabric corresponding to the Configuration server.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-IpOrHostName <String>

IPv4 address or FQDN of the vCenter server.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

A friendly name for the vCenter server.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Port <Int32>

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



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.ASRFabric







OUTPUTS

System.Collections.Generic.IEnumerable`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob,

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery, Version=0.1.1.0, Culture=neutral, PublicKeyToken=null]]







NOTES









Example 1



PS C:\\> New-AzureRmRecoveryServicesAsrvCenterServer -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.







RELATED LINKS

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