편집

다음을 통해 공유


Get-AzDataProtectionJob

Gets or lists jobs in a backup vault

Syntax

Get-AzDataProtectionJob
   -ResourceGroupName <String>
   -VaultName <String>
   [-SubscriptionId <String[]>]
   [-UseSecondaryRegion]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzDataProtectionJob
   -ResourceGroupName <String>
   -VaultName <String>
   [-SubscriptionId <String[]>]
   [-UseSecondaryRegion]
   [-DefaultProfile <PSObject>]
   -Id <String>
   [<CommonParameters>]
Get-AzDataProtectionJob
   [-DefaultProfile <PSObject>]
   -InputObject <IDataProtectionIdentity>
   [<CommonParameters>]

Description

Gets or lists jobs in a backup vault

Examples

Example 1: Get All backup Jobs in a backup vault

Get-AzDataProtectionJob -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName sarath-rg -VaultName sarath-vault

Name                                 Type
----                                 ----
a6a4879d-f914-4174-b129-0e27da8a4fb0 Microsoft.DataProtection/backupVaults/backupJobs
1a402664-a245-4a9d-8bb5-a6bafbb40d26 Microsoft.DataProtection/backupVaults/backupJobs
672564f7-1f91-46e2-a0ca-4fb1dc977a1c Microsoft.DataProtection/backupVaults/backupJobs
1653a7b4-8ce4-457e-8084-dc1c9d9e4106 Microsoft.DataProtection/backupVaults/backupJobs
9f21c438-ca0d-45c1-88fe-79f08a8342c7 Microsoft.DataProtection/backupVaults/backupJobs
736bab4d-480f-49f8-92ea-57c5ff203c33 Microsoft.DataProtection/backupVaults/backupJobs

This command gets all the backup jobs in a given backup vault.

Example 2: Get a single Job with Id

Get-AzDataProtectionJob -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -Id aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e

Name                                 Type
----                                 ----
aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e Microsoft.DataProtection/backupVaults/backupJobs

This command returns a single job entity with given Id.

Example 3: Get backup Jobs in a backup vault from secondary region

Get-AzDataProtectionJob -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -UseSecondaryRegion

Name                                 Type
----                                 ----
a6a4879d-f914-4174-b129-0e27da8a4fb0 Microsoft.DataProtection/backupVaults/backupJobs
1a402664-a245-4a9d-8bb5-a6bafbb40d26 Microsoft.DataProtection/backupVaults/backupJobs

This command gets cross region restore jobs in a backup vault from secondary region.

Parameters

-DefaultProfile

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Id

Job ID to get a particular Job

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

-InputObject

Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

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

-ResourceGroupName

Resource Group of the backup vault

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

-SubscriptionId

Subscription Id of the vault

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

-UseSecondaryRegion

Switch parameter to fetch dataprotection job from secondary region (Cross Region Restore)

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

-VaultName

Name of the backup vault

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

Inputs

IDataProtectionIdentity

Outputs

IAzureBackupJobResource