Show / Hide Table of Contents

Class PolicyVM

Manages an Azure Backup VM Backup Policy.

Inheritance
System.Object
Resource
CustomResource
PolicyVM
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.Backup
Assembly: Pulumi.Azure.dll
Syntax
public class PolicyVM : CustomResource

Constructors

View Source

PolicyVM(String, PolicyVMArgs, CustomResourceOptions)

Create a PolicyVM resource with the given unique name, arguments, and options.

Declaration
public PolicyVM(string name, PolicyVMArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

PolicyVMArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Backup

Configures the Policy backup frequency, times & days as documented in the backup block below.

Declaration
public Output<PolicyVMBackup> Backup { get; }
Property Value
Type Description
Output<PolicyVMBackup>
View Source

Name

Specifies the name of the Backup Policy. Changing this forces a new resource to be created.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

RecoveryVaultName

Specifies the name of the Recovery Services Vault to use. Changing this forces a new resource to be created.

Declaration
public Output<string> RecoveryVaultName { get; }
Property Value
Type Description
Output<System.String>
View Source

ResourceGroupName

The name of the resource group in which to create the policy. Changing this forces a new resource to be created.

Declaration
public Output<string> ResourceGroupName { get; }
Property Value
Type Description
Output<System.String>
View Source

RetentionDaily

Configures the policy daily retention as documented in the retention_daily block below. Required when backup frequency is Daily.

Declaration
public Output<PolicyVMRetentionDaily> RetentionDaily { get; }
Property Value
Type Description
Output<PolicyVMRetentionDaily>
View Source

RetentionMonthly

Configures the policy monthly retention as documented in the retention_monthly block below.

Declaration
public Output<PolicyVMRetentionMonthly> RetentionMonthly { get; }
Property Value
Type Description
Output<PolicyVMRetentionMonthly>
View Source

RetentionWeekly

Configures the policy weekly retention as documented in the retention_weekly block below. Required when backup frequency is Weekly.

Declaration
public Output<PolicyVMRetentionWeekly> RetentionWeekly { get; }
Property Value
Type Description
Output<PolicyVMRetentionWeekly>
View Source

RetentionYearly

Configures the policy yearly retention as documented in the retention_yearly block below.

Declaration
public Output<PolicyVMRetentionYearly> RetentionYearly { get; }
Property Value
Type Description
Output<PolicyVMRetentionYearly>
View Source

Tags

A mapping of tags to assign to the resource.

Declaration
public Output<ImmutableDictionary<string, string>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>>
View Source

Timezone

Specifies the timezone. Defaults to UTC

Declaration
public Output<string> Timezone { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, PolicyVMState, CustomResourceOptions)

Get an existing PolicyVM resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static PolicyVM Get(string name, Input<string> id, PolicyVMState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

PolicyVMState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
PolicyVM
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.