< Back

New-AzureRmRecoveryServicesAsrProtectableItem

Tue Jan 29, 2019 10:02 pm

NAME New-AzureRmRecoveryServicesAsrProtectableItem



SYNOPSIS

Add(Discover) a physical server to the list of protectable items.





SYNTAX

New-AzureRmRecoveryServicesAsrProtectableItem [-Confirm] [-DefaultProfile <IAzureContextContainer>] -FriendlyName <String> -IPAddress <String>

-OSType {Windows | Linux} -ProtectionContainer <ASRProtectionContainer> [-WhatIf] [<CommonParameters>]





DESCRIPTION

The New-AzureRmRecoveryServicesAsrProtectableItem adds a new protectable item to the list of discovered protectable items in a protection

container within an ASR fabric (applicable only for the VMware fabric type).





PARAMETERS

-Confirm [<SwitchParameter>]

Prompt 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



-FriendlyName <String>

Friendly name for the protectable item.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-IPAddress <String>

IP address of the protectable item.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-OSType <String>

Operating System type (Windows/Linux) of the protectable item.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ProtectionContainer <ASRProtectionContainer>

ASR Protection container object to which the protectable item should be added.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

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







OUTPUTS

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob







NOTES









Example 1



PS C:\\> New-AzureRmRecoveryServicesAsrProtectableItem ProtectionContainer $pc -Name $name -IPAddress $ipaddresss -OSType $OsType



Add or Discover new Azure Recovery Service ProtectableItem.







RELATED LINKS

Online Version:

https://docs.microsoft.com/en-us/powers ... ctableitem