We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
Manages a Backup Policy Disk.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var rg = new Azure.Core.ResourceGroup("rg", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleBackupVault = new Azure.DataProtection.BackupVault("exampleBackupVault", new Azure.DataProtection.BackupVaultArgs
{
ResourceGroupName = rg.Name,
Location = rg.Location,
DatastoreType = "VaultStore",
Redundancy = "LocallyRedundant",
});
var exampleBackupPolicyDisk = new Azure.DataProtection.BackupPolicyDisk("exampleBackupPolicyDisk", new Azure.DataProtection.BackupPolicyDiskArgs
{
VaultId = exampleBackupVault.Id,
BackupRepeatingTimeIntervals =
{
"R/2021-05-19T06:33:16+00:00/PT4H",
},
DefaultRetentionDuration = "P7D",
RetentionRules =
{
new Azure.DataProtection.Inputs.BackupPolicyDiskRetentionRuleArgs
{
Name = "Daily",
Duration = "P7D",
Priority = 25,
Criteria = new Azure.DataProtection.Inputs.BackupPolicyDiskRetentionRuleCriteriaArgs
{
AbsoluteCriteria = "FirstOfDay",
},
},
new Azure.DataProtection.Inputs.BackupPolicyDiskRetentionRuleArgs
{
Name = "Weekly",
Duration = "P7D",
Priority = 20,
Criteria = new Azure.DataProtection.Inputs.BackupPolicyDiskRetentionRuleCriteriaArgs
{
AbsoluteCriteria = "FirstOfWeek",
},
},
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/dataprotection"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
rg, err := core.NewResourceGroup(ctx, "rg", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleBackupVault, err := dataprotection.NewBackupVault(ctx, "exampleBackupVault", &dataprotection.BackupVaultArgs{
ResourceGroupName: rg.Name,
Location: rg.Location,
DatastoreType: pulumi.String("VaultStore"),
Redundancy: pulumi.String("LocallyRedundant"),
})
if err != nil {
return err
}
_, err = dataprotection.NewBackupPolicyDisk(ctx, "exampleBackupPolicyDisk", &dataprotection.BackupPolicyDiskArgs{
VaultId: exampleBackupVault.ID(),
BackupRepeatingTimeIntervals: pulumi.StringArray{
pulumi.String("R/2021-05-19T06:33:16+00:00/PT4H"),
},
DefaultRetentionDuration: pulumi.String("P7D"),
RetentionRules: dataprotection.BackupPolicyDiskRetentionRuleArray{
&dataprotection.BackupPolicyDiskRetentionRuleArgs{
Name: pulumi.String("Daily"),
Duration: pulumi.String("P7D"),
Priority: pulumi.Int(25),
Criteria: &dataprotection.BackupPolicyDiskRetentionRuleCriteriaArgs{
AbsoluteCriteria: pulumi.String("FirstOfDay"),
},
},
&dataprotection.BackupPolicyDiskRetentionRuleArgs{
Name: pulumi.String("Weekly"),
Duration: pulumi.String("P7D"),
Priority: pulumi.Int(20),
Criteria: &dataprotection.BackupPolicyDiskRetentionRuleCriteriaArgs{
AbsoluteCriteria: pulumi.String("FirstOfWeek"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const rg = new azure.core.ResourceGroup("rg", {location: "West Europe"});
const exampleBackupVault = new azure.dataprotection.BackupVault("exampleBackupVault", {
resourceGroupName: rg.name,
location: rg.location,
datastoreType: "VaultStore",
redundancy: "LocallyRedundant",
});
const exampleBackupPolicyDisk = new azure.dataprotection.BackupPolicyDisk("exampleBackupPolicyDisk", {
vaultId: exampleBackupVault.id,
backupRepeatingTimeIntervals: ["R/2021-05-19T06:33:16+00:00/PT4H"],
defaultRetentionDuration: "P7D",
retentionRules: [
{
name: "Daily",
duration: "P7D",
priority: 25,
criteria: {
absoluteCriteria: "FirstOfDay",
},
},
{
name: "Weekly",
duration: "P7D",
priority: 20,
criteria: {
absoluteCriteria: "FirstOfWeek",
},
},
],
});
import pulumi
import pulumi_azure as azure
rg = azure.core.ResourceGroup("rg", location="West Europe")
example_backup_vault = azure.dataprotection.BackupVault("exampleBackupVault",
resource_group_name=rg.name,
location=rg.location,
datastore_type="VaultStore",
redundancy="LocallyRedundant")
example_backup_policy_disk = azure.dataprotection.BackupPolicyDisk("exampleBackupPolicyDisk",
vault_id=example_backup_vault.id,
backup_repeating_time_intervals=["R/2021-05-19T06:33:16+00:00/PT4H"],
default_retention_duration="P7D",
retention_rules=[
azure.dataprotection.BackupPolicyDiskRetentionRuleArgs(
name="Daily",
duration="P7D",
priority=25,
criteria=azure.dataprotection.BackupPolicyDiskRetentionRuleCriteriaArgs(
absolute_criteria="FirstOfDay",
),
),
azure.dataprotection.BackupPolicyDiskRetentionRuleArgs(
name="Weekly",
duration="P7D",
priority=20,
criteria=azure.dataprotection.BackupPolicyDiskRetentionRuleCriteriaArgs(
absolute_criteria="FirstOfWeek",
),
),
])
Example coming soon!
Create BackupPolicyDisk Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BackupPolicyDisk(name: string, args: BackupPolicyDiskArgs, opts?: CustomResourceOptions);@overload
def BackupPolicyDisk(resource_name: str,
args: BackupPolicyDiskArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BackupPolicyDisk(resource_name: str,
opts: Optional[ResourceOptions] = None,
backup_repeating_time_intervals: Optional[Sequence[str]] = None,
default_retention_duration: Optional[str] = None,
vault_id: Optional[str] = None,
name: Optional[str] = None,
retention_rules: Optional[Sequence[BackupPolicyDiskRetentionRuleArgs]] = None)func NewBackupPolicyDisk(ctx *Context, name string, args BackupPolicyDiskArgs, opts ...ResourceOption) (*BackupPolicyDisk, error)public BackupPolicyDisk(string name, BackupPolicyDiskArgs args, CustomResourceOptions? opts = null)
public BackupPolicyDisk(String name, BackupPolicyDiskArgs args)
public BackupPolicyDisk(String name, BackupPolicyDiskArgs args, CustomResourceOptions options)
type: azure:dataprotection:BackupPolicyDisk
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args BackupPolicyDiskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args BackupPolicyDiskArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args BackupPolicyDiskArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BackupPolicyDiskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BackupPolicyDiskArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var backupPolicyDiskResource = new Azure.DataProtection.BackupPolicyDisk("backupPolicyDiskResource", new()
{
BackupRepeatingTimeIntervals = new[]
{
"string",
},
DefaultRetentionDuration = "string",
VaultId = "string",
Name = "string",
RetentionRules = new[]
{
new Azure.DataProtection.Inputs.BackupPolicyDiskRetentionRuleArgs
{
Criteria = new Azure.DataProtection.Inputs.BackupPolicyDiskRetentionRuleCriteriaArgs
{
AbsoluteCriteria = "string",
},
Duration = "string",
Name = "string",
Priority = 0,
},
},
});
example, err := dataprotection.NewBackupPolicyDisk(ctx, "backupPolicyDiskResource", &dataprotection.BackupPolicyDiskArgs{
BackupRepeatingTimeIntervals: pulumi.StringArray{
pulumi.String("string"),
},
DefaultRetentionDuration: pulumi.String("string"),
VaultId: pulumi.String("string"),
Name: pulumi.String("string"),
RetentionRules: dataprotection.BackupPolicyDiskRetentionRuleArray{
&dataprotection.BackupPolicyDiskRetentionRuleArgs{
Criteria: &dataprotection.BackupPolicyDiskRetentionRuleCriteriaArgs{
AbsoluteCriteria: pulumi.String("string"),
},
Duration: pulumi.String("string"),
Name: pulumi.String("string"),
Priority: pulumi.Int(0),
},
},
})
var backupPolicyDiskResource = new BackupPolicyDisk("backupPolicyDiskResource", BackupPolicyDiskArgs.builder()
.backupRepeatingTimeIntervals("string")
.defaultRetentionDuration("string")
.vaultId("string")
.name("string")
.retentionRules(BackupPolicyDiskRetentionRuleArgs.builder()
.criteria(BackupPolicyDiskRetentionRuleCriteriaArgs.builder()
.absoluteCriteria("string")
.build())
.duration("string")
.name("string")
.priority(0)
.build())
.build());
backup_policy_disk_resource = azure.dataprotection.BackupPolicyDisk("backupPolicyDiskResource",
backup_repeating_time_intervals=["string"],
default_retention_duration="string",
vault_id="string",
name="string",
retention_rules=[{
"criteria": {
"absolute_criteria": "string",
},
"duration": "string",
"name": "string",
"priority": 0,
}])
const backupPolicyDiskResource = new azure.dataprotection.BackupPolicyDisk("backupPolicyDiskResource", {
backupRepeatingTimeIntervals: ["string"],
defaultRetentionDuration: "string",
vaultId: "string",
name: "string",
retentionRules: [{
criteria: {
absoluteCriteria: "string",
},
duration: "string",
name: "string",
priority: 0,
}],
});
type: azure:dataprotection:BackupPolicyDisk
properties:
backupRepeatingTimeIntervals:
- string
defaultRetentionDuration: string
name: string
retentionRules:
- criteria:
absoluteCriteria: string
duration: string
name: string
priority: 0
vaultId: string
BackupPolicyDisk Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The BackupPolicyDisk resource accepts the following input properties:
- Backup
Repeating List<string>Time Intervals - Specifies a list of repeating time interval. It should follow
ISO 8601repeating time interval . Changing this forces a new Backup Policy Disk to be created. - Default
Retention stringDuration - The duration of default retention rule. It should follow
ISO 8601duration format. Changing this forces a new Backup Policy Disk to be created. - Vault
Id string - The ID of the Backup Vault within which the Backup Policy Disk should exist. Changing this forces a new Backup Policy Disk to be created.
- Name string
- The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created.
- Retention
Rules List<BackupPolicy Disk Retention Rule> - One or more
retention_ruleblocks as defined below. Changing this forces a new Backup Policy Disk to be created.
- Backup
Repeating []stringTime Intervals - Specifies a list of repeating time interval. It should follow
ISO 8601repeating time interval . Changing this forces a new Backup Policy Disk to be created. - Default
Retention stringDuration - The duration of default retention rule. It should follow
ISO 8601duration format. Changing this forces a new Backup Policy Disk to be created. - Vault
Id string - The ID of the Backup Vault within which the Backup Policy Disk should exist. Changing this forces a new Backup Policy Disk to be created.
- Name string
- The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created.
- Retention
Rules []BackupPolicy Disk Retention Rule Args - One or more
retention_ruleblocks as defined below. Changing this forces a new Backup Policy Disk to be created.
- backup
Repeating List<String>Time Intervals - Specifies a list of repeating time interval. It should follow
ISO 8601repeating time interval . Changing this forces a new Backup Policy Disk to be created. - default
Retention StringDuration - The duration of default retention rule. It should follow
ISO 8601duration format. Changing this forces a new Backup Policy Disk to be created. - vault
Id String - The ID of the Backup Vault within which the Backup Policy Disk should exist. Changing this forces a new Backup Policy Disk to be created.
- name String
- The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created.
- retention
Rules List<BackupPolicy Disk Retention Rule> - One or more
retention_ruleblocks as defined below. Changing this forces a new Backup Policy Disk to be created.
- backup
Repeating string[]Time Intervals - Specifies a list of repeating time interval. It should follow
ISO 8601repeating time interval . Changing this forces a new Backup Policy Disk to be created. - default
Retention stringDuration - The duration of default retention rule. It should follow
ISO 8601duration format. Changing this forces a new Backup Policy Disk to be created. - vault
Id string - The ID of the Backup Vault within which the Backup Policy Disk should exist. Changing this forces a new Backup Policy Disk to be created.
- name string
- The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created.
- retention
Rules BackupPolicy Disk Retention Rule[] - One or more
retention_ruleblocks as defined below. Changing this forces a new Backup Policy Disk to be created.
- backup_
repeating_ Sequence[str]time_ intervals - Specifies a list of repeating time interval. It should follow
ISO 8601repeating time interval . Changing this forces a new Backup Policy Disk to be created. - default_
retention_ strduration - The duration of default retention rule. It should follow
ISO 8601duration format. Changing this forces a new Backup Policy Disk to be created. - vault_
id str - The ID of the Backup Vault within which the Backup Policy Disk should exist. Changing this forces a new Backup Policy Disk to be created.
- name str
- The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created.
- retention_
rules Sequence[BackupPolicy Disk Retention Rule Args] - One or more
retention_ruleblocks as defined below. Changing this forces a new Backup Policy Disk to be created.
- backup
Repeating List<String>Time Intervals - Specifies a list of repeating time interval. It should follow
ISO 8601repeating time interval . Changing this forces a new Backup Policy Disk to be created. - default
Retention StringDuration - The duration of default retention rule. It should follow
ISO 8601duration format. Changing this forces a new Backup Policy Disk to be created. - vault
Id String - The ID of the Backup Vault within which the Backup Policy Disk should exist. Changing this forces a new Backup Policy Disk to be created.
- name String
- The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created.
- retention
Rules List<Property Map> - One or more
retention_ruleblocks as defined below. Changing this forces a new Backup Policy Disk to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the BackupPolicyDisk resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing BackupPolicyDisk Resource
Get an existing BackupPolicyDisk resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: BackupPolicyDiskState, opts?: CustomResourceOptions): BackupPolicyDisk@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backup_repeating_time_intervals: Optional[Sequence[str]] = None,
default_retention_duration: Optional[str] = None,
name: Optional[str] = None,
retention_rules: Optional[Sequence[BackupPolicyDiskRetentionRuleArgs]] = None,
vault_id: Optional[str] = None) -> BackupPolicyDiskfunc GetBackupPolicyDisk(ctx *Context, name string, id IDInput, state *BackupPolicyDiskState, opts ...ResourceOption) (*BackupPolicyDisk, error)public static BackupPolicyDisk Get(string name, Input<string> id, BackupPolicyDiskState? state, CustomResourceOptions? opts = null)public static BackupPolicyDisk get(String name, Output<String> id, BackupPolicyDiskState state, CustomResourceOptions options)resources: _: type: azure:dataprotection:BackupPolicyDisk get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Backup
Repeating List<string>Time Intervals - Specifies a list of repeating time interval. It should follow
ISO 8601repeating time interval . Changing this forces a new Backup Policy Disk to be created. - Default
Retention stringDuration - The duration of default retention rule. It should follow
ISO 8601duration format. Changing this forces a new Backup Policy Disk to be created. - Name string
- The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created.
- Retention
Rules List<BackupPolicy Disk Retention Rule> - One or more
retention_ruleblocks as defined below. Changing this forces a new Backup Policy Disk to be created. - Vault
Id string - The ID of the Backup Vault within which the Backup Policy Disk should exist. Changing this forces a new Backup Policy Disk to be created.
- Backup
Repeating []stringTime Intervals - Specifies a list of repeating time interval. It should follow
ISO 8601repeating time interval . Changing this forces a new Backup Policy Disk to be created. - Default
Retention stringDuration - The duration of default retention rule. It should follow
ISO 8601duration format. Changing this forces a new Backup Policy Disk to be created. - Name string
- The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created.
- Retention
Rules []BackupPolicy Disk Retention Rule Args - One or more
retention_ruleblocks as defined below. Changing this forces a new Backup Policy Disk to be created. - Vault
Id string - The ID of the Backup Vault within which the Backup Policy Disk should exist. Changing this forces a new Backup Policy Disk to be created.
- backup
Repeating List<String>Time Intervals - Specifies a list of repeating time interval. It should follow
ISO 8601repeating time interval . Changing this forces a new Backup Policy Disk to be created. - default
Retention StringDuration - The duration of default retention rule. It should follow
ISO 8601duration format. Changing this forces a new Backup Policy Disk to be created. - name String
- The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created.
- retention
Rules List<BackupPolicy Disk Retention Rule> - One or more
retention_ruleblocks as defined below. Changing this forces a new Backup Policy Disk to be created. - vault
Id String - The ID of the Backup Vault within which the Backup Policy Disk should exist. Changing this forces a new Backup Policy Disk to be created.
- backup
Repeating string[]Time Intervals - Specifies a list of repeating time interval. It should follow
ISO 8601repeating time interval . Changing this forces a new Backup Policy Disk to be created. - default
Retention stringDuration - The duration of default retention rule. It should follow
ISO 8601duration format. Changing this forces a new Backup Policy Disk to be created. - name string
- The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created.
- retention
Rules BackupPolicy Disk Retention Rule[] - One or more
retention_ruleblocks as defined below. Changing this forces a new Backup Policy Disk to be created. - vault
Id string - The ID of the Backup Vault within which the Backup Policy Disk should exist. Changing this forces a new Backup Policy Disk to be created.
- backup_
repeating_ Sequence[str]time_ intervals - Specifies a list of repeating time interval. It should follow
ISO 8601repeating time interval . Changing this forces a new Backup Policy Disk to be created. - default_
retention_ strduration - The duration of default retention rule. It should follow
ISO 8601duration format. Changing this forces a new Backup Policy Disk to be created. - name str
- The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created.
- retention_
rules Sequence[BackupPolicy Disk Retention Rule Args] - One or more
retention_ruleblocks as defined below. Changing this forces a new Backup Policy Disk to be created. - vault_
id str - The ID of the Backup Vault within which the Backup Policy Disk should exist. Changing this forces a new Backup Policy Disk to be created.
- backup
Repeating List<String>Time Intervals - Specifies a list of repeating time interval. It should follow
ISO 8601repeating time interval . Changing this forces a new Backup Policy Disk to be created. - default
Retention StringDuration - The duration of default retention rule. It should follow
ISO 8601duration format. Changing this forces a new Backup Policy Disk to be created. - name String
- The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created.
- retention
Rules List<Property Map> - One or more
retention_ruleblocks as defined below. Changing this forces a new Backup Policy Disk to be created. - vault
Id String - The ID of the Backup Vault within which the Backup Policy Disk should exist. Changing this forces a new Backup Policy Disk to be created.
Supporting Types
BackupPolicyDiskRetentionRule, BackupPolicyDiskRetentionRuleArgs
- Criteria
Backup
Policy Disk Retention Rule Criteria - A
criteriablock as defined below. Changing this forces a new Backup Policy Disk to be created. - Duration string
- Duration of deletion after given timespan. It should follow
ISO 8601duration format. Changing this forces a new Backup Policy Disk to be created. - Name string
- The name which should be used for this retention rule. Changing this forces a new Backup Policy Disk to be created.
- Priority int
- Retention Tag priority. Changing this forces a new Backup Policy Disk to be created.
- Criteria
Backup
Policy Disk Retention Rule Criteria - A
criteriablock as defined below. Changing this forces a new Backup Policy Disk to be created. - Duration string
- Duration of deletion after given timespan. It should follow
ISO 8601duration format. Changing this forces a new Backup Policy Disk to be created. - Name string
- The name which should be used for this retention rule. Changing this forces a new Backup Policy Disk to be created.
- Priority int
- Retention Tag priority. Changing this forces a new Backup Policy Disk to be created.
- criteria
Backup
Policy Disk Retention Rule Criteria - A
criteriablock as defined below. Changing this forces a new Backup Policy Disk to be created. - duration String
- Duration of deletion after given timespan. It should follow
ISO 8601duration format. Changing this forces a new Backup Policy Disk to be created. - name String
- The name which should be used for this retention rule. Changing this forces a new Backup Policy Disk to be created.
- priority Integer
- Retention Tag priority. Changing this forces a new Backup Policy Disk to be created.
- criteria
Backup
Policy Disk Retention Rule Criteria - A
criteriablock as defined below. Changing this forces a new Backup Policy Disk to be created. - duration string
- Duration of deletion after given timespan. It should follow
ISO 8601duration format. Changing this forces a new Backup Policy Disk to be created. - name string
- The name which should be used for this retention rule. Changing this forces a new Backup Policy Disk to be created.
- priority number
- Retention Tag priority. Changing this forces a new Backup Policy Disk to be created.
- criteria
Backup
Policy Disk Retention Rule Criteria - A
criteriablock as defined below. Changing this forces a new Backup Policy Disk to be created. - duration str
- Duration of deletion after given timespan. It should follow
ISO 8601duration format. Changing this forces a new Backup Policy Disk to be created. - name str
- The name which should be used for this retention rule. Changing this forces a new Backup Policy Disk to be created.
- priority int
- Retention Tag priority. Changing this forces a new Backup Policy Disk to be created.
- criteria Property Map
- A
criteriablock as defined below. Changing this forces a new Backup Policy Disk to be created. - duration String
- Duration of deletion after given timespan. It should follow
ISO 8601duration format. Changing this forces a new Backup Policy Disk to be created. - name String
- The name which should be used for this retention rule. Changing this forces a new Backup Policy Disk to be created.
- priority Number
- Retention Tag priority. Changing this forces a new Backup Policy Disk to be created.
BackupPolicyDiskRetentionRuleCriteria, BackupPolicyDiskRetentionRuleCriteriaArgs
- Absolute
Criteria string - Possible values are
FirstOfDayandFirstOfWeek. Changing this forces a new Backup Policy Disk to be created.
- Absolute
Criteria string - Possible values are
FirstOfDayandFirstOfWeek. Changing this forces a new Backup Policy Disk to be created.
- absolute
Criteria String - Possible values are
FirstOfDayandFirstOfWeek. Changing this forces a new Backup Policy Disk to be created.
- absolute
Criteria string - Possible values are
FirstOfDayandFirstOfWeek. Changing this forces a new Backup Policy Disk to be created.
- absolute_
criteria str - Possible values are
FirstOfDayandFirstOfWeek. Changing this forces a new Backup Policy Disk to be created.
- absolute
Criteria String - Possible values are
FirstOfDayandFirstOfWeek. Changing this forces a new Backup Policy Disk to be created.
Import
Backup Policy Disks can be imported using the resource id, e.g.
$ pulumi import azure:dataprotection/backupPolicyDisk:BackupPolicyDisk example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DataProtection/backupVaults/vault1/backupPolicies/backupPolicy1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi