Azure Classic

Pulumi Official
Package maintained by Pulumi
v5.8.0 published on Friday, May 27, 2022 by Pulumi

BackupPolicyDisk

Manages a Backup Policy Disk.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
        {
            Location = "West Europe",
        });
        var exampleBackupVault = new Azure.DataProtection.BackupVault("exampleBackupVault", new Azure.DataProtection.BackupVaultArgs
        {
            ResourceGroupName = exampleResourceGroup.Name,
            Location = exampleResourceGroup.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/v5/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dataprotection"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleBackupVault, err := dataprotection.NewBackupVault(ctx, "exampleBackupVault", &dataprotection.BackupVaultArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleResourceGroup.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
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()        
            .location("West Europe")
            .build());

        var exampleBackupVault = new BackupVault("exampleBackupVault", BackupVaultArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .datastoreType("VaultStore")
            .redundancy("LocallyRedundant")
            .build());

        var exampleBackupPolicyDisk = new BackupPolicyDisk("exampleBackupPolicyDisk", BackupPolicyDiskArgs.builder()        
            .vaultId(exampleBackupVault.id())
            .backupRepeatingTimeIntervals("R/2021-05-19T06:33:16+00:00/PT4H")
            .defaultRetentionDuration("P7D")
            .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());

    }
}
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_backup_vault = azure.dataprotection.BackupVault("exampleBackupVault",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.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",
            ),
        ),
    ])
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleBackupVault = new azure.dataprotection.BackupVault("exampleBackupVault", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.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",
            },
        },
    ],
});
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    properties:
      location: West Europe
  exampleBackupVault:
    type: azure:dataprotection:BackupVault
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      datastoreType: VaultStore
      redundancy: LocallyRedundant
  exampleBackupPolicyDisk:
    type: azure:dataprotection:BackupPolicyDisk
    properties:
      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

Create a BackupPolicyDisk Resource

new BackupPolicyDisk(name: string, args: BackupPolicyDiskArgs, opts?: CustomResourceOptions);
@overload
def BackupPolicyDisk(resource_name: 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)
@overload
def BackupPolicyDisk(resource_name: str,
                     args: BackupPolicyDiskArgs,
                     opts: Optional[ResourceOptions] = 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.

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.

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

The BackupPolicyDisk resource accepts the following input properties:

BackupRepeatingTimeIntervals 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 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 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<BackupPolicyDiskRetentionRuleArgs>

One or more retention_rule blocks as defined below. Changing this forces a new Backup Policy Disk to be created.

BackupRepeatingTimeIntervals []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 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 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 []BackupPolicyDiskRetentionRuleArgs

One or more retention_rule blocks as defined below. Changing this forces a new Backup Policy Disk to be created.

backupRepeatingTimeIntervals 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 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 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<BackupPolicyDiskRetentionRuleArgs>

One or more retention_rule blocks as defined below. Changing this forces a new Backup Policy Disk to be created.

backupRepeatingTimeIntervals 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 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 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 BackupPolicyDiskRetentionRuleArgs[]

One or more retention_rule blocks as defined below. Changing this forces a new Backup Policy Disk to be created.

backup_repeating_time_intervals 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 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 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[BackupPolicyDiskRetentionRuleArgs]

One or more retention_rule blocks as defined below. Changing this forces a new Backup Policy Disk to be created.

backupRepeatingTimeIntervals 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 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 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_rule blocks 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 an 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) -> 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)
Resource lookup is not supported in YAML
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.
The following state arguments are supported:
BackupRepeatingTimeIntervals 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 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 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<BackupPolicyDiskRetentionRuleArgs>

One or more retention_rule blocks as defined below. 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.

BackupRepeatingTimeIntervals []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 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 string

The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created.

RetentionRules []BackupPolicyDiskRetentionRuleArgs

One or more retention_rule blocks as defined below. 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.

backupRepeatingTimeIntervals 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 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 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<BackupPolicyDiskRetentionRuleArgs>

One or more retention_rule blocks as defined below. 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.

backupRepeatingTimeIntervals 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 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 string

The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created.

retentionRules BackupPolicyDiskRetentionRuleArgs[]

One or more retention_rule blocks as defined below. 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_time_intervals 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 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 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[BackupPolicyDiskRetentionRuleArgs]

One or more retention_rule blocks 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.

backupRepeatingTimeIntervals 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 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 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_rule blocks as defined below. 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

Criteria BackupPolicyDiskRetentionRuleCriteria

A criteria block 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 8601 duration 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 BackupPolicyDiskRetentionRuleCriteria

A criteria block 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 8601 duration 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 BackupPolicyDiskRetentionRuleCriteria

A criteria block 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 8601 duration 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 BackupPolicyDiskRetentionRuleCriteria

A criteria block 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 8601 duration 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 BackupPolicyDiskRetentionRuleCriteria

A criteria block 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 8601 duration 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 criteria block 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 8601 duration 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

AbsoluteCriteria string

Possible values are FirstOfDay and FirstOfWeek. Changing this forces a new Backup Policy Disk to be created.

AbsoluteCriteria string

Possible values are FirstOfDay and FirstOfWeek. Changing this forces a new Backup Policy Disk to be created.

absoluteCriteria String

Possible values are FirstOfDay and FirstOfWeek. Changing this forces a new Backup Policy Disk to be created.

absoluteCriteria string

Possible values are FirstOfDay and FirstOfWeek. Changing this forces a new Backup Policy Disk to be created.

absolute_criteria str

Possible values are FirstOfDay and FirstOfWeek. Changing this forces a new Backup Policy Disk to be created.

absoluteCriteria 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

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.