1. Packages
  2. Azure Classic
  3. API Docs
  4. dataprotection
  5. BackupPolicyDisk

We recommend using Azure Native.

Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi

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",
            },
        },
    ],
});
Copy
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",
            },
        },
    ])
Copy
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
	})
}
Copy
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",
                },
            },
        },
    });

});
Copy
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());

    }
}
Copy
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
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. BackupPolicyDiskArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. BackupPolicyDiskArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. BackupPolicyDiskArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
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"),
})
Copy
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());
Copy
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")
Copy
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",
});
Copy
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
Copy

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:

BackupRepeatingTimeIntervals
This property is required.
Changes to this property will trigger replacement.
List<string>
Specifies a list of repeating time interval. It should follow ISO 8601 repeating time interval . Changing this forces a new Backup Policy Disk to be created.
DefaultRetentionDuration
This property is required.
Changes to this property will trigger replacement.
string
The duration of default retention rule. It should follow ISO 8601 duration format. Changing this forces a new Backup Policy Disk to be created.
VaultId
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. string
The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created.
RetentionRules Changes to this property will trigger replacement. List<BackupPolicyDiskRetentionRule>
One or more retention_rule blocks as defined below. Changing this forces a new Backup Policy Disk to be created.
TimeZone Changes to this property will trigger replacement. string
Specifies the Time Zone which should be used by the backup schedule. Changing this forces a new Backup Policy Disk to be created.
BackupRepeatingTimeIntervals
This property is required.
Changes to this property will trigger replacement.
[]string
Specifies a list of repeating time interval. It should follow ISO 8601 repeating time interval . Changing this forces a new Backup Policy Disk to be created.
DefaultRetentionDuration
This property is required.
Changes to this property will trigger replacement.
string
The duration of default retention rule. It should follow ISO 8601 duration format. Changing this forces a new Backup Policy Disk to be created.
VaultId
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. string
The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created.
RetentionRules Changes to this property will trigger replacement. []BackupPolicyDiskRetentionRuleArgs
One or more retention_rule blocks as defined below. Changing this forces a new Backup Policy Disk to be created.
TimeZone Changes to this property will trigger replacement. string
Specifies the Time Zone which should be used by the backup schedule. Changing this forces a new Backup Policy Disk to be created.
backupRepeatingTimeIntervals
This property is required.
Changes to this property will trigger replacement.
List<String>
Specifies a list of repeating time interval. It should follow ISO 8601 repeating time interval . Changing this forces a new Backup Policy Disk to be created.
defaultRetentionDuration
This property is required.
Changes to this property will trigger replacement.
String
The duration of default retention rule. It should follow ISO 8601 duration format. Changing this forces a new Backup Policy Disk to be created.
vaultId
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. String
The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created.
retentionRules Changes to this property will trigger replacement. List<BackupPolicyDiskRetentionRule>
One or more retention_rule blocks as defined below. Changing this forces a new Backup Policy Disk to be created.
timeZone Changes to this property will trigger replacement. String
Specifies the Time Zone which should be used by the backup schedule. Changing this forces a new Backup Policy Disk to be created.
backupRepeatingTimeIntervals
This property is required.
Changes to this property will trigger replacement.
string[]
Specifies a list of repeating time interval. It should follow ISO 8601 repeating time interval . Changing this forces a new Backup Policy Disk to be created.
defaultRetentionDuration
This property is required.
Changes to this property will trigger replacement.
string
The duration of default retention rule. It should follow ISO 8601 duration format. Changing this forces a new Backup Policy Disk to be created.
vaultId
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. string
The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created.
retentionRules Changes to this property will trigger replacement. BackupPolicyDiskRetentionRule[]
One or more retention_rule blocks as defined below. Changing this forces a new Backup Policy Disk to be created.
timeZone Changes to this property will trigger replacement. 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_time_intervals
This property is required.
Changes to this property will trigger replacement.
Sequence[str]
Specifies a list of repeating time interval. It should follow ISO 8601 repeating time interval . Changing this forces a new Backup Policy Disk to be created.
default_retention_duration
This property is required.
Changes to this property will trigger replacement.
str
The duration of default retention rule. It should follow ISO 8601 duration format. Changing this forces a new Backup Policy Disk to be created.
vault_id
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. Sequence[BackupPolicyDiskRetentionRuleArgs]
One or more retention_rule blocks as defined below. Changing this forces a new Backup Policy Disk to be created.
time_zone Changes to this property will trigger replacement. str
Specifies the Time Zone which should be used by the backup schedule. Changing this forces a new Backup Policy Disk to be created.
backupRepeatingTimeIntervals
This property is required.
Changes to this property will trigger replacement.
List<String>
Specifies a list of repeating time interval. It should follow ISO 8601 repeating time interval . Changing this forces a new Backup Policy Disk to be created.
defaultRetentionDuration
This property is required.
Changes to this property will trigger replacement.
String
The duration of default retention rule. It should follow ISO 8601 duration format. Changing this forces a new Backup Policy Disk to be created.
vaultId
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. String
The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created.
retentionRules Changes to this property will trigger replacement. List<Property Map>
One or more retention_rule blocks as defined below. Changing this forces a new Backup Policy Disk to be created.
timeZone Changes to this property will trigger replacement. 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) -> BackupPolicyDisk
func 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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
BackupRepeatingTimeIntervals Changes to this property will trigger replacement. List<string>
Specifies a list of repeating time interval. It should follow ISO 8601 repeating time interval . Changing this forces a new Backup Policy Disk to be created.
DefaultRetentionDuration Changes to this property will trigger replacement. string
The duration of default retention rule. It should follow ISO 8601 duration format. Changing this forces a new Backup Policy Disk to be created.
Name Changes to this property will trigger replacement. string
The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created.
RetentionRules Changes to this property will trigger replacement. List<BackupPolicyDiskRetentionRule>
One or more retention_rule blocks as defined below. Changing this forces a new Backup Policy Disk to be created.
TimeZone Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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.
BackupRepeatingTimeIntervals Changes to this property will trigger replacement. []string
Specifies a list of repeating time interval. It should follow ISO 8601 repeating time interval . Changing this forces a new Backup Policy Disk to be created.
DefaultRetentionDuration Changes to this property will trigger replacement. string
The duration of default retention rule. It should follow ISO 8601 duration format. Changing this forces a new Backup Policy Disk to be created.
Name Changes to this property will trigger replacement. string
The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created.
RetentionRules Changes to this property will trigger replacement. []BackupPolicyDiskRetentionRuleArgs
One or more retention_rule blocks as defined below. Changing this forces a new Backup Policy Disk to be created.
TimeZone Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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.
backupRepeatingTimeIntervals Changes to this property will trigger replacement. List<String>
Specifies a list of repeating time interval. It should follow ISO 8601 repeating time interval . Changing this forces a new Backup Policy Disk to be created.
defaultRetentionDuration Changes to this property will trigger replacement. String
The duration of default retention rule. It should follow ISO 8601 duration format. Changing this forces a new Backup Policy Disk to be created.
name Changes to this property will trigger replacement. String
The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created.
retentionRules Changes to this property will trigger replacement. List<BackupPolicyDiskRetentionRule>
One or more retention_rule blocks as defined below. Changing this forces a new Backup Policy Disk to be created.
timeZone Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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.
backupRepeatingTimeIntervals Changes to this property will trigger replacement. string[]
Specifies a list of repeating time interval. It should follow ISO 8601 repeating time interval . Changing this forces a new Backup Policy Disk to be created.
defaultRetentionDuration Changes to this property will trigger replacement. string
The duration of default retention rule. It should follow ISO 8601 duration format. Changing this forces a new Backup Policy Disk to be created.
name Changes to this property will trigger replacement. string
The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created.
retentionRules Changes to this property will trigger replacement. BackupPolicyDiskRetentionRule[]
One or more retention_rule blocks as defined below. Changing this forces a new Backup Policy Disk to be created.
timeZone Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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_time_intervals Changes to this property will trigger replacement. Sequence[str]
Specifies a list of repeating time interval. It should follow ISO 8601 repeating time interval . Changing this forces a new Backup Policy Disk to be created.
default_retention_duration Changes to this property will trigger replacement. str
The duration of default retention rule. It should follow ISO 8601 duration format. Changing this forces a new Backup Policy Disk to be created.
name Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. Sequence[BackupPolicyDiskRetentionRuleArgs]
One or more retention_rule blocks as defined below. Changing this forces a new Backup Policy Disk to be created.
time_zone Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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.
backupRepeatingTimeIntervals Changes to this property will trigger replacement. List<String>
Specifies a list of repeating time interval. It should follow ISO 8601 repeating time interval . Changing this forces a new Backup Policy Disk to be created.
defaultRetentionDuration Changes to this property will trigger replacement. String
The duration of default retention rule. It should follow ISO 8601 duration format. Changing this forces a new Backup Policy Disk to be created.
name Changes to this property will trigger replacement. String
The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created.
retentionRules Changes to this property will trigger replacement. List<Property Map>
One or more retention_rule blocks as defined below. Changing this forces a new Backup Policy Disk to be created.
timeZone Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
BackupPolicyDiskRetentionRuleCriteria
A criteria block as defined below. Changing this forces a new Backup Policy Disk to be created.
Duration
This property is required.
Changes to this property will trigger replacement.
string
Duration of deletion after given timespan. It should follow ISO 8601 duration format. Changing this forces a new Backup Policy Disk to be created.
Name
This property is required.
Changes to this property will trigger replacement.
string
The name which should be used for this retention rule. Changing this forces a new Backup Policy Disk to be created.
Priority
This property is required.
Changes to this property will trigger replacement.
int
Retention Tag priority. Changing this forces a new Backup Policy Disk to be created.
Criteria
This property is required.
Changes to this property will trigger replacement.
BackupPolicyDiskRetentionRuleCriteria
A criteria block as defined below. Changing this forces a new Backup Policy Disk to be created.
Duration
This property is required.
Changes to this property will trigger replacement.
string
Duration of deletion after given timespan. It should follow ISO 8601 duration format. Changing this forces a new Backup Policy Disk to be created.
Name
This property is required.
Changes to this property will trigger replacement.
string
The name which should be used for this retention rule. Changing this forces a new Backup Policy Disk to be created.
Priority
This property is required.
Changes to this property will trigger replacement.
int
Retention Tag priority. Changing this forces a new Backup Policy Disk to be created.
criteria
This property is required.
Changes to this property will trigger replacement.
BackupPolicyDiskRetentionRuleCriteria
A criteria block as defined below. Changing this forces a new Backup Policy Disk to be created.
duration
This property is required.
Changes to this property will trigger replacement.
String
Duration of deletion after given timespan. It should follow ISO 8601 duration format. Changing this forces a new Backup Policy Disk to be created.
name
This property is required.
Changes to this property will trigger replacement.
String
The name which should be used for this retention rule. Changing this forces a new Backup Policy Disk to be created.
priority
This property is required.
Changes to this property will trigger replacement.
Integer
Retention Tag priority. Changing this forces a new Backup Policy Disk to be created.
criteria
This property is required.
Changes to this property will trigger replacement.
BackupPolicyDiskRetentionRuleCriteria
A criteria block as defined below. Changing this forces a new Backup Policy Disk to be created.
duration
This property is required.
Changes to this property will trigger replacement.
string
Duration of deletion after given timespan. It should follow ISO 8601 duration format. Changing this forces a new Backup Policy Disk to be created.
name
This property is required.
Changes to this property will trigger replacement.
string
The name which should be used for this retention rule. Changing this forces a new Backup Policy Disk to be created.
priority
This property is required.
Changes to this property will trigger replacement.
number
Retention Tag priority. Changing this forces a new Backup Policy Disk to be created.
criteria
This property is required.
Changes to this property will trigger replacement.
BackupPolicyDiskRetentionRuleCriteria
A criteria block as defined below. Changing this forces a new Backup Policy Disk to be created.
duration
This property is required.
Changes to this property will trigger replacement.
str
Duration of deletion after given timespan. It should follow ISO 8601 duration format. Changing this forces a new Backup Policy Disk to be created.
name
This property is required.
Changes to this property will trigger replacement.
str
The name which should be used for this retention rule. Changing this forces a new Backup Policy Disk to be created.
priority
This property is required.
Changes to this property will trigger replacement.
int
Retention Tag priority. Changing this forces a new Backup Policy Disk to be created.
criteria
This property is required.
Changes to this property will trigger replacement.
Property Map
A criteria block as defined below. Changing this forces a new Backup Policy Disk to be created.
duration
This property is required.
Changes to this property will trigger replacement.
String
Duration of deletion after given timespan. It should follow ISO 8601 duration format. Changing this forces a new Backup Policy Disk to be created.
name
This property is required.
Changes to this property will trigger replacement.
String
The name which should be used for this retention rule. Changing this forces a new Backup Policy Disk to be created.
priority
This property is required.
Changes to this property will trigger replacement.
Number
Retention Tag priority. Changing this forces a new Backup Policy Disk to be created.

BackupPolicyDiskRetentionRuleCriteria
, BackupPolicyDiskRetentionRuleCriteriaArgs

AbsoluteCriteria Changes to this property will trigger replacement. string
Possible values are FirstOfDay and FirstOfWeek. Changing this forces a new Backup Policy Disk to be created.
AbsoluteCriteria Changes to this property will trigger replacement. string
Possible values are FirstOfDay and FirstOfWeek. Changing this forces a new Backup Policy Disk to be created.
absoluteCriteria Changes to this property will trigger replacement. String
Possible values are FirstOfDay and FirstOfWeek. Changing this forces a new Backup Policy Disk to be created.
absoluteCriteria Changes to this property will trigger replacement. string
Possible values are FirstOfDay and FirstOfWeek. Changing this forces a new Backup Policy Disk to be created.
absolute_criteria Changes to this property will trigger replacement. str
Possible values are FirstOfDay and FirstOfWeek. Changing this forces a new Backup Policy Disk to be created.
absoluteCriteria Changes to this property will trigger replacement. String
Possible values are FirstOfDay and FirstOfWeek. 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
Copy

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 azurerm Terraform Provider.