Class PolicyVM
Manages an Azure Backup VM Backup Policy.
Inherited Members
Namespace: Pulumi.Azure.Backup
Assembly: Pulumi.Azure.dll
Syntax
public class PolicyVM : CustomResource
Constructors
View SourcePolicyVM(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 SourceBackup
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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>> |
Timezone
Specifies the timezone. Defaults to UTC
Declaration
public Output<string> Timezone { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(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 |