Get-AzDataProtectionPolicyTemplate
Gets default policy template for a selected datasource type.
Syntax
Default (Default)
Get-AzDataProtectionPolicyTemplate
-DatasourceType <DatasourceTypes>
[<CommonParameters>]
Description
Gets default policy template for a selected datasource type.
Examples
Example 1: Get Azure Disk default policy template
Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDisk
DatasourceType ObjectType
-------------- ----------
{Microsoft.Compute/disks} BackupPolicy
This command returns a default policy template for a given datasource type. Use this policy template to create a new policy.
Parameters
-DatasourceType
Datasource Type
Parameter properties
| Type: | DatasourceTypes |
| Default value: | None |
| Accepted values: | AzureDisk, AzureBlob, AzureDatabaseForPostgreSQL, AzureKubernetesService, AzureDatabaseForPGFlexServer, AzureDatabaseForMySQL |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.