Initialize-AzRecoveryServicesBackupProtectableItem

This command triggers the discovery of any unprotected items of the given workload type in the given container. If the DB application is not auto-protected use this command to discover new DBs whenever they are added and proceed to protect them.

Syntax

Initialize-AzRecoveryServicesBackupProtectableItem
          [-Container] <ContainerBase>
          [-WorkloadType] <WorkloadType>
          [-VaultId <String>]
          [-DefaultProfile <IAzureContextContainer>]
          [<CommonParameters>]

Description

the cmdlet enquires for specific workloads within a container. This triggers an operation which creates protectable items.

Examples

Example 1

PS C:\> Initialize-AzRecoveryServicesProtectableItem -Container $Container -WorkloadType “MSSQL”

The cmdlet executes a discovery operation for new protectable items.

Parameters

-Container

Container where the item resides

Type:Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
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
-VaultId

ARM ID of the Recovery Services Vault.

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

Workload type of the resource (for example: AzureVM, WindowsServer, AzureFiles, MSSQL).

Type:Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType
Accepted values:AzureVM, AzureSQLDatabase, AzureFiles, MSSQL
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase

System.String

Outputs

Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase

Notes