1. Packages
  2. Azure Native v2
  3. API Docs
  4. dataprotection
  5. BackupPolicy
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.dataprotection.BackupPolicy

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

BaseBackupPolicy resource Azure REST API version: 2023-01-01. Prior API version in Azure Native 1.x: 2021-01-01.

Other available API versions: 2023-04-01-preview, 2023-05-01, 2023-06-01-preview, 2023-08-01-preview, 2023-11-01, 2023-12-01, 2024-02-01-preview, 2024-03-01, 2024-04-01.

Example Usage

CreateOrUpdate BackupPolicy

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var backupPolicy = new AzureNative.DataProtection.BackupPolicy("backupPolicy", new()
    {
        BackupPolicyName = "OSSDBPolicy",
        Properties = new AzureNative.DataProtection.Inputs.BackupPolicyArgs
        {
            DatasourceTypes = new[]
            {
                "OssDB",
            },
            ObjectType = "BackupPolicy",
            PolicyRules = 
            {
                new AzureNative.DataProtection.Inputs.AzureBackupRuleArgs
                {
                    BackupParameters = new AzureNative.DataProtection.Inputs.AzureBackupParamsArgs
                    {
                        BackupType = "Full",
                        ObjectType = "AzureBackupParams",
                    },
                    DataStore = new AzureNative.DataProtection.Inputs.DataStoreInfoBaseArgs
                    {
                        DataStoreType = AzureNative.DataProtection.DataStoreTypes.VaultStore,
                        ObjectType = "DataStoreInfoBase",
                    },
                    Name = "BackupWeekly",
                    ObjectType = "AzureBackupRule",
                    Trigger = new AzureNative.DataProtection.Inputs.ScheduleBasedTriggerContextArgs
                    {
                        ObjectType = "ScheduleBasedTriggerContext",
                        Schedule = new AzureNative.DataProtection.Inputs.BackupScheduleArgs
                        {
                            RepeatingTimeIntervals = new[]
                            {
                                "R/2019-11-20T08:00:00-08:00/P1W",
                            },
                        },
                        TaggingCriteria = new[]
                        {
                            new AzureNative.DataProtection.Inputs.TaggingCriteriaArgs
                            {
                                IsDefault = true,
                                TagInfo = new AzureNative.DataProtection.Inputs.RetentionTagArgs
                                {
                                    TagName = "Default",
                                },
                                TaggingPriority = 99,
                            },
                            new AzureNative.DataProtection.Inputs.TaggingCriteriaArgs
                            {
                                Criteria = new[]
                                {
                                    new AzureNative.DataProtection.Inputs.ScheduleBasedBackupCriteriaArgs
                                    {
                                        DaysOfTheWeek = new[]
                                        {
                                            AzureNative.DataProtection.DayOfWeek.Sunday,
                                        },
                                        ObjectType = "ScheduleBasedBackupCriteria",
                                        ScheduleTimes = new[]
                                        {
                                            "2019-03-01T13:00:00Z",
                                        },
                                    },
                                },
                                IsDefault = false,
                                TagInfo = new AzureNative.DataProtection.Inputs.RetentionTagArgs
                                {
                                    TagName = "Weekly",
                                },
                                TaggingPriority = 20,
                            },
                        },
                    },
                },
                new AzureNative.DataProtection.Inputs.AzureRetentionRuleArgs
                {
                    IsDefault = true,
                    Lifecycles = new[]
                    {
                        new AzureNative.DataProtection.Inputs.SourceLifeCycleArgs
                        {
                            DeleteAfter = new AzureNative.DataProtection.Inputs.AbsoluteDeleteOptionArgs
                            {
                                Duration = "P1W",
                                ObjectType = "AbsoluteDeleteOption",
                            },
                            SourceDataStore = new AzureNative.DataProtection.Inputs.DataStoreInfoBaseArgs
                            {
                                DataStoreType = AzureNative.DataProtection.DataStoreTypes.VaultStore,
                                ObjectType = "DataStoreInfoBase",
                            },
                        },
                    },
                    Name = "Default",
                    ObjectType = "AzureRetentionRule",
                },
                new AzureNative.DataProtection.Inputs.AzureRetentionRuleArgs
                {
                    IsDefault = false,
                    Lifecycles = new[]
                    {
                        new AzureNative.DataProtection.Inputs.SourceLifeCycleArgs
                        {
                            DeleteAfter = new AzureNative.DataProtection.Inputs.AbsoluteDeleteOptionArgs
                            {
                                Duration = "P12W",
                                ObjectType = "AbsoluteDeleteOption",
                            },
                            SourceDataStore = new AzureNative.DataProtection.Inputs.DataStoreInfoBaseArgs
                            {
                                DataStoreType = AzureNative.DataProtection.DataStoreTypes.VaultStore,
                                ObjectType = "DataStoreInfoBase",
                            },
                        },
                    },
                    Name = "Weekly",
                    ObjectType = "AzureRetentionRule",
                },
            },
        },
        ResourceGroupName = "000pikumar",
        VaultName = "PrivatePreviewVault",
    });

});
Copy
package main

import (
	dataprotection "github.com/pulumi/pulumi-azure-native-sdk/dataprotection/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dataprotection.NewBackupPolicy(ctx, "backupPolicy", &dataprotection.BackupPolicyArgs{
			BackupPolicyName: pulumi.String("OSSDBPolicy"),
			Properties: &dataprotection.BackupPolicyTypeArgs{
				DatasourceTypes: pulumi.StringArray{
					pulumi.String("OssDB"),
				},
				ObjectType: pulumi.String("BackupPolicy"),
				PolicyRules: pulumi.Array{
					dataprotection.AzureBackupRule{
						BackupParameters: dataprotection.AzureBackupParams{
							BackupType: "Full",
							ObjectType: "AzureBackupParams",
						},
						DataStore: dataprotection.DataStoreInfoBase{
							DataStoreType: dataprotection.DataStoreTypesVaultStore,
							ObjectType:    "DataStoreInfoBase",
						},
						Name:       "BackupWeekly",
						ObjectType: "AzureBackupRule",
						Trigger: dataprotection.ScheduleBasedTriggerContext{
							ObjectType: "ScheduleBasedTriggerContext",
							Schedule: dataprotection.BackupSchedule{
								RepeatingTimeIntervals: []string{
									"R/2019-11-20T08:00:00-08:00/P1W",
								},
							},
							TaggingCriteria: []dataprotection.TaggingCriteria{
								{
									IsDefault: true,
									TagInfo: {
										TagName: "Default",
									},
									TaggingPriority: 99,
								},
								{
									Criteria: []dataprotection.ScheduleBasedBackupCriteria{
										{
											DaysOfTheWeek: []dataprotection.DayOfWeek{
												dataprotection.DayOfWeekSunday,
											},
											ObjectType: "ScheduleBasedBackupCriteria",
											ScheduleTimes: []string{
												"2019-03-01T13:00:00Z",
											},
										},
									},
									IsDefault: false,
									TagInfo: {
										TagName: "Weekly",
									},
									TaggingPriority: 20,
								},
							},
						},
					},
					dataprotection.AzureRetentionRule{
						IsDefault: true,
						Lifecycles: []dataprotection.SourceLifeCycle{
							{
								DeleteAfter: {
									Duration:   "P1W",
									ObjectType: "AbsoluteDeleteOption",
								},
								SourceDataStore: {
									DataStoreType: dataprotection.DataStoreTypesVaultStore,
									ObjectType:    "DataStoreInfoBase",
								},
							},
						},
						Name:       "Default",
						ObjectType: "AzureRetentionRule",
					},
					dataprotection.AzureRetentionRule{
						IsDefault: false,
						Lifecycles: []dataprotection.SourceLifeCycle{
							{
								DeleteAfter: {
									Duration:   "P12W",
									ObjectType: "AbsoluteDeleteOption",
								},
								SourceDataStore: {
									DataStoreType: dataprotection.DataStoreTypesVaultStore,
									ObjectType:    "DataStoreInfoBase",
								},
							},
						},
						Name:       "Weekly",
						ObjectType: "AzureRetentionRule",
					},
				},
			},
			ResourceGroupName: pulumi.String("000pikumar"),
			VaultName:         pulumi.String("PrivatePreviewVault"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.dataprotection.BackupPolicy;
import com.pulumi.azurenative.dataprotection.BackupPolicyArgs;
import com.pulumi.azurenative.dataprotection.inputs.BackupPolicyArgs;
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 backupPolicy = new BackupPolicy("backupPolicy", BackupPolicyArgs.builder()
            .backupPolicyName("OSSDBPolicy")
            .properties(BackupPolicyArgs.builder()
                .datasourceTypes("OssDB")
                .objectType("BackupPolicy")
                .policyRules(                
                    AzureBackupRuleArgs.builder()
                        .backupParameters(AzureBackupParamsArgs.builder()
                            .backupType("Full")
                            .objectType("AzureBackupParams")
                            .build())
                        .dataStore(DataStoreInfoBaseArgs.builder()
                            .dataStoreType("VaultStore")
                            .objectType("DataStoreInfoBase")
                            .build())
                        .name("BackupWeekly")
                        .objectType("AzureBackupRule")
                        .trigger(ScheduleBasedTriggerContextArgs.builder()
                            .objectType("ScheduleBasedTriggerContext")
                            .schedule(BackupScheduleArgs.builder()
                                .repeatingTimeIntervals("R/2019-11-20T08:00:00-08:00/P1W")
                                .build())
                            .taggingCriteria(                            
                                TaggingCriteriaArgs.builder()
                                    .isDefault(true)
                                    .tagInfo(RetentionTagArgs.builder()
                                        .tagName("Default")
                                        .build())
                                    .taggingPriority(99)
                                    .build(),
                                TaggingCriteriaArgs.builder()
                                    .criteria(ScheduleBasedBackupCriteriaArgs.builder()
                                        .daysOfTheWeek("Sunday")
                                        .objectType("ScheduleBasedBackupCriteria")
                                        .scheduleTimes("2019-03-01T13:00:00Z")
                                        .build())
                                    .isDefault(false)
                                    .tagInfo(RetentionTagArgs.builder()
                                        .tagName("Weekly")
                                        .build())
                                    .taggingPriority(20)
                                    .build())
                            .build())
                        .build(),
                    AzureRetentionRuleArgs.builder()
                        .isDefault(true)
                        .lifecycles(SourceLifeCycleArgs.builder()
                            .deleteAfter(AbsoluteDeleteOptionArgs.builder()
                                .duration("P1W")
                                .objectType("AbsoluteDeleteOption")
                                .build())
                            .sourceDataStore(DataStoreInfoBaseArgs.builder()
                                .dataStoreType("VaultStore")
                                .objectType("DataStoreInfoBase")
                                .build())
                            .build())
                        .name("Default")
                        .objectType("AzureRetentionRule")
                        .build(),
                    AzureRetentionRuleArgs.builder()
                        .isDefault(false)
                        .lifecycles(SourceLifeCycleArgs.builder()
                            .deleteAfter(AbsoluteDeleteOptionArgs.builder()
                                .duration("P12W")
                                .objectType("AbsoluteDeleteOption")
                                .build())
                            .sourceDataStore(DataStoreInfoBaseArgs.builder()
                                .dataStoreType("VaultStore")
                                .objectType("DataStoreInfoBase")
                                .build())
                            .build())
                        .name("Weekly")
                        .objectType("AzureRetentionRule")
                        .build())
                .build())
            .resourceGroupName("000pikumar")
            .vaultName("PrivatePreviewVault")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const backupPolicy = new azure_native.dataprotection.BackupPolicy("backupPolicy", {
    backupPolicyName: "OSSDBPolicy",
    properties: {
        datasourceTypes: ["OssDB"],
        objectType: "BackupPolicy",
        policyRules: [
            {
                backupParameters: {
                    backupType: "Full",
                    objectType: "AzureBackupParams",
                },
                dataStore: {
                    dataStoreType: azure_native.dataprotection.DataStoreTypes.VaultStore,
                    objectType: "DataStoreInfoBase",
                },
                name: "BackupWeekly",
                objectType: "AzureBackupRule",
                trigger: {
                    objectType: "ScheduleBasedTriggerContext",
                    schedule: {
                        repeatingTimeIntervals: ["R/2019-11-20T08:00:00-08:00/P1W"],
                    },
                    taggingCriteria: [
                        {
                            isDefault: true,
                            tagInfo: {
                                tagName: "Default",
                            },
                            taggingPriority: 99,
                        },
                        {
                            criteria: [{
                                daysOfTheWeek: [azure_native.dataprotection.DayOfWeek.Sunday],
                                objectType: "ScheduleBasedBackupCriteria",
                                scheduleTimes: ["2019-03-01T13:00:00Z"],
                            }],
                            isDefault: false,
                            tagInfo: {
                                tagName: "Weekly",
                            },
                            taggingPriority: 20,
                        },
                    ],
                },
            },
            {
                isDefault: true,
                lifecycles: [{
                    deleteAfter: {
                        duration: "P1W",
                        objectType: "AbsoluteDeleteOption",
                    },
                    sourceDataStore: {
                        dataStoreType: azure_native.dataprotection.DataStoreTypes.VaultStore,
                        objectType: "DataStoreInfoBase",
                    },
                }],
                name: "Default",
                objectType: "AzureRetentionRule",
            },
            {
                isDefault: false,
                lifecycles: [{
                    deleteAfter: {
                        duration: "P12W",
                        objectType: "AbsoluteDeleteOption",
                    },
                    sourceDataStore: {
                        dataStoreType: azure_native.dataprotection.DataStoreTypes.VaultStore,
                        objectType: "DataStoreInfoBase",
                    },
                }],
                name: "Weekly",
                objectType: "AzureRetentionRule",
            },
        ],
    },
    resourceGroupName: "000pikumar",
    vaultName: "PrivatePreviewVault",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

backup_policy = azure_native.dataprotection.BackupPolicy("backupPolicy",
    backup_policy_name="OSSDBPolicy",
    properties={
        "datasource_types": ["OssDB"],
        "object_type": "BackupPolicy",
        "policy_rules": [
            {
                "backup_parameters": {
                    "backup_type": "Full",
                    "object_type": "AzureBackupParams",
                },
                "data_store": {
                    "data_store_type": azure_native.dataprotection.DataStoreTypes.VAULT_STORE,
                    "object_type": "DataStoreInfoBase",
                },
                "name": "BackupWeekly",
                "object_type": "AzureBackupRule",
                "trigger": {
                    "object_type": "ScheduleBasedTriggerContext",
                    "schedule": {
                        "repeating_time_intervals": ["R/2019-11-20T08:00:00-08:00/P1W"],
                    },
                    "tagging_criteria": [
                        {
                            "is_default": True,
                            "tag_info": {
                                "tag_name": "Default",
                            },
                            "tagging_priority": 99,
                        },
                        {
                            "criteria": [{
                                "days_of_the_week": [azure_native.dataprotection.DayOfWeek.SUNDAY],
                                "object_type": "ScheduleBasedBackupCriteria",
                                "schedule_times": ["2019-03-01T13:00:00Z"],
                            }],
                            "is_default": False,
                            "tag_info": {
                                "tag_name": "Weekly",
                            },
                            "tagging_priority": 20,
                        },
                    ],
                },
            },
            {
                "is_default": True,
                "lifecycles": [{
                    "delete_after": {
                        "duration": "P1W",
                        "object_type": "AbsoluteDeleteOption",
                    },
                    "source_data_store": {
                        "data_store_type": azure_native.dataprotection.DataStoreTypes.VAULT_STORE,
                        "object_type": "DataStoreInfoBase",
                    },
                }],
                "name": "Default",
                "object_type": "AzureRetentionRule",
            },
            {
                "is_default": False,
                "lifecycles": [{
                    "delete_after": {
                        "duration": "P12W",
                        "object_type": "AbsoluteDeleteOption",
                    },
                    "source_data_store": {
                        "data_store_type": azure_native.dataprotection.DataStoreTypes.VAULT_STORE,
                        "object_type": "DataStoreInfoBase",
                    },
                }],
                "name": "Weekly",
                "object_type": "AzureRetentionRule",
            },
        ],
    },
    resource_group_name="000pikumar",
    vault_name="PrivatePreviewVault")
Copy
resources:
  backupPolicy:
    type: azure-native:dataprotection:BackupPolicy
    properties:
      backupPolicyName: OSSDBPolicy
      properties:
        datasourceTypes:
          - OssDB
        objectType: BackupPolicy
        policyRules:
          - backupParameters:
              backupType: Full
              objectType: AzureBackupParams
            dataStore:
              dataStoreType: VaultStore
              objectType: DataStoreInfoBase
            name: BackupWeekly
            objectType: AzureBackupRule
            trigger:
              objectType: ScheduleBasedTriggerContext
              schedule:
                repeatingTimeIntervals:
                  - R/2019-11-20T08:00:00-08:00/P1W
              taggingCriteria:
                - isDefault: true
                  tagInfo:
                    tagName: Default
                  taggingPriority: 99
                - criteria:
                    - daysOfTheWeek:
                        - Sunday
                      objectType: ScheduleBasedBackupCriteria
                      scheduleTimes:
                        - 2019-03-01T13:00:00Z
                  isDefault: false
                  tagInfo:
                    tagName: Weekly
                  taggingPriority: 20
          - isDefault: true
            lifecycles:
              - deleteAfter:
                  duration: P1W
                  objectType: AbsoluteDeleteOption
                sourceDataStore:
                  dataStoreType: VaultStore
                  objectType: DataStoreInfoBase
            name: Default
            objectType: AzureRetentionRule
          - isDefault: false
            lifecycles:
              - deleteAfter:
                  duration: P12W
                  objectType: AbsoluteDeleteOption
                sourceDataStore:
                  dataStoreType: VaultStore
                  objectType: DataStoreInfoBase
            name: Weekly
            objectType: AzureRetentionRule
      resourceGroupName: 000pikumar
      vaultName: PrivatePreviewVault
Copy

Create BackupPolicy Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new BackupPolicy(name: string, args: BackupPolicyArgs, opts?: CustomResourceOptions);
@overload
def BackupPolicy(resource_name: str,
                 args: BackupPolicyInitArgs,
                 opts: Optional[ResourceOptions] = None)

@overload
def BackupPolicy(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 resource_group_name: Optional[str] = None,
                 vault_name: Optional[str] = None,
                 backup_policy_name: Optional[str] = None,
                 properties: Optional[BackupPolicyArgs] = None)
func NewBackupPolicy(ctx *Context, name string, args BackupPolicyArgs, opts ...ResourceOption) (*BackupPolicy, error)
public BackupPolicy(string name, BackupPolicyArgs args, CustomResourceOptions? opts = null)
public BackupPolicy(String name, BackupPolicyArgs args)
public BackupPolicy(String name, BackupPolicyArgs args, CustomResourceOptions options)
type: azure-native:dataprotection:BackupPolicy
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. BackupPolicyArgs
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. BackupPolicyInitArgs
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. BackupPolicyArgs
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. BackupPolicyArgs
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. BackupPolicyArgs
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 backupPolicyResource = new AzureNative.Dataprotection.BackupPolicy("backupPolicyResource", new()
{
    ResourceGroupName = "string",
    VaultName = "string",
    BackupPolicyName = "string",
    Properties = 
    {
        { "datasourceTypes", new[]
        {
            "string",
        } },
        { "objectType", "BackupPolicy" },
        { "policyRules", new[]
        {
            
            {
                { "dataStore", 
                {
                    { "dataStoreType", "string" },
                    { "objectType", "string" },
                } },
                { "name", "string" },
                { "objectType", "AzureBackupRule" },
                { "trigger", 
                {
                    { "objectType", "AdhocBasedTriggerContext" },
                    { "taggingCriteria", 
                    {
                        { "tagInfo", 
                        {
                            { "tagName", "string" },
                        } },
                    } },
                } },
                { "backupParameters", 
                {
                    { "backupType", "string" },
                    { "objectType", "AzureBackupParams" },
                } },
            },
        } },
    },
});
Copy
example, err := dataprotection.NewBackupPolicy(ctx, "backupPolicyResource", &dataprotection.BackupPolicyArgs{
	ResourceGroupName: "string",
	VaultName:         "string",
	BackupPolicyName:  "string",
	Properties: map[string]interface{}{
		"datasourceTypes": []string{
			"string",
		},
		"objectType": "BackupPolicy",
		"policyRules": []map[string]interface{}{
			map[string]interface{}{
				"dataStore": map[string]interface{}{
					"dataStoreType": "string",
					"objectType":    "string",
				},
				"name":       "string",
				"objectType": "AzureBackupRule",
				"trigger": map[string]interface{}{
					"objectType": "AdhocBasedTriggerContext",
					"taggingCriteria": map[string]interface{}{
						"tagInfo": map[string]interface{}{
							"tagName": "string",
						},
					},
				},
				"backupParameters": map[string]interface{}{
					"backupType": "string",
					"objectType": "AzureBackupParams",
				},
			},
		},
	},
})
Copy
var backupPolicyResource = new BackupPolicy("backupPolicyResource", BackupPolicyArgs.builder()
    .resourceGroupName("string")
    .vaultName("string")
    .backupPolicyName("string")
    .properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .build());
Copy
backup_policy_resource = azure_native.dataprotection.BackupPolicy("backupPolicyResource",
    resource_group_name=string,
    vault_name=string,
    backup_policy_name=string,
    properties={
        datasourceTypes: [string],
        objectType: BackupPolicy,
        policyRules: [{
            dataStore: {
                dataStoreType: string,
                objectType: string,
            },
            name: string,
            objectType: AzureBackupRule,
            trigger: {
                objectType: AdhocBasedTriggerContext,
                taggingCriteria: {
                    tagInfo: {
                        tagName: string,
                    },
                },
            },
            backupParameters: {
                backupType: string,
                objectType: AzureBackupParams,
            },
        }],
    })
Copy
const backupPolicyResource = new azure_native.dataprotection.BackupPolicy("backupPolicyResource", {
    resourceGroupName: "string",
    vaultName: "string",
    backupPolicyName: "string",
    properties: {
        datasourceTypes: ["string"],
        objectType: "BackupPolicy",
        policyRules: [{
            dataStore: {
                dataStoreType: "string",
                objectType: "string",
            },
            name: "string",
            objectType: "AzureBackupRule",
            trigger: {
                objectType: "AdhocBasedTriggerContext",
                taggingCriteria: {
                    tagInfo: {
                        tagName: "string",
                    },
                },
            },
            backupParameters: {
                backupType: "string",
                objectType: "AzureBackupParams",
            },
        }],
    },
});
Copy
type: azure-native:dataprotection:BackupPolicy
properties:
    backupPolicyName: string
    properties:
        datasourceTypes:
            - string
        objectType: BackupPolicy
        policyRules:
            - backupParameters:
                backupType: string
                objectType: AzureBackupParams
              dataStore:
                dataStoreType: string
                objectType: string
              name: string
              objectType: AzureBackupRule
              trigger:
                objectType: AdhocBasedTriggerContext
                taggingCriteria:
                    tagInfo:
                        tagName: string
    resourceGroupName: string
    vaultName: string
Copy

BackupPolicy 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 BackupPolicy resource accepts the following input properties:

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
VaultName
This property is required.
Changes to this property will trigger replacement.
string
The name of the backup vault.
BackupPolicyName Changes to this property will trigger replacement. string
Name of the policy
Properties Pulumi.AzureNative.DataProtection.Inputs.BackupPolicy
BaseBackupPolicyResource properties
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
VaultName
This property is required.
Changes to this property will trigger replacement.
string
The name of the backup vault.
BackupPolicyName Changes to this property will trigger replacement. string
Name of the policy
Properties BackupPolicyTypeArgs
BaseBackupPolicyResource properties
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
vaultName
This property is required.
Changes to this property will trigger replacement.
String
The name of the backup vault.
backupPolicyName Changes to this property will trigger replacement. String
Name of the policy
properties BackupPolicy
BaseBackupPolicyResource properties
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
vaultName
This property is required.
Changes to this property will trigger replacement.
string
The name of the backup vault.
backupPolicyName Changes to this property will trigger replacement. string
Name of the policy
properties BackupPolicy
BaseBackupPolicyResource properties
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
vault_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the backup vault.
backup_policy_name Changes to this property will trigger replacement. str
Name of the policy
properties BackupPolicyArgs
BaseBackupPolicyResource properties
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
vaultName
This property is required.
Changes to this property will trigger replacement.
String
The name of the backup vault.
backupPolicyName Changes to this property will trigger replacement. String
Name of the policy
properties Property Map
BaseBackupPolicyResource properties

Outputs

All input properties are implicitly available as output properties. Additionally, the BackupPolicy resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Name string
Resource name associated with the resource.
SystemData Pulumi.AzureNative.DataProtection.Outputs.SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
Type string
Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
Id string
The provider-assigned unique ID for this managed resource.
Name string
Resource name associated with the resource.
SystemData SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
Type string
Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
id String
The provider-assigned unique ID for this managed resource.
name String
Resource name associated with the resource.
systemData SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
type String
Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
id string
The provider-assigned unique ID for this managed resource.
name string
Resource name associated with the resource.
systemData SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
type string
Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
id str
The provider-assigned unique ID for this managed resource.
name str
Resource name associated with the resource.
system_data SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
type str
Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
id String
The provider-assigned unique ID for this managed resource.
name String
Resource name associated with the resource.
systemData Property Map
Metadata pertaining to creation and last modification of the resource.
type String
Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...

Supporting Types

AbsoluteDeleteOption
, AbsoluteDeleteOptionArgs

Duration This property is required. string
Duration of deletion after given timespan
Duration This property is required. string
Duration of deletion after given timespan
duration This property is required. String
Duration of deletion after given timespan
duration This property is required. string
Duration of deletion after given timespan
duration This property is required. str
Duration of deletion after given timespan
duration This property is required. String
Duration of deletion after given timespan

AbsoluteDeleteOptionResponse
, AbsoluteDeleteOptionResponseArgs

Duration This property is required. string
Duration of deletion after given timespan
Duration This property is required. string
Duration of deletion after given timespan
duration This property is required. String
Duration of deletion after given timespan
duration This property is required. string
Duration of deletion after given timespan
duration This property is required. str
Duration of deletion after given timespan
duration This property is required. String
Duration of deletion after given timespan

AbsoluteMarker
, AbsoluteMarkerArgs

AllBackup
AllBackup
FirstOfDay
FirstOfDay
FirstOfMonth
FirstOfMonth
FirstOfWeek
FirstOfWeek
FirstOfYear
FirstOfYear
AbsoluteMarkerAllBackup
AllBackup
AbsoluteMarkerFirstOfDay
FirstOfDay
AbsoluteMarkerFirstOfMonth
FirstOfMonth
AbsoluteMarkerFirstOfWeek
FirstOfWeek
AbsoluteMarkerFirstOfYear
FirstOfYear
AllBackup
AllBackup
FirstOfDay
FirstOfDay
FirstOfMonth
FirstOfMonth
FirstOfWeek
FirstOfWeek
FirstOfYear
FirstOfYear
AllBackup
AllBackup
FirstOfDay
FirstOfDay
FirstOfMonth
FirstOfMonth
FirstOfWeek
FirstOfWeek
FirstOfYear
FirstOfYear
ALL_BACKUP
AllBackup
FIRST_OF_DAY
FirstOfDay
FIRST_OF_MONTH
FirstOfMonth
FIRST_OF_WEEK
FirstOfWeek
FIRST_OF_YEAR
FirstOfYear
"AllBackup"
AllBackup
"FirstOfDay"
FirstOfDay
"FirstOfMonth"
FirstOfMonth
"FirstOfWeek"
FirstOfWeek
"FirstOfYear"
FirstOfYear

AdhocBasedTaggingCriteria
, AdhocBasedTaggingCriteriaArgs

TagInfo RetentionTag
Retention tag information
tagInfo RetentionTag
Retention tag information
tagInfo RetentionTag
Retention tag information
tag_info RetentionTag
Retention tag information
tagInfo Property Map
Retention tag information

AdhocBasedTaggingCriteriaResponse
, AdhocBasedTaggingCriteriaResponseArgs

TagInfo RetentionTagResponse
Retention tag information
tagInfo RetentionTagResponse
Retention tag information
tagInfo RetentionTagResponse
Retention tag information
tag_info RetentionTagResponse
Retention tag information
tagInfo Property Map
Retention tag information

AdhocBasedTriggerContext
, AdhocBasedTriggerContextArgs

TaggingCriteria This property is required. Pulumi.AzureNative.DataProtection.Inputs.AdhocBasedTaggingCriteria
Tagging Criteria containing retention tag for adhoc backup.
TaggingCriteria This property is required. AdhocBasedTaggingCriteria
Tagging Criteria containing retention tag for adhoc backup.
taggingCriteria This property is required. AdhocBasedTaggingCriteria
Tagging Criteria containing retention tag for adhoc backup.
taggingCriteria This property is required. AdhocBasedTaggingCriteria
Tagging Criteria containing retention tag for adhoc backup.
tagging_criteria This property is required. AdhocBasedTaggingCriteria
Tagging Criteria containing retention tag for adhoc backup.
taggingCriteria This property is required. Property Map
Tagging Criteria containing retention tag for adhoc backup.

AdhocBasedTriggerContextResponse
, AdhocBasedTriggerContextResponseArgs

TaggingCriteria This property is required. Pulumi.AzureNative.DataProtection.Inputs.AdhocBasedTaggingCriteriaResponse
Tagging Criteria containing retention tag for adhoc backup.
TaggingCriteria This property is required. AdhocBasedTaggingCriteriaResponse
Tagging Criteria containing retention tag for adhoc backup.
taggingCriteria This property is required. AdhocBasedTaggingCriteriaResponse
Tagging Criteria containing retention tag for adhoc backup.
taggingCriteria This property is required. AdhocBasedTaggingCriteriaResponse
Tagging Criteria containing retention tag for adhoc backup.
tagging_criteria This property is required. AdhocBasedTaggingCriteriaResponse
Tagging Criteria containing retention tag for adhoc backup.
taggingCriteria This property is required. Property Map
Tagging Criteria containing retention tag for adhoc backup.

AzureBackupParams
, AzureBackupParamsArgs

BackupType This property is required. string
BackupType ; Full/Incremental etc
BackupType This property is required. string
BackupType ; Full/Incremental etc
backupType This property is required. String
BackupType ; Full/Incremental etc
backupType This property is required. string
BackupType ; Full/Incremental etc
backup_type This property is required. str
BackupType ; Full/Incremental etc
backupType This property is required. String
BackupType ; Full/Incremental etc

AzureBackupParamsResponse
, AzureBackupParamsResponseArgs

BackupType This property is required. string
BackupType ; Full/Incremental etc
BackupType This property is required. string
BackupType ; Full/Incremental etc
backupType This property is required. String
BackupType ; Full/Incremental etc
backupType This property is required. string
BackupType ; Full/Incremental etc
backup_type This property is required. str
BackupType ; Full/Incremental etc
backupType This property is required. String
BackupType ; Full/Incremental etc

AzureBackupRule
, AzureBackupRuleArgs

DataStore This property is required. DataStoreInfoBase
DataStoreInfo base
Name This property is required. string
Trigger This property is required. AdhocBasedTriggerContext | ScheduleBasedTriggerContext
Trigger context
BackupParameters AzureBackupParams
BackupParameters base
dataStore This property is required. DataStoreInfoBase
DataStoreInfo base
name This property is required. String
trigger This property is required. AdhocBasedTriggerContext | ScheduleBasedTriggerContext
Trigger context
backupParameters AzureBackupParams
BackupParameters base
dataStore This property is required. DataStoreInfoBase
DataStoreInfo base
name This property is required. string
trigger This property is required. AdhocBasedTriggerContext | ScheduleBasedTriggerContext
Trigger context
backupParameters AzureBackupParams
BackupParameters base
data_store This property is required. DataStoreInfoBase
DataStoreInfo base
name This property is required. str
trigger This property is required. AdhocBasedTriggerContext | ScheduleBasedTriggerContext
Trigger context
backup_parameters AzureBackupParams
BackupParameters base
dataStore This property is required. Property Map
DataStoreInfo base
name This property is required. String
trigger This property is required. Property Map | Property Map
Trigger context
backupParameters Property Map
BackupParameters base

AzureBackupRuleResponse
, AzureBackupRuleResponseArgs

DataStore This property is required. DataStoreInfoBaseResponse
DataStoreInfo base
Name This property is required. string
Trigger This property is required. AdhocBasedTriggerContextResponse | ScheduleBasedTriggerContextResponse
Trigger context
BackupParameters AzureBackupParamsResponse
BackupParameters base
dataStore This property is required. DataStoreInfoBaseResponse
DataStoreInfo base
name This property is required. String
trigger This property is required. AdhocBasedTriggerContextResponse | ScheduleBasedTriggerContextResponse
Trigger context
backupParameters AzureBackupParamsResponse
BackupParameters base
dataStore This property is required. DataStoreInfoBaseResponse
DataStoreInfo base
name This property is required. string
trigger This property is required. AdhocBasedTriggerContextResponse | ScheduleBasedTriggerContextResponse
Trigger context
backupParameters AzureBackupParamsResponse
BackupParameters base
data_store This property is required. DataStoreInfoBaseResponse
DataStoreInfo base
name This property is required. str
trigger This property is required. AdhocBasedTriggerContextResponse | ScheduleBasedTriggerContextResponse
Trigger context
backup_parameters AzureBackupParamsResponse
BackupParameters base
dataStore This property is required. Property Map
DataStoreInfo base
name This property is required. String
trigger This property is required. Property Map | Property Map
Trigger context
backupParameters Property Map
BackupParameters base

AzureRetentionRule
, AzureRetentionRuleArgs

Lifecycles This property is required. List<Pulumi.AzureNative.DataProtection.Inputs.SourceLifeCycle>
Name This property is required. string
IsDefault bool
Lifecycles This property is required. []SourceLifeCycle
Name This property is required. string
IsDefault bool
lifecycles This property is required. List<SourceLifeCycle>
name This property is required. String
isDefault Boolean
lifecycles This property is required. SourceLifeCycle[]
name This property is required. string
isDefault boolean
lifecycles This property is required. Sequence[SourceLifeCycle]
name This property is required. str
is_default bool
lifecycles This property is required. List<Property Map>
name This property is required. String
isDefault Boolean

AzureRetentionRuleResponse
, AzureRetentionRuleResponseArgs

Lifecycles This property is required. List<Pulumi.AzureNative.DataProtection.Inputs.SourceLifeCycleResponse>
Name This property is required. string
IsDefault bool
Lifecycles This property is required. []SourceLifeCycleResponse
Name This property is required. string
IsDefault bool
lifecycles This property is required. List<SourceLifeCycleResponse>
name This property is required. String
isDefault Boolean
lifecycles This property is required. SourceLifeCycleResponse[]
name This property is required. string
isDefault boolean
lifecycles This property is required. Sequence[SourceLifeCycleResponse]
name This property is required. str
is_default bool
lifecycles This property is required. List<Property Map>
name This property is required. String
isDefault Boolean

BackupPolicy
, BackupPolicyArgs

DatasourceTypes This property is required. List<string>
Type of datasource for the backup management
PolicyRules This property is required. List<Union<Pulumi.AzureNative.DataProtection.Inputs.AzureBackupRule, Pulumi.AzureNative.DataProtection.Inputs.AzureRetentionRule>>
Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
DatasourceTypes This property is required. []string
Type of datasource for the backup management
PolicyRules This property is required. []interface{}
Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
datasourceTypes This property is required. List<String>
Type of datasource for the backup management
policyRules This property is required. List<Either<AzureBackupRule,AzureRetentionRule>>
Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
datasourceTypes This property is required. string[]
Type of datasource for the backup management
policyRules This property is required. (AzureBackupRule | AzureRetentionRule)[]
Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
datasource_types This property is required. Sequence[str]
Type of datasource for the backup management
policy_rules This property is required. Sequence[Union[AzureBackupRule, AzureRetentionRule]]
Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
datasourceTypes This property is required. List<String>
Type of datasource for the backup management
policyRules This property is required. List<Property Map | Property Map>
Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc

BackupPolicyResponse
, BackupPolicyResponseArgs

DatasourceTypes This property is required. List<string>
Type of datasource for the backup management
PolicyRules This property is required. List<Union<Pulumi.AzureNative.DataProtection.Inputs.AzureBackupRuleResponse, Pulumi.AzureNative.DataProtection.Inputs.AzureRetentionRuleResponse>>
Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
DatasourceTypes This property is required. []string
Type of datasource for the backup management
PolicyRules This property is required. []interface{}
Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
datasourceTypes This property is required. List<String>
Type of datasource for the backup management
policyRules This property is required. List<Either<AzureBackupRuleResponse,AzureRetentionRuleResponse>>
Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
datasourceTypes This property is required. string[]
Type of datasource for the backup management
policyRules This property is required. (AzureBackupRuleResponse | AzureRetentionRuleResponse)[]
Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
datasource_types This property is required. Sequence[str]
Type of datasource for the backup management
policy_rules This property is required. Sequence[Union[AzureBackupRuleResponse, AzureRetentionRuleResponse]]
Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
datasourceTypes This property is required. List<String>
Type of datasource for the backup management
policyRules This property is required. List<Property Map | Property Map>
Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc

BackupSchedule
, BackupScheduleArgs

RepeatingTimeIntervals This property is required. List<string>
ISO 8601 repeating time interval format
TimeZone string
Time zone for a schedule. Example: Pacific Standard Time
RepeatingTimeIntervals This property is required. []string
ISO 8601 repeating time interval format
TimeZone string
Time zone for a schedule. Example: Pacific Standard Time
repeatingTimeIntervals This property is required. List<String>
ISO 8601 repeating time interval format
timeZone String
Time zone for a schedule. Example: Pacific Standard Time
repeatingTimeIntervals This property is required. string[]
ISO 8601 repeating time interval format
timeZone string
Time zone for a schedule. Example: Pacific Standard Time
repeating_time_intervals This property is required. Sequence[str]
ISO 8601 repeating time interval format
time_zone str
Time zone for a schedule. Example: Pacific Standard Time
repeatingTimeIntervals This property is required. List<String>
ISO 8601 repeating time interval format
timeZone String
Time zone for a schedule. Example: Pacific Standard Time

BackupScheduleResponse
, BackupScheduleResponseArgs

RepeatingTimeIntervals This property is required. List<string>
ISO 8601 repeating time interval format
TimeZone string
Time zone for a schedule. Example: Pacific Standard Time
RepeatingTimeIntervals This property is required. []string
ISO 8601 repeating time interval format
TimeZone string
Time zone for a schedule. Example: Pacific Standard Time
repeatingTimeIntervals This property is required. List<String>
ISO 8601 repeating time interval format
timeZone String
Time zone for a schedule. Example: Pacific Standard Time
repeatingTimeIntervals This property is required. string[]
ISO 8601 repeating time interval format
timeZone string
Time zone for a schedule. Example: Pacific Standard Time
repeating_time_intervals This property is required. Sequence[str]
ISO 8601 repeating time interval format
time_zone str
Time zone for a schedule. Example: Pacific Standard Time
repeatingTimeIntervals This property is required. List<String>
ISO 8601 repeating time interval format
timeZone String
Time zone for a schedule. Example: Pacific Standard Time

CopyOnExpiryOption
, CopyOnExpiryOptionArgs

CopyOnExpiryOptionResponse
, CopyOnExpiryOptionResponseArgs

CustomCopyOption
, CustomCopyOptionArgs

Duration string
Data copied after given timespan
Duration string
Data copied after given timespan
duration String
Data copied after given timespan
duration string
Data copied after given timespan
duration str
Data copied after given timespan
duration String
Data copied after given timespan

CustomCopyOptionResponse
, CustomCopyOptionResponseArgs

Duration string
Data copied after given timespan
Duration string
Data copied after given timespan
duration String
Data copied after given timespan
duration string
Data copied after given timespan
duration str
Data copied after given timespan
duration String
Data copied after given timespan

DataStoreInfoBase
, DataStoreInfoBaseArgs

DataStoreType This property is required. string | Pulumi.AzureNative.DataProtection.DataStoreTypes
type of datastore; Operational/Vault/Archive
ObjectType This property is required. string
Type of Datasource object, used to initialize the right inherited type
DataStoreType This property is required. string | DataStoreTypes
type of datastore; Operational/Vault/Archive
ObjectType This property is required. string
Type of Datasource object, used to initialize the right inherited type
dataStoreType This property is required. String | DataStoreTypes
type of datastore; Operational/Vault/Archive
objectType This property is required. String
Type of Datasource object, used to initialize the right inherited type
dataStoreType This property is required. string | DataStoreTypes
type of datastore; Operational/Vault/Archive
objectType This property is required. string
Type of Datasource object, used to initialize the right inherited type
data_store_type This property is required. str | DataStoreTypes
type of datastore; Operational/Vault/Archive
object_type This property is required. str
Type of Datasource object, used to initialize the right inherited type
dataStoreType This property is required. String | "OperationalStore" | "VaultStore" | "ArchiveStore"
type of datastore; Operational/Vault/Archive
objectType This property is required. String
Type of Datasource object, used to initialize the right inherited type

DataStoreInfoBaseResponse
, DataStoreInfoBaseResponseArgs

DataStoreType This property is required. string
type of datastore; Operational/Vault/Archive
ObjectType This property is required. string
Type of Datasource object, used to initialize the right inherited type
DataStoreType This property is required. string
type of datastore; Operational/Vault/Archive
ObjectType This property is required. string
Type of Datasource object, used to initialize the right inherited type
dataStoreType This property is required. String
type of datastore; Operational/Vault/Archive
objectType This property is required. String
Type of Datasource object, used to initialize the right inherited type
dataStoreType This property is required. string
type of datastore; Operational/Vault/Archive
objectType This property is required. string
Type of Datasource object, used to initialize the right inherited type
data_store_type This property is required. str
type of datastore; Operational/Vault/Archive
object_type This property is required. str
Type of Datasource object, used to initialize the right inherited type
dataStoreType This property is required. String
type of datastore; Operational/Vault/Archive
objectType This property is required. String
Type of Datasource object, used to initialize the right inherited type

DataStoreTypes
, DataStoreTypesArgs

OperationalStore
OperationalStore
VaultStore
VaultStore
ArchiveStore
ArchiveStore
DataStoreTypesOperationalStore
OperationalStore
DataStoreTypesVaultStore
VaultStore
DataStoreTypesArchiveStore
ArchiveStore
OperationalStore
OperationalStore
VaultStore
VaultStore
ArchiveStore
ArchiveStore
OperationalStore
OperationalStore
VaultStore
VaultStore
ArchiveStore
ArchiveStore
OPERATIONAL_STORE
OperationalStore
VAULT_STORE
VaultStore
ARCHIVE_STORE
ArchiveStore
"OperationalStore"
OperationalStore
"VaultStore"
VaultStore
"ArchiveStore"
ArchiveStore

Day
, DayArgs

Date int
Date of the month
IsLast bool
Whether Date is last date of month
Date int
Date of the month
IsLast bool
Whether Date is last date of month
date Integer
Date of the month
isLast Boolean
Whether Date is last date of month
date number
Date of the month
isLast boolean
Whether Date is last date of month
date int
Date of the month
is_last bool
Whether Date is last date of month
date Number
Date of the month
isLast Boolean
Whether Date is last date of month

DayOfWeek
, DayOfWeekArgs

Friday
Friday
Monday
Monday
Saturday
Saturday
Sunday
Sunday
Thursday
Thursday
Tuesday
Tuesday
Wednesday
Wednesday
DayOfWeekFriday
Friday
DayOfWeekMonday
Monday
DayOfWeekSaturday
Saturday
DayOfWeekSunday
Sunday
DayOfWeekThursday
Thursday
DayOfWeekTuesday
Tuesday
DayOfWeekWednesday
Wednesday
Friday
Friday
Monday
Monday
Saturday
Saturday
Sunday
Sunday
Thursday
Thursday
Tuesday
Tuesday
Wednesday
Wednesday
Friday
Friday
Monday
Monday
Saturday
Saturday
Sunday
Sunday
Thursday
Thursday
Tuesday
Tuesday
Wednesday
Wednesday
FRIDAY
Friday
MONDAY
Monday
SATURDAY
Saturday
SUNDAY
Sunday
THURSDAY
Thursday
TUESDAY
Tuesday
WEDNESDAY
Wednesday
"Friday"
Friday
"Monday"
Monday
"Saturday"
Saturday
"Sunday"
Sunday
"Thursday"
Thursday
"Tuesday"
Tuesday
"Wednesday"
Wednesday

DayResponse
, DayResponseArgs

Date int
Date of the month
IsLast bool
Whether Date is last date of month
Date int
Date of the month
IsLast bool
Whether Date is last date of month
date Integer
Date of the month
isLast Boolean
Whether Date is last date of month
date number
Date of the month
isLast boolean
Whether Date is last date of month
date int
Date of the month
is_last bool
Whether Date is last date of month
date Number
Date of the month
isLast Boolean
Whether Date is last date of month

ImmediateCopyOption
, ImmediateCopyOptionArgs

ImmediateCopyOptionResponse
, ImmediateCopyOptionResponseArgs

Month
, MonthArgs

April
April
August
August
December
December
February
February
January
January
July
July
June
June
March
March
May
May
November
November
October
October
September
September
MonthApril
April
MonthAugust
August
MonthDecember
December
MonthFebruary
February
MonthJanuary
January
MonthJuly
July
MonthJune
June
MonthMarch
March
MonthMay
May
MonthNovember
November
MonthOctober
October
MonthSeptember
September
April
April
August
August
December
December
February
February
January
January
July
July
June
June
March
March
May
May
November
November
October
October
September
September
April
April
August
August
December
December
February
February
January
January
July
July
June
June
March
March
May
May
November
November
October
October
September
September
APRIL
April
AUGUST
August
DECEMBER
December
FEBRUARY
February
JANUARY
January
JULY
July
JUNE
June
MARCH
March
MAY
May
NOVEMBER
November
OCTOBER
October
SEPTEMBER
September
"April"
April
"August"
August
"December"
December
"February"
February
"January"
January
"July"
July
"June"
June
"March"
March
"May"
May
"November"
November
"October"
October
"September"
September

RetentionTag
, RetentionTagArgs

TagName This property is required. string
Retention Tag Name to relate it to retention rule.
TagName This property is required. string
Retention Tag Name to relate it to retention rule.
tagName This property is required. String
Retention Tag Name to relate it to retention rule.
tagName This property is required. string
Retention Tag Name to relate it to retention rule.
tag_name This property is required. str
Retention Tag Name to relate it to retention rule.
tagName This property is required. String
Retention Tag Name to relate it to retention rule.

RetentionTagResponse
, RetentionTagResponseArgs

ETag This property is required. string
Retention Tag version.
Id This property is required. string
Retention Tag version.
TagName This property is required. string
Retention Tag Name to relate it to retention rule.
ETag This property is required. string
Retention Tag version.
Id This property is required. string
Retention Tag version.
TagName This property is required. string
Retention Tag Name to relate it to retention rule.
eTag This property is required. String
Retention Tag version.
id This property is required. String
Retention Tag version.
tagName This property is required. String
Retention Tag Name to relate it to retention rule.
eTag This property is required. string
Retention Tag version.
id This property is required. string
Retention Tag version.
tagName This property is required. string
Retention Tag Name to relate it to retention rule.
e_tag This property is required. str
Retention Tag version.
id This property is required. str
Retention Tag version.
tag_name This property is required. str
Retention Tag Name to relate it to retention rule.
eTag This property is required. String
Retention Tag version.
id This property is required. String
Retention Tag version.
tagName This property is required. String
Retention Tag Name to relate it to retention rule.

ScheduleBasedBackupCriteria
, ScheduleBasedBackupCriteriaArgs

AbsoluteCriteria List<Union<string, Pulumi.AzureNative.DataProtection.AbsoluteMarker>>
it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum
DaysOfMonth List<Pulumi.AzureNative.DataProtection.Inputs.Day>
This is day of the month from 1 to 28 other wise last of month
DaysOfTheWeek List<Union<string, Pulumi.AzureNative.DataProtection.DayOfWeek>>
It should be Sunday/Monday/T..../Saturday
MonthsOfYear List<Union<string, Pulumi.AzureNative.DataProtection.Month>>
It should be January/February/....../December
ScheduleTimes List<string>
List of schedule times for backup
WeeksOfTheMonth List<Union<string, Pulumi.AzureNative.DataProtection.WeekNumber>>
It should be First/Second/Third/Fourth/Last
AbsoluteCriteria []string
it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum
DaysOfMonth []Day
This is day of the month from 1 to 28 other wise last of month
DaysOfTheWeek []string
It should be Sunday/Monday/T..../Saturday
MonthsOfYear []string
It should be January/February/....../December
ScheduleTimes []string
List of schedule times for backup
WeeksOfTheMonth []string
It should be First/Second/Third/Fourth/Last
absoluteCriteria List<Either<String,AbsoluteMarker>>
it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum
daysOfMonth List<Day>
This is day of the month from 1 to 28 other wise last of month
daysOfTheWeek List<Either<String,DayOfWeek>>
It should be Sunday/Monday/T..../Saturday
monthsOfYear List<Either<String,Month>>
It should be January/February/....../December
scheduleTimes List<String>
List of schedule times for backup
weeksOfTheMonth List<Either<String,WeekNumber>>
It should be First/Second/Third/Fourth/Last
absoluteCriteria (string | AbsoluteMarker)[]
it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum
daysOfMonth Day[]
This is day of the month from 1 to 28 other wise last of month
daysOfTheWeek (string | DayOfWeek)[]
It should be Sunday/Monday/T..../Saturday
monthsOfYear (string | Month)[]
It should be January/February/....../December
scheduleTimes string[]
List of schedule times for backup
weeksOfTheMonth (string | WeekNumber)[]
It should be First/Second/Third/Fourth/Last
absolute_criteria Sequence[Union[str, AbsoluteMarker]]
it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum
days_of_month Sequence[Day]
This is day of the month from 1 to 28 other wise last of month
days_of_the_week Sequence[Union[str, DayOfWeek]]
It should be Sunday/Monday/T..../Saturday
months_of_year Sequence[Union[str, Month]]
It should be January/February/....../December
schedule_times Sequence[str]
List of schedule times for backup
weeks_of_the_month Sequence[Union[str, WeekNumber]]
It should be First/Second/Third/Fourth/Last
absoluteCriteria List<String | "AllBackup" | "FirstOfDay" | "FirstOfMonth" | "FirstOfWeek" | "FirstOfYear">
it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum
daysOfMonth List<Property Map>
This is day of the month from 1 to 28 other wise last of month
daysOfTheWeek List<String | "Friday" | "Monday" | "Saturday" | "Sunday" | "Thursday" | "Tuesday" | "Wednesday">
It should be Sunday/Monday/T..../Saturday
monthsOfYear List<String | "April" | "August" | "December" | "February" | "January" | "July" | "June" | "March" | "May" | "November" | "October" | "September">
It should be January/February/....../December
scheduleTimes List<String>
List of schedule times for backup
weeksOfTheMonth List<String | "First" | "Fourth" | "Last" | "Second" | "Third">
It should be First/Second/Third/Fourth/Last

ScheduleBasedBackupCriteriaResponse
, ScheduleBasedBackupCriteriaResponseArgs

AbsoluteCriteria List<string>
it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum
DaysOfMonth List<Pulumi.AzureNative.DataProtection.Inputs.DayResponse>
This is day of the month from 1 to 28 other wise last of month
DaysOfTheWeek List<string>
It should be Sunday/Monday/T..../Saturday
MonthsOfYear List<string>
It should be January/February/....../December
ScheduleTimes List<string>
List of schedule times for backup
WeeksOfTheMonth List<string>
It should be First/Second/Third/Fourth/Last
AbsoluteCriteria []string
it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum
DaysOfMonth []DayResponse
This is day of the month from 1 to 28 other wise last of month
DaysOfTheWeek []string
It should be Sunday/Monday/T..../Saturday
MonthsOfYear []string
It should be January/February/....../December
ScheduleTimes []string
List of schedule times for backup
WeeksOfTheMonth []string
It should be First/Second/Third/Fourth/Last
absoluteCriteria List<String>
it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum
daysOfMonth List<DayResponse>
This is day of the month from 1 to 28 other wise last of month
daysOfTheWeek List<String>
It should be Sunday/Monday/T..../Saturday
monthsOfYear List<String>
It should be January/February/....../December
scheduleTimes List<String>
List of schedule times for backup
weeksOfTheMonth List<String>
It should be First/Second/Third/Fourth/Last
absoluteCriteria string[]
it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum
daysOfMonth DayResponse[]
This is day of the month from 1 to 28 other wise last of month
daysOfTheWeek string[]
It should be Sunday/Monday/T..../Saturday
monthsOfYear string[]
It should be January/February/....../December
scheduleTimes string[]
List of schedule times for backup
weeksOfTheMonth string[]
It should be First/Second/Third/Fourth/Last
absolute_criteria Sequence[str]
it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum
days_of_month Sequence[DayResponse]
This is day of the month from 1 to 28 other wise last of month
days_of_the_week Sequence[str]
It should be Sunday/Monday/T..../Saturday
months_of_year Sequence[str]
It should be January/February/....../December
schedule_times Sequence[str]
List of schedule times for backup
weeks_of_the_month Sequence[str]
It should be First/Second/Third/Fourth/Last
absoluteCriteria List<String>
it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum
daysOfMonth List<Property Map>
This is day of the month from 1 to 28 other wise last of month
daysOfTheWeek List<String>
It should be Sunday/Monday/T..../Saturday
monthsOfYear List<String>
It should be January/February/....../December
scheduleTimes List<String>
List of schedule times for backup
weeksOfTheMonth List<String>
It should be First/Second/Third/Fourth/Last

ScheduleBasedTriggerContext
, ScheduleBasedTriggerContextArgs

Schedule This property is required. Pulumi.AzureNative.DataProtection.Inputs.BackupSchedule
Schedule for this backup
TaggingCriteria This property is required. List<Pulumi.AzureNative.DataProtection.Inputs.TaggingCriteria>
List of tags that can be applicable for given schedule.
Schedule This property is required. BackupSchedule
Schedule for this backup
TaggingCriteria This property is required. []TaggingCriteria
List of tags that can be applicable for given schedule.
schedule This property is required. BackupSchedule
Schedule for this backup
taggingCriteria This property is required. List<TaggingCriteria>
List of tags that can be applicable for given schedule.
schedule This property is required. BackupSchedule
Schedule for this backup
taggingCriteria This property is required. TaggingCriteria[]
List of tags that can be applicable for given schedule.
schedule This property is required. BackupSchedule
Schedule for this backup
tagging_criteria This property is required. Sequence[TaggingCriteria]
List of tags that can be applicable for given schedule.
schedule This property is required. Property Map
Schedule for this backup
taggingCriteria This property is required. List<Property Map>
List of tags that can be applicable for given schedule.

ScheduleBasedTriggerContextResponse
, ScheduleBasedTriggerContextResponseArgs

Schedule This property is required. Pulumi.AzureNative.DataProtection.Inputs.BackupScheduleResponse
Schedule for this backup
TaggingCriteria This property is required. List<Pulumi.AzureNative.DataProtection.Inputs.TaggingCriteriaResponse>
List of tags that can be applicable for given schedule.
Schedule This property is required. BackupScheduleResponse
Schedule for this backup
TaggingCriteria This property is required. []TaggingCriteriaResponse
List of tags that can be applicable for given schedule.
schedule This property is required. BackupScheduleResponse
Schedule for this backup
taggingCriteria This property is required. List<TaggingCriteriaResponse>
List of tags that can be applicable for given schedule.
schedule This property is required. BackupScheduleResponse
Schedule for this backup
taggingCriteria This property is required. TaggingCriteriaResponse[]
List of tags that can be applicable for given schedule.
schedule This property is required. BackupScheduleResponse
Schedule for this backup
tagging_criteria This property is required. Sequence[TaggingCriteriaResponse]
List of tags that can be applicable for given schedule.
schedule This property is required. Property Map
Schedule for this backup
taggingCriteria This property is required. List<Property Map>
List of tags that can be applicable for given schedule.

SourceLifeCycle
, SourceLifeCycleArgs

DeleteAfter This property is required. AbsoluteDeleteOption
Delete Option
SourceDataStore This property is required. DataStoreInfoBase
DataStoreInfo base
TargetDataStoreCopySettings []TargetCopySetting
deleteAfter This property is required. AbsoluteDeleteOption
Delete Option
sourceDataStore This property is required. DataStoreInfoBase
DataStoreInfo base
targetDataStoreCopySettings List<TargetCopySetting>
deleteAfter This property is required. AbsoluteDeleteOption
Delete Option
sourceDataStore This property is required. DataStoreInfoBase
DataStoreInfo base
targetDataStoreCopySettings TargetCopySetting[]
delete_after This property is required. AbsoluteDeleteOption
Delete Option
source_data_store This property is required. DataStoreInfoBase
DataStoreInfo base
target_data_store_copy_settings Sequence[TargetCopySetting]
deleteAfter This property is required. Property Map
Delete Option
sourceDataStore This property is required. Property Map
DataStoreInfo base
targetDataStoreCopySettings List<Property Map>

SourceLifeCycleResponse
, SourceLifeCycleResponseArgs

deleteAfter This property is required. Property Map
Delete Option
sourceDataStore This property is required. Property Map
DataStoreInfo base
targetDataStoreCopySettings List<Property Map>

SystemDataResponse
, SystemDataResponseArgs

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.
createdAt string
The timestamp of resource creation (UTC).
createdBy string
The identity that created the resource.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The timestamp of resource last modification (UTC)
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
The type of identity that last modified the resource.
created_at str
The timestamp of resource creation (UTC).
created_by str
The identity that created the resource.
created_by_type str
The type of identity that created the resource.
last_modified_at str
The timestamp of resource last modification (UTC)
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.

TaggingCriteria
, TaggingCriteriaArgs

IsDefault This property is required. bool
Specifies if tag is default.
TagInfo This property is required. Pulumi.AzureNative.DataProtection.Inputs.RetentionTag
Retention tag information
TaggingPriority This property is required. double
Retention Tag priority.
Criteria List<Pulumi.AzureNative.DataProtection.Inputs.ScheduleBasedBackupCriteria>
Criteria which decides whether the tag can be applied to a triggered backup.
IsDefault This property is required. bool
Specifies if tag is default.
TagInfo This property is required. RetentionTag
Retention tag information
TaggingPriority This property is required. float64
Retention Tag priority.
Criteria []ScheduleBasedBackupCriteria
Criteria which decides whether the tag can be applied to a triggered backup.
isDefault This property is required. Boolean
Specifies if tag is default.
tagInfo This property is required. RetentionTag
Retention tag information
taggingPriority This property is required. Double
Retention Tag priority.
criteria List<ScheduleBasedBackupCriteria>
Criteria which decides whether the tag can be applied to a triggered backup.
isDefault This property is required. boolean
Specifies if tag is default.
tagInfo This property is required. RetentionTag
Retention tag information
taggingPriority This property is required. number
Retention Tag priority.
criteria ScheduleBasedBackupCriteria[]
Criteria which decides whether the tag can be applied to a triggered backup.
is_default This property is required. bool
Specifies if tag is default.
tag_info This property is required. RetentionTag
Retention tag information
tagging_priority This property is required. float
Retention Tag priority.
criteria Sequence[ScheduleBasedBackupCriteria]
Criteria which decides whether the tag can be applied to a triggered backup.
isDefault This property is required. Boolean
Specifies if tag is default.
tagInfo This property is required. Property Map
Retention tag information
taggingPriority This property is required. Number
Retention Tag priority.
criteria List<Property Map>
Criteria which decides whether the tag can be applied to a triggered backup.

TaggingCriteriaResponse
, TaggingCriteriaResponseArgs

IsDefault This property is required. bool
Specifies if tag is default.
TagInfo This property is required. Pulumi.AzureNative.DataProtection.Inputs.RetentionTagResponse
Retention tag information
TaggingPriority This property is required. double
Retention Tag priority.
Criteria List<Pulumi.AzureNative.DataProtection.Inputs.ScheduleBasedBackupCriteriaResponse>
Criteria which decides whether the tag can be applied to a triggered backup.
IsDefault This property is required. bool
Specifies if tag is default.
TagInfo This property is required. RetentionTagResponse
Retention tag information
TaggingPriority This property is required. float64
Retention Tag priority.
Criteria []ScheduleBasedBackupCriteriaResponse
Criteria which decides whether the tag can be applied to a triggered backup.
isDefault This property is required. Boolean
Specifies if tag is default.
tagInfo This property is required. RetentionTagResponse
Retention tag information
taggingPriority This property is required. Double
Retention Tag priority.
criteria List<ScheduleBasedBackupCriteriaResponse>
Criteria which decides whether the tag can be applied to a triggered backup.
isDefault This property is required. boolean
Specifies if tag is default.
tagInfo This property is required. RetentionTagResponse
Retention tag information
taggingPriority This property is required. number
Retention Tag priority.
criteria ScheduleBasedBackupCriteriaResponse[]
Criteria which decides whether the tag can be applied to a triggered backup.
is_default This property is required. bool
Specifies if tag is default.
tag_info This property is required. RetentionTagResponse
Retention tag information
tagging_priority This property is required. float
Retention Tag priority.
criteria Sequence[ScheduleBasedBackupCriteriaResponse]
Criteria which decides whether the tag can be applied to a triggered backup.
isDefault This property is required. Boolean
Specifies if tag is default.
tagInfo This property is required. Property Map
Retention tag information
taggingPriority This property is required. Number
Retention Tag priority.
criteria List<Property Map>
Criteria which decides whether the tag can be applied to a triggered backup.

TargetCopySetting
, TargetCopySettingArgs

CopyAfter This property is required. CopyOnExpiryOption | CustomCopyOption | ImmediateCopyOption
It can be CustomCopyOption or ImmediateCopyOption.
DataStore This property is required. DataStoreInfoBase
Info of target datastore
copyAfter This property is required. CopyOnExpiryOption | CustomCopyOption | ImmediateCopyOption
It can be CustomCopyOption or ImmediateCopyOption.
dataStore This property is required. DataStoreInfoBase
Info of target datastore
copyAfter This property is required. CopyOnExpiryOption | CustomCopyOption | ImmediateCopyOption
It can be CustomCopyOption or ImmediateCopyOption.
dataStore This property is required. DataStoreInfoBase
Info of target datastore
copy_after This property is required. CopyOnExpiryOption | CustomCopyOption | ImmediateCopyOption
It can be CustomCopyOption or ImmediateCopyOption.
data_store This property is required. DataStoreInfoBase
Info of target datastore
copyAfter This property is required. Property Map | Property Map | Property Map
It can be CustomCopyOption or ImmediateCopyOption.
dataStore This property is required. Property Map
Info of target datastore

TargetCopySettingResponse
, TargetCopySettingResponseArgs

CopyAfter This property is required. CopyOnExpiryOptionResponse | CustomCopyOptionResponse | ImmediateCopyOptionResponse
It can be CustomCopyOption or ImmediateCopyOption.
DataStore This property is required. DataStoreInfoBaseResponse
Info of target datastore
copyAfter This property is required. CopyOnExpiryOptionResponse | CustomCopyOptionResponse | ImmediateCopyOptionResponse
It can be CustomCopyOption or ImmediateCopyOption.
dataStore This property is required. DataStoreInfoBaseResponse
Info of target datastore
copyAfter This property is required. CopyOnExpiryOptionResponse | CustomCopyOptionResponse | ImmediateCopyOptionResponse
It can be CustomCopyOption or ImmediateCopyOption.
dataStore This property is required. DataStoreInfoBaseResponse
Info of target datastore
copy_after This property is required. CopyOnExpiryOptionResponse | CustomCopyOptionResponse | ImmediateCopyOptionResponse
It can be CustomCopyOption or ImmediateCopyOption.
data_store This property is required. DataStoreInfoBaseResponse
Info of target datastore
copyAfter This property is required. Property Map | Property Map | Property Map
It can be CustomCopyOption or ImmediateCopyOption.
dataStore This property is required. Property Map
Info of target datastore

WeekNumber
, WeekNumberArgs

First
First
Fourth
Fourth
Last
Last
Second
Second
Third
Third
WeekNumberFirst
First
WeekNumberFourth
Fourth
WeekNumberLast
Last
WeekNumberSecond
Second
WeekNumberThird
Third
First
First
Fourth
Fourth
Last
Last
Second
Second
Third
Third
First
First
Fourth
Fourth
Last
Last
Second
Second
Third
Third
FIRST
First
FOURTH
Fourth
LAST
Last
SECOND
Second
THIRD
Third
"First"
First
"Fourth"
Fourth
"Last"
Last
"Second"
Second
"Third"
Third

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:dataprotection:BackupPolicy OSSDBPolicy /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi