Dela via


Get-AzDataProtectionPolicyTemplate

Hämtar standardprincipmallen för en vald datakällatyp.

Syntax

Default (Standard)

Get-AzDataProtectionPolicyTemplate
    -DatasourceType <DatasourceTypes>
    [<CommonParameters>]

Description

Hämtar standardprincipmallen för en vald datakällatyp.

Exempel

Exempel 1: Hämta standardprincipmall för Azure Disk

Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDisk
DatasourceType            ObjectType
--------------            ----------
{Microsoft.Compute/disks} BackupPolicy

Det här kommandot returnerar en standardprincipmall för en viss datakällatyp. Använd den här principmallen för att skapa en ny princip.

Parametrar

-DatasourceType

Datakällatyp

Parameteregenskaper

Typ:DatasourceTypes
Standardvärde:None
Godkända värden:AzureDisk, AzureBlob, AzureDatabaseForPostgreSQL, AzureKubernetesService, AzureDatabaseForPGFlexServer, AzureDatabaseForMySQL
Stöder jokertecken:False
DontShow:False

Parameteruppsättningar

(All)
Position:Named
Obligatorisk:True
Värde från pipeline:False
Värde från pipeline efter egenskapsnamn:False
Värde från återstående argument:False

CommonParameters

Den här cmdleten stöder vanliga parametrar: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction och -WarningVariable. Mer information finns i about_CommonParameters.

Utdata

IBackupPolicy