Redigera

Dela via


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>
          [-PassThru]
          [-VaultId <String>]
          [-DefaultProfile <IAzureContextContainer>]
          [-WhatIf]
          [-Confirm]
          [<CommonParameters>]

Description

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

Examples

Example 1

Initialize-AzRecoveryServicesBackupProtectableItem -Container $Container -WorkloadType "MSSQL"

The cmdlet executes a discovery operation for new protectable items.

Example 2

This command triggers the discovery of any unprotected items of the given workload type in the given container. (autogenerated)

Initialize-AzRecoveryServicesBackupProtectableItem -Container $Cont[0] -VaultId $vault.ID -WorkloadType AzureVM

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

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

-Container

Container where the item resides

Type:ContainerBase
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-DefaultProfile

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

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-PassThru

Returns the container where the discovery is being triggered.

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

-VaultId

ARM ID of the Recovery Services Vault.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs.

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

-WorkloadType

Workload type of the resource. The current supported values are AzureVM, WindowsServer, AzureFiles, MSSQL

Type:WorkloadType
Accepted values:AzureVM, WindowsServer, AzureFiles, MSSQL
Position:1
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Inputs

ContainerBase

System.String

Outputs

ItemBase