We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
Manages a NetApp Snapshot Policy.
NetApp Snapshot Policy Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "East US"});
const exampleAccount = new azure.netapp.Account("exampleAccount", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
});
const exampleSnapshotPolicy = new azure.netapp.SnapshotPolicy("exampleSnapshotPolicy", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
accountName: exampleAccount.name,
enabled: true,
hourlySchedule: {
snapshotsToKeep: 4,
minute: 15,
},
dailySchedule: {
snapshotsToKeep: 2,
hour: 20,
minute: 15,
},
weeklySchedule: {
snapshotsToKeep: 1,
daysOfWeeks: [
"Monday",
"Friday",
],
hour: 23,
minute: 0,
},
monthlySchedule: {
snapshotsToKeep: 1,
daysOfMonths: [
1,
15,
20,
30,
],
hour: 5,
minute: 45,
},
});
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="East US")
example_account = azure.netapp.Account("exampleAccount",
location=example_resource_group.location,
resource_group_name=example_resource_group.name)
example_snapshot_policy = azure.netapp.SnapshotPolicy("exampleSnapshotPolicy",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
account_name=example_account.name,
enabled=True,
hourly_schedule=azure.netapp.SnapshotPolicyHourlyScheduleArgs(
snapshots_to_keep=4,
minute=15,
),
daily_schedule=azure.netapp.SnapshotPolicyDailyScheduleArgs(
snapshots_to_keep=2,
hour=20,
minute=15,
),
weekly_schedule=azure.netapp.SnapshotPolicyWeeklyScheduleArgs(
snapshots_to_keep=1,
days_of_weeks=[
"Monday",
"Friday",
],
hour=23,
minute=0,
),
monthly_schedule=azure.netapp.SnapshotPolicyMonthlyScheduleArgs(
snapshots_to_keep=1,
days_of_months=[
1,
15,
20,
30,
],
hour=5,
minute=45,
))
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "East US",
});
var exampleAccount = new Azure.NetApp.Account("exampleAccount", new Azure.NetApp.AccountArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
});
var exampleSnapshotPolicy = new Azure.NetApp.SnapshotPolicy("exampleSnapshotPolicy", new Azure.NetApp.SnapshotPolicyArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
AccountName = exampleAccount.Name,
Enabled = true,
HourlySchedule = new Azure.NetApp.Inputs.SnapshotPolicyHourlyScheduleArgs
{
SnapshotsToKeep = 4,
Minute = 15,
},
DailySchedule = new Azure.NetApp.Inputs.SnapshotPolicyDailyScheduleArgs
{
SnapshotsToKeep = 2,
Hour = 20,
Minute = 15,
},
WeeklySchedule = new Azure.NetApp.Inputs.SnapshotPolicyWeeklyScheduleArgs
{
SnapshotsToKeep = 1,
DaysOfWeeks =
{
"Monday",
"Friday",
},
Hour = 23,
Minute = 0,
},
MonthlySchedule = new Azure.NetApp.Inputs.SnapshotPolicyMonthlyScheduleArgs
{
SnapshotsToKeep = 1,
DaysOfMonths =
{
1,
15,
20,
30,
},
Hour = 5,
Minute = 45,
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/netapp"
"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("East US"),
})
if err != nil {
return err
}
exampleAccount, err := netapp.NewAccount(ctx, "exampleAccount", &netapp.AccountArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
})
if err != nil {
return err
}
_, err = netapp.NewSnapshotPolicy(ctx, "exampleSnapshotPolicy", &netapp.SnapshotPolicyArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
AccountName: exampleAccount.Name,
Enabled: pulumi.Bool(true),
HourlySchedule: &netapp.SnapshotPolicyHourlyScheduleArgs{
SnapshotsToKeep: pulumi.Int(4),
Minute: pulumi.Int(15),
},
DailySchedule: &netapp.SnapshotPolicyDailyScheduleArgs{
SnapshotsToKeep: pulumi.Int(2),
Hour: pulumi.Int(20),
Minute: pulumi.Int(15),
},
WeeklySchedule: &netapp.SnapshotPolicyWeeklyScheduleArgs{
SnapshotsToKeep: pulumi.Int(1),
DaysOfWeeks: pulumi.StringArray{
pulumi.String("Monday"),
pulumi.String("Friday"),
},
Hour: pulumi.Int(23),
Minute: pulumi.Int(0),
},
MonthlySchedule: &netapp.SnapshotPolicyMonthlyScheduleArgs{
SnapshotsToKeep: pulumi.Int(1),
DaysOfMonths: pulumi.IntArray{
pulumi.Int(1),
pulumi.Int(15),
pulumi.Int(20),
pulumi.Int(30),
},
Hour: pulumi.Int(5),
Minute: pulumi.Int(45),
},
})
if err != nil {
return err
}
return nil
})
}
Create SnapshotPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SnapshotPolicy(name: string, args: SnapshotPolicyArgs, opts?: CustomResourceOptions);@overload
def SnapshotPolicy(resource_name: str,
args: SnapshotPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SnapshotPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_name: Optional[str] = None,
enabled: Optional[bool] = None,
resource_group_name: Optional[str] = None,
daily_schedule: Optional[SnapshotPolicyDailyScheduleArgs] = None,
hourly_schedule: Optional[SnapshotPolicyHourlyScheduleArgs] = None,
location: Optional[str] = None,
monthly_schedule: Optional[SnapshotPolicyMonthlyScheduleArgs] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
weekly_schedule: Optional[SnapshotPolicyWeeklyScheduleArgs] = None)func NewSnapshotPolicy(ctx *Context, name string, args SnapshotPolicyArgs, opts ...ResourceOption) (*SnapshotPolicy, error)public SnapshotPolicy(string name, SnapshotPolicyArgs args, CustomResourceOptions? opts = null)
public SnapshotPolicy(String name, SnapshotPolicyArgs args)
public SnapshotPolicy(String name, SnapshotPolicyArgs args, CustomResourceOptions options)
type: azure:netapp:SnapshotPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SnapshotPolicyArgs
- 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 SnapshotPolicyArgs
- 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 SnapshotPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SnapshotPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SnapshotPolicyArgs
- 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 snapshotPolicyResource = new Azure.NetApp.SnapshotPolicy("snapshotPolicyResource", new()
{
AccountName = "string",
Enabled = false,
ResourceGroupName = "string",
DailySchedule = new Azure.NetApp.Inputs.SnapshotPolicyDailyScheduleArgs
{
Hour = 0,
Minute = 0,
SnapshotsToKeep = 0,
},
HourlySchedule = new Azure.NetApp.Inputs.SnapshotPolicyHourlyScheduleArgs
{
Minute = 0,
SnapshotsToKeep = 0,
},
Location = "string",
MonthlySchedule = new Azure.NetApp.Inputs.SnapshotPolicyMonthlyScheduleArgs
{
DaysOfMonths = new[]
{
0,
},
Hour = 0,
Minute = 0,
SnapshotsToKeep = 0,
},
Name = "string",
Tags =
{
{ "string", "string" },
},
WeeklySchedule = new Azure.NetApp.Inputs.SnapshotPolicyWeeklyScheduleArgs
{
DaysOfWeeks = new[]
{
"string",
},
Hour = 0,
Minute = 0,
SnapshotsToKeep = 0,
},
});
example, err := netapp.NewSnapshotPolicy(ctx, "snapshotPolicyResource", &netapp.SnapshotPolicyArgs{
AccountName: pulumi.String("string"),
Enabled: pulumi.Bool(false),
ResourceGroupName: pulumi.String("string"),
DailySchedule: &netapp.SnapshotPolicyDailyScheduleArgs{
Hour: pulumi.Int(0),
Minute: pulumi.Int(0),
SnapshotsToKeep: pulumi.Int(0),
},
HourlySchedule: &netapp.SnapshotPolicyHourlyScheduleArgs{
Minute: pulumi.Int(0),
SnapshotsToKeep: pulumi.Int(0),
},
Location: pulumi.String("string"),
MonthlySchedule: &netapp.SnapshotPolicyMonthlyScheduleArgs{
DaysOfMonths: pulumi.IntArray{
pulumi.Int(0),
},
Hour: pulumi.Int(0),
Minute: pulumi.Int(0),
SnapshotsToKeep: pulumi.Int(0),
},
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
WeeklySchedule: &netapp.SnapshotPolicyWeeklyScheduleArgs{
DaysOfWeeks: pulumi.StringArray{
pulumi.String("string"),
},
Hour: pulumi.Int(0),
Minute: pulumi.Int(0),
SnapshotsToKeep: pulumi.Int(0),
},
})
var snapshotPolicyResource = new SnapshotPolicy("snapshotPolicyResource", SnapshotPolicyArgs.builder()
.accountName("string")
.enabled(false)
.resourceGroupName("string")
.dailySchedule(SnapshotPolicyDailyScheduleArgs.builder()
.hour(0)
.minute(0)
.snapshotsToKeep(0)
.build())
.hourlySchedule(SnapshotPolicyHourlyScheduleArgs.builder()
.minute(0)
.snapshotsToKeep(0)
.build())
.location("string")
.monthlySchedule(SnapshotPolicyMonthlyScheduleArgs.builder()
.daysOfMonths(0)
.hour(0)
.minute(0)
.snapshotsToKeep(0)
.build())
.name("string")
.tags(Map.of("string", "string"))
.weeklySchedule(SnapshotPolicyWeeklyScheduleArgs.builder()
.daysOfWeeks("string")
.hour(0)
.minute(0)
.snapshotsToKeep(0)
.build())
.build());
snapshot_policy_resource = azure.netapp.SnapshotPolicy("snapshotPolicyResource",
account_name="string",
enabled=False,
resource_group_name="string",
daily_schedule={
"hour": 0,
"minute": 0,
"snapshots_to_keep": 0,
},
hourly_schedule={
"minute": 0,
"snapshots_to_keep": 0,
},
location="string",
monthly_schedule={
"days_of_months": [0],
"hour": 0,
"minute": 0,
"snapshots_to_keep": 0,
},
name="string",
tags={
"string": "string",
},
weekly_schedule={
"days_of_weeks": ["string"],
"hour": 0,
"minute": 0,
"snapshots_to_keep": 0,
})
const snapshotPolicyResource = new azure.netapp.SnapshotPolicy("snapshotPolicyResource", {
accountName: "string",
enabled: false,
resourceGroupName: "string",
dailySchedule: {
hour: 0,
minute: 0,
snapshotsToKeep: 0,
},
hourlySchedule: {
minute: 0,
snapshotsToKeep: 0,
},
location: "string",
monthlySchedule: {
daysOfMonths: [0],
hour: 0,
minute: 0,
snapshotsToKeep: 0,
},
name: "string",
tags: {
string: "string",
},
weeklySchedule: {
daysOfWeeks: ["string"],
hour: 0,
minute: 0,
snapshotsToKeep: 0,
},
});
type: azure:netapp:SnapshotPolicy
properties:
accountName: string
dailySchedule:
hour: 0
minute: 0
snapshotsToKeep: 0
enabled: false
hourlySchedule:
minute: 0
snapshotsToKeep: 0
location: string
monthlySchedule:
daysOfMonths:
- 0
hour: 0
minute: 0
snapshotsToKeep: 0
name: string
resourceGroupName: string
tags:
string: string
weeklySchedule:
daysOfWeeks:
- string
hour: 0
minute: 0
snapshotsToKeep: 0
SnapshotPolicy 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 SnapshotPolicy resource accepts the following input properties:
- Account
Name string - The name of the NetApp Account in which the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
- Enabled bool
- Defines that the NetApp Snapshot Policy is enabled or not.
- Resource
Group stringName - The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
- Daily
Schedule SnapshotPolicy Daily Schedule - Sets a daily snapshot schedule. See details in below
daily_scheduleblock. - Hourly
Schedule SnapshotPolicy Hourly Schedule - Sets an hourly snapshot schedule. See details in below
hourly_scheduleblock. - Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Monthly
Schedule SnapshotPolicy Monthly Schedule - Sets a monthly snapshot schedule. See details in below
monthly_scheduleblock. - Name string
- The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
- Dictionary<string, string>
- Weekly
Schedule SnapshotPolicy Weekly Schedule - Sets a weekly snapshot schedule. See details in below
weekly_scheduleblock.
- Account
Name string - The name of the NetApp Account in which the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
- Enabled bool
- Defines that the NetApp Snapshot Policy is enabled or not.
- Resource
Group stringName - The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
- Daily
Schedule SnapshotPolicy Daily Schedule Args - Sets a daily snapshot schedule. See details in below
daily_scheduleblock. - Hourly
Schedule SnapshotPolicy Hourly Schedule Args - Sets an hourly snapshot schedule. See details in below
hourly_scheduleblock. - Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Monthly
Schedule SnapshotPolicy Monthly Schedule Args - Sets a monthly snapshot schedule. See details in below
monthly_scheduleblock. - Name string
- The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
- map[string]string
- Weekly
Schedule SnapshotPolicy Weekly Schedule Args - Sets a weekly snapshot schedule. See details in below
weekly_scheduleblock.
- account
Name String - The name of the NetApp Account in which the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
- enabled Boolean
- Defines that the NetApp Snapshot Policy is enabled or not.
- resource
Group StringName - The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
- daily
Schedule SnapshotPolicy Daily Schedule - Sets a daily snapshot schedule. See details in below
daily_scheduleblock. - hourly
Schedule SnapshotPolicy Hourly Schedule - Sets an hourly snapshot schedule. See details in below
hourly_scheduleblock. - location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- monthly
Schedule SnapshotPolicy Monthly Schedule - Sets a monthly snapshot schedule. See details in below
monthly_scheduleblock. - name String
- The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
- Map<String,String>
- weekly
Schedule SnapshotPolicy Weekly Schedule - Sets a weekly snapshot schedule. See details in below
weekly_scheduleblock.
- account
Name string - The name of the NetApp Account in which the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
- enabled boolean
- Defines that the NetApp Snapshot Policy is enabled or not.
- resource
Group stringName - The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
- daily
Schedule SnapshotPolicy Daily Schedule - Sets a daily snapshot schedule. See details in below
daily_scheduleblock. - hourly
Schedule SnapshotPolicy Hourly Schedule - Sets an hourly snapshot schedule. See details in below
hourly_scheduleblock. - location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- monthly
Schedule SnapshotPolicy Monthly Schedule - Sets a monthly snapshot schedule. See details in below
monthly_scheduleblock. - name string
- The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
- {[key: string]: string}
- weekly
Schedule SnapshotPolicy Weekly Schedule - Sets a weekly snapshot schedule. See details in below
weekly_scheduleblock.
- account_
name str - The name of the NetApp Account in which the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
- enabled bool
- Defines that the NetApp Snapshot Policy is enabled or not.
- resource_
group_ strname - The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
- daily_
schedule SnapshotPolicy Daily Schedule Args - Sets a daily snapshot schedule. See details in below
daily_scheduleblock. - hourly_
schedule SnapshotPolicy Hourly Schedule Args - Sets an hourly snapshot schedule. See details in below
hourly_scheduleblock. - location str
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- monthly_
schedule SnapshotPolicy Monthly Schedule Args - Sets a monthly snapshot schedule. See details in below
monthly_scheduleblock. - name str
- The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
- Mapping[str, str]
- weekly_
schedule SnapshotPolicy Weekly Schedule Args - Sets a weekly snapshot schedule. See details in below
weekly_scheduleblock.
- account
Name String - The name of the NetApp Account in which the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
- enabled Boolean
- Defines that the NetApp Snapshot Policy is enabled or not.
- resource
Group StringName - The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
- daily
Schedule Property Map - Sets a daily snapshot schedule. See details in below
daily_scheduleblock. - hourly
Schedule Property Map - Sets an hourly snapshot schedule. See details in below
hourly_scheduleblock. - location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- monthly
Schedule Property Map - Sets a monthly snapshot schedule. See details in below
monthly_scheduleblock. - name String
- The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
- Map<String>
- weekly
Schedule Property Map - Sets a weekly snapshot schedule. See details in below
weekly_scheduleblock.
Outputs
All input properties are implicitly available as output properties. Additionally, the SnapshotPolicy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SnapshotPolicy Resource
Get an existing SnapshotPolicy 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?: SnapshotPolicyState, opts?: CustomResourceOptions): SnapshotPolicy@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_name: Optional[str] = None,
daily_schedule: Optional[SnapshotPolicyDailyScheduleArgs] = None,
enabled: Optional[bool] = None,
hourly_schedule: Optional[SnapshotPolicyHourlyScheduleArgs] = None,
location: Optional[str] = None,
monthly_schedule: Optional[SnapshotPolicyMonthlyScheduleArgs] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
weekly_schedule: Optional[SnapshotPolicyWeeklyScheduleArgs] = None) -> SnapshotPolicyfunc GetSnapshotPolicy(ctx *Context, name string, id IDInput, state *SnapshotPolicyState, opts ...ResourceOption) (*SnapshotPolicy, error)public static SnapshotPolicy Get(string name, Input<string> id, SnapshotPolicyState? state, CustomResourceOptions? opts = null)public static SnapshotPolicy get(String name, Output<String> id, SnapshotPolicyState state, CustomResourceOptions options)resources: _: type: azure:netapp:SnapshotPolicy get: id: ${id}- 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.
- Account
Name string - The name of the NetApp Account in which the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
- Daily
Schedule SnapshotPolicy Daily Schedule - Sets a daily snapshot schedule. See details in below
daily_scheduleblock. - Enabled bool
- Defines that the NetApp Snapshot Policy is enabled or not.
- Hourly
Schedule SnapshotPolicy Hourly Schedule - Sets an hourly snapshot schedule. See details in below
hourly_scheduleblock. - Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Monthly
Schedule SnapshotPolicy Monthly Schedule - Sets a monthly snapshot schedule. See details in below
monthly_scheduleblock. - Name string
- The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
- Dictionary<string, string>
- Weekly
Schedule SnapshotPolicy Weekly Schedule - Sets a weekly snapshot schedule. See details in below
weekly_scheduleblock.
- Account
Name string - The name of the NetApp Account in which the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
- Daily
Schedule SnapshotPolicy Daily Schedule Args - Sets a daily snapshot schedule. See details in below
daily_scheduleblock. - Enabled bool
- Defines that the NetApp Snapshot Policy is enabled or not.
- Hourly
Schedule SnapshotPolicy Hourly Schedule Args - Sets an hourly snapshot schedule. See details in below
hourly_scheduleblock. - Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Monthly
Schedule SnapshotPolicy Monthly Schedule Args - Sets a monthly snapshot schedule. See details in below
monthly_scheduleblock. - Name string
- The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
- map[string]string
- Weekly
Schedule SnapshotPolicy Weekly Schedule Args - Sets a weekly snapshot schedule. See details in below
weekly_scheduleblock.
- account
Name String - The name of the NetApp Account in which the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
- daily
Schedule SnapshotPolicy Daily Schedule - Sets a daily snapshot schedule. See details in below
daily_scheduleblock. - enabled Boolean
- Defines that the NetApp Snapshot Policy is enabled or not.
- hourly
Schedule SnapshotPolicy Hourly Schedule - Sets an hourly snapshot schedule. See details in below
hourly_scheduleblock. - location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- monthly
Schedule SnapshotPolicy Monthly Schedule - Sets a monthly snapshot schedule. See details in below
monthly_scheduleblock. - name String
- The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
- Map<String,String>
- weekly
Schedule SnapshotPolicy Weekly Schedule - Sets a weekly snapshot schedule. See details in below
weekly_scheduleblock.
- account
Name string - The name of the NetApp Account in which the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
- daily
Schedule SnapshotPolicy Daily Schedule - Sets a daily snapshot schedule. See details in below
daily_scheduleblock. - enabled boolean
- Defines that the NetApp Snapshot Policy is enabled or not.
- hourly
Schedule SnapshotPolicy Hourly Schedule - Sets an hourly snapshot schedule. See details in below
hourly_scheduleblock. - location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- monthly
Schedule SnapshotPolicy Monthly Schedule - Sets a monthly snapshot schedule. See details in below
monthly_scheduleblock. - name string
- The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
- resource
Group stringName - The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
- {[key: string]: string}
- weekly
Schedule SnapshotPolicy Weekly Schedule - Sets a weekly snapshot schedule. See details in below
weekly_scheduleblock.
- account_
name str - The name of the NetApp Account in which the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
- daily_
schedule SnapshotPolicy Daily Schedule Args - Sets a daily snapshot schedule. See details in below
daily_scheduleblock. - enabled bool
- Defines that the NetApp Snapshot Policy is enabled or not.
- hourly_
schedule SnapshotPolicy Hourly Schedule Args - Sets an hourly snapshot schedule. See details in below
hourly_scheduleblock. - location str
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- monthly_
schedule SnapshotPolicy Monthly Schedule Args - Sets a monthly snapshot schedule. See details in below
monthly_scheduleblock. - name str
- The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
- resource_
group_ strname - The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
- Mapping[str, str]
- weekly_
schedule SnapshotPolicy Weekly Schedule Args - Sets a weekly snapshot schedule. See details in below
weekly_scheduleblock.
- account
Name String - The name of the NetApp Account in which the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
- daily
Schedule Property Map - Sets a daily snapshot schedule. See details in below
daily_scheduleblock. - enabled Boolean
- Defines that the NetApp Snapshot Policy is enabled or not.
- hourly
Schedule Property Map - Sets an hourly snapshot schedule. See details in below
hourly_scheduleblock. - location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- monthly
Schedule Property Map - Sets a monthly snapshot schedule. See details in below
monthly_scheduleblock. - name String
- The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
- Map<String>
- weekly
Schedule Property Map - Sets a weekly snapshot schedule. See details in below
weekly_scheduleblock.
Supporting Types
SnapshotPolicyDailySchedule, SnapshotPolicyDailyScheduleArgs
- Hour int
- Hour of the day that the snapshots will be created, valid range is from 0 to 23.
- Minute int
- Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
- Snapshots
To intKeep - How many hourly snapshots to keep, valid range is from 0 to 255.
- Hour int
- Hour of the day that the snapshots will be created, valid range is from 0 to 23.
- Minute int
- Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
- Snapshots
To intKeep - How many hourly snapshots to keep, valid range is from 0 to 255.
- hour Integer
- Hour of the day that the snapshots will be created, valid range is from 0 to 23.
- minute Integer
- Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
- snapshots
To IntegerKeep - How many hourly snapshots to keep, valid range is from 0 to 255.
- hour number
- Hour of the day that the snapshots will be created, valid range is from 0 to 23.
- minute number
- Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
- snapshots
To numberKeep - How many hourly snapshots to keep, valid range is from 0 to 255.
- hour int
- Hour of the day that the snapshots will be created, valid range is from 0 to 23.
- minute int
- Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
- snapshots_
to_ intkeep - How many hourly snapshots to keep, valid range is from 0 to 255.
- hour Number
- Hour of the day that the snapshots will be created, valid range is from 0 to 23.
- minute Number
- Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
- snapshots
To NumberKeep - How many hourly snapshots to keep, valid range is from 0 to 255.
SnapshotPolicyHourlySchedule, SnapshotPolicyHourlyScheduleArgs
- Minute int
- Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
- Snapshots
To intKeep - How many hourly snapshots to keep, valid range is from 0 to 255.
- Minute int
- Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
- Snapshots
To intKeep - How many hourly snapshots to keep, valid range is from 0 to 255.
- minute Integer
- Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
- snapshots
To IntegerKeep - How many hourly snapshots to keep, valid range is from 0 to 255.
- minute number
- Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
- snapshots
To numberKeep - How many hourly snapshots to keep, valid range is from 0 to 255.
- minute int
- Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
- snapshots_
to_ intkeep - How many hourly snapshots to keep, valid range is from 0 to 255.
- minute Number
- Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
- snapshots
To NumberKeep - How many hourly snapshots to keep, valid range is from 0 to 255.
SnapshotPolicyMonthlySchedule, SnapshotPolicyMonthlyScheduleArgs
- Days
Of List<int>Months - Hour int
- Hour of the day that the snapshots will be created, valid range is from 0 to 23.
- Minute int
- Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
- Snapshots
To intKeep - How many hourly snapshots to keep, valid range is from 0 to 255.
- Days
Of []intMonths - Hour int
- Hour of the day that the snapshots will be created, valid range is from 0 to 23.
- Minute int
- Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
- Snapshots
To intKeep - How many hourly snapshots to keep, valid range is from 0 to 255.
- days
Of List<Integer>Months - hour Integer
- Hour of the day that the snapshots will be created, valid range is from 0 to 23.
- minute Integer
- Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
- snapshots
To IntegerKeep - How many hourly snapshots to keep, valid range is from 0 to 255.
- days
Of number[]Months - hour number
- Hour of the day that the snapshots will be created, valid range is from 0 to 23.
- minute number
- Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
- snapshots
To numberKeep - How many hourly snapshots to keep, valid range is from 0 to 255.
- days_
of_ Sequence[int]months - hour int
- Hour of the day that the snapshots will be created, valid range is from 0 to 23.
- minute int
- Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
- snapshots_
to_ intkeep - How many hourly snapshots to keep, valid range is from 0 to 255.
- days
Of List<Number>Months - hour Number
- Hour of the day that the snapshots will be created, valid range is from 0 to 23.
- minute Number
- Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
- snapshots
To NumberKeep - How many hourly snapshots to keep, valid range is from 0 to 255.
SnapshotPolicyWeeklySchedule, SnapshotPolicyWeeklyScheduleArgs
- Days
Of List<string>Weeks - List of the week days using English names when the snapshots will be created.
- Hour int
- Hour of the day that the snapshots will be created, valid range is from 0 to 23.
- Minute int
- Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
- Snapshots
To intKeep - How many hourly snapshots to keep, valid range is from 0 to 255.
- Days
Of []stringWeeks - List of the week days using English names when the snapshots will be created.
- Hour int
- Hour of the day that the snapshots will be created, valid range is from 0 to 23.
- Minute int
- Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
- Snapshots
To intKeep - How many hourly snapshots to keep, valid range is from 0 to 255.
- days
Of List<String>Weeks - List of the week days using English names when the snapshots will be created.
- hour Integer
- Hour of the day that the snapshots will be created, valid range is from 0 to 23.
- minute Integer
- Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
- snapshots
To IntegerKeep - How many hourly snapshots to keep, valid range is from 0 to 255.
- days
Of string[]Weeks - List of the week days using English names when the snapshots will be created.
- hour number
- Hour of the day that the snapshots will be created, valid range is from 0 to 23.
- minute number
- Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
- snapshots
To numberKeep - How many hourly snapshots to keep, valid range is from 0 to 255.
- days_
of_ Sequence[str]weeks - List of the week days using English names when the snapshots will be created.
- hour int
- Hour of the day that the snapshots will be created, valid range is from 0 to 23.
- minute int
- Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
- snapshots_
to_ intkeep - How many hourly snapshots to keep, valid range is from 0 to 255.
- days
Of List<String>Weeks - List of the week days using English names when the snapshots will be created.
- hour Number
- Hour of the day that the snapshots will be created, valid range is from 0 to 23.
- minute Number
- Minute of the hour that the snapshots will be created, valid range is from 0 to 59.
- snapshots
To NumberKeep - How many hourly snapshots to keep, valid range is from 0 to 255.
Import
NetApp Snapshot Policy can be imported using the resource id, e.g.
$ pulumi import azure:netapp/snapshotPolicy:SnapshotPolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/snapshotPolicies/snapshotpolicy1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi