We recommend using Azure Native.
azure.dataprotection.BackupPolicyDisk
Explore with Pulumi AI
Manages a Backup Policy Disk.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
    name: "example-resources",
    location: "West Europe",
});
const exampleBackupVault = new azure.dataprotection.BackupVault("example", {
    name: "example-backup-vault",
    resourceGroupName: example.name,
    location: example.location,
    datastoreType: "VaultStore",
    redundancy: "LocallyRedundant",
});
const exampleBackupPolicyDisk = new azure.dataprotection.BackupPolicyDisk("example", {
    name: "example-backup-policy",
    vaultId: exampleBackupVault.id,
    backupRepeatingTimeIntervals: ["R/2021-05-19T06:33:16+00:00/PT4H"],
    defaultRetentionDuration: "P7D",
    timeZone: "W. Europe Standard Time",
    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
example = azure.core.ResourceGroup("example",
    name="example-resources",
    location="West Europe")
example_backup_vault = azure.dataprotection.BackupVault("example",
    name="example-backup-vault",
    resource_group_name=example.name,
    location=example.location,
    datastore_type="VaultStore",
    redundancy="LocallyRedundant")
example_backup_policy_disk = azure.dataprotection.BackupPolicyDisk("example",
    name="example-backup-policy",
    vault_id=example_backup_vault.id,
    backup_repeating_time_intervals=["R/2021-05-19T06:33:16+00:00/PT4H"],
    default_retention_duration="P7D",
    time_zone="W. Europe Standard Time",
    retention_rules=[
        {
            "name": "Daily",
            "duration": "P7D",
            "priority": 25,
            "criteria": {
                "absolute_criteria": "FirstOfDay",
            },
        },
        {
            "name": "Weekly",
            "duration": "P7D",
            "priority": 20,
            "criteria": {
                "absolute_criteria": "FirstOfWeek",
            },
        },
    ])
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/dataprotection"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleBackupVault, err := dataprotection.NewBackupVault(ctx, "example", &dataprotection.BackupVaultArgs{
			Name:              pulumi.String("example-backup-vault"),
			ResourceGroupName: example.Name,
			Location:          example.Location,
			DatastoreType:     pulumi.String("VaultStore"),
			Redundancy:        pulumi.String("LocallyRedundant"),
		})
		if err != nil {
			return err
		}
		_, err = dataprotection.NewBackupPolicyDisk(ctx, "example", &dataprotection.BackupPolicyDiskArgs{
			Name:    pulumi.String("example-backup-policy"),
			VaultId: exampleBackupVault.ID(),
			BackupRepeatingTimeIntervals: pulumi.StringArray{
				pulumi.String("R/2021-05-19T06:33:16+00:00/PT4H"),
			},
			DefaultRetentionDuration: pulumi.String("P7D"),
			TimeZone:                 pulumi.String("W. Europe Standard Time"),
			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
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-resources",
        Location = "West Europe",
    });
    var exampleBackupVault = new Azure.DataProtection.BackupVault("example", new()
    {
        Name = "example-backup-vault",
        ResourceGroupName = example.Name,
        Location = example.Location,
        DatastoreType = "VaultStore",
        Redundancy = "LocallyRedundant",
    });
    var exampleBackupPolicyDisk = new Azure.DataProtection.BackupPolicyDisk("example", new()
    {
        Name = "example-backup-policy",
        VaultId = exampleBackupVault.Id,
        BackupRepeatingTimeIntervals = new[]
        {
            "R/2021-05-19T06:33:16+00:00/PT4H",
        },
        DefaultRetentionDuration = "P7D",
        TimeZone = "W. Europe Standard Time",
        RetentionRules = new[]
        {
            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 generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.dataprotection.BackupVault;
import com.pulumi.azure.dataprotection.BackupVaultArgs;
import com.pulumi.azure.dataprotection.BackupPolicyDisk;
import com.pulumi.azure.dataprotection.BackupPolicyDiskArgs;
import com.pulumi.azure.dataprotection.inputs.BackupPolicyDiskRetentionRuleArgs;
import com.pulumi.azure.dataprotection.inputs.BackupPolicyDiskRetentionRuleCriteriaArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("example-resources")
            .location("West Europe")
            .build());
        var exampleBackupVault = new BackupVault("exampleBackupVault", BackupVaultArgs.builder()
            .name("example-backup-vault")
            .resourceGroupName(example.name())
            .location(example.location())
            .datastoreType("VaultStore")
            .redundancy("LocallyRedundant")
            .build());
        var exampleBackupPolicyDisk = new BackupPolicyDisk("exampleBackupPolicyDisk", BackupPolicyDiskArgs.builder()
            .name("example-backup-policy")
            .vaultId(exampleBackupVault.id())
            .backupRepeatingTimeIntervals("R/2021-05-19T06:33:16+00:00/PT4H")
            .defaultRetentionDuration("P7D")
            .timeZone("W. Europe Standard Time")
            .retentionRules(            
                BackupPolicyDiskRetentionRuleArgs.builder()
                    .name("Daily")
                    .duration("P7D")
                    .priority(25)
                    .criteria(BackupPolicyDiskRetentionRuleCriteriaArgs.builder()
                        .absoluteCriteria("FirstOfDay")
                        .build())
                    .build(),
                BackupPolicyDiskRetentionRuleArgs.builder()
                    .name("Weekly")
                    .duration("P7D")
                    .priority(20)
                    .criteria(BackupPolicyDiskRetentionRuleCriteriaArgs.builder()
                        .absoluteCriteria("FirstOfWeek")
                        .build())
                    .build())
            .build());
    }
}
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-resources
      location: West Europe
  exampleBackupVault:
    type: azure:dataprotection:BackupVault
    name: example
    properties:
      name: example-backup-vault
      resourceGroupName: ${example.name}
      location: ${example.location}
      datastoreType: VaultStore
      redundancy: LocallyRedundant
  exampleBackupPolicyDisk:
    type: azure:dataprotection:BackupPolicyDisk
    name: example
    properties:
      name: example-backup-policy
      vaultId: ${exampleBackupVault.id}
      backupRepeatingTimeIntervals:
        - R/2021-05-19T06:33:16+00:00/PT4H
      defaultRetentionDuration: P7D
      timeZone: W. Europe Standard Time
      retentionRules:
        - name: Daily
          duration: P7D
          priority: 25
          criteria:
            absoluteCriteria: FirstOfDay
        - name: Weekly
          duration: P7D
          priority: 20
          criteria:
            absoluteCriteria: FirstOfWeek
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,
                     time_zone: Optional[str] = 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,
        },
    },
    TimeZone = "string",
});
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),
		},
	},
	TimeZone: pulumi.String("string"),
})
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())
    .timeZone("string")
    .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,
    }],
    time_zone="string")
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,
    }],
    timeZone: "string",
});
type: azure:dataprotection:BackupPolicyDisk
properties:
    backupRepeatingTimeIntervals:
        - string
    defaultRetentionDuration: string
    name: string
    retentionRules:
        - criteria:
            absoluteCriteria: string
          duration: string
          name: string
          priority: 0
    timeZone: string
    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:
- BackupRepeating 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.
- DefaultRetention stringDuration 
- The duration of default retention rule. It should follow ISO 8601duration format. Changing this forces a new Backup Policy Disk to be created.
- VaultId 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.
- RetentionRules List<BackupPolicy Disk Retention Rule> 
- One or more retention_ruleblocks as defined below. Changing this forces a new Backup Policy Disk to be created.
- TimeZone string
- Specifies the Time Zone which should be used by the backup schedule. Changing this forces a new Backup Policy Disk to be created.
- BackupRepeating []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.
- DefaultRetention stringDuration 
- The duration of default retention rule. It should follow ISO 8601duration format. Changing this forces a new Backup Policy Disk to be created.
- VaultId 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.
- RetentionRules []BackupPolicy Disk Retention Rule Args 
- One or more retention_ruleblocks as defined below. Changing this forces a new Backup Policy Disk to be created.
- TimeZone string
- Specifies the Time Zone which should be used by the backup schedule. Changing this forces a new Backup Policy Disk to be created.
- backupRepeating 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.
- defaultRetention StringDuration 
- The duration of default retention rule. It should follow ISO 8601duration format. Changing this forces a new Backup Policy Disk to be created.
- vaultId 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.
- retentionRules List<BackupPolicy Disk Retention Rule> 
- One or more retention_ruleblocks as defined below. Changing this forces a new Backup Policy Disk to be created.
- timeZone String
- Specifies the Time Zone which should be used by the backup schedule. Changing this forces a new Backup Policy Disk to be created.
- backupRepeating 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.
- defaultRetention stringDuration 
- The duration of default retention rule. It should follow ISO 8601duration format. Changing this forces a new Backup Policy Disk to be created.
- vaultId 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.
- retentionRules BackupPolicy Disk Retention Rule[] 
- One or more retention_ruleblocks as defined below. Changing this forces a new Backup Policy Disk to be created.
- timeZone string
- Specifies the Time Zone which should be used by the backup schedule. 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.
- time_zone str
- Specifies the Time Zone which should be used by the backup schedule. Changing this forces a new Backup Policy Disk to be created.
- backupRepeating 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.
- defaultRetention StringDuration 
- The duration of default retention rule. It should follow ISO 8601duration format. Changing this forces a new Backup Policy Disk to be created.
- vaultId 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.
- retentionRules List<Property Map>
- One or more retention_ruleblocks as defined below. Changing this forces a new Backup Policy Disk to be created.
- timeZone String
- Specifies the Time Zone which should be used by the backup schedule. 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,
        time_zone: Optional[str] = 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.
- BackupRepeating 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.
- DefaultRetention 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.
- RetentionRules List<BackupPolicy Disk Retention Rule> 
- One or more retention_ruleblocks as defined below. Changing this forces a new Backup Policy Disk to be created.
- TimeZone string
- Specifies the Time Zone which should be used by the backup schedule. Changing this forces a new Backup Policy Disk to be created.
- VaultId 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.
- BackupRepeating []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.
- DefaultRetention 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.
- RetentionRules []BackupPolicy Disk Retention Rule Args 
- One or more retention_ruleblocks as defined below. Changing this forces a new Backup Policy Disk to be created.
- TimeZone string
- Specifies the Time Zone which should be used by the backup schedule. Changing this forces a new Backup Policy Disk to be created.
- VaultId 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.
- backupRepeating 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.
- defaultRetention 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.
- retentionRules List<BackupPolicy Disk Retention Rule> 
- One or more retention_ruleblocks as defined below. Changing this forces a new Backup Policy Disk to be created.
- timeZone String
- Specifies the Time Zone which should be used by the backup schedule. Changing this forces a new Backup Policy Disk to be created.
- vaultId 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.
- backupRepeating 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.
- defaultRetention 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.
- retentionRules BackupPolicy Disk Retention Rule[] 
- One or more retention_ruleblocks as defined below. Changing this forces a new Backup Policy Disk to be created.
- timeZone string
- Specifies the Time Zone which should be used by the backup schedule. Changing this forces a new Backup Policy Disk to be created.
- vaultId 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.
- time_zone str
- Specifies the Time Zone which should be used by the backup schedule. 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.
- backupRepeating 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.
- defaultRetention 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.
- retentionRules List<Property Map>
- One or more retention_ruleblocks as defined below. Changing this forces a new Backup Policy Disk to be created.
- timeZone String
- Specifies the Time Zone which should be used by the backup schedule. Changing this forces a new Backup Policy Disk to be created.
- vaultId 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
BackupPolicy 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
BackupPolicy 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
BackupPolicy 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
BackupPolicy 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
BackupPolicy 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            
- AbsoluteCriteria string
- Possible values are FirstOfDayandFirstOfWeek. Changing this forces a new Backup Policy Disk to be created.
- AbsoluteCriteria string
- Possible values are FirstOfDayandFirstOfWeek. Changing this forces a new Backup Policy Disk to be created.
- absoluteCriteria String
- Possible values are FirstOfDayandFirstOfWeek. Changing this forces a new Backup Policy Disk to be created.
- absoluteCriteria 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.
- absoluteCriteria 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.