1. Packages
  2. Packages
  3. Azure Classic
  4. API Docs
  5. netapp
  6. SnapshotPolicy

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
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:

    AccountName 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.
    ResourceGroupName string
    The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
    DailySchedule SnapshotPolicyDailySchedule
    Sets a daily snapshot schedule. See details in below daily_schedule block.
    HourlySchedule SnapshotPolicyHourlySchedule
    Sets an hourly snapshot schedule. See details in below hourly_schedule block.
    Location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    MonthlySchedule SnapshotPolicyMonthlySchedule
    Sets a monthly snapshot schedule. See details in below monthly_schedule block.
    Name string
    The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
    Tags Dictionary<string, string>
    WeeklySchedule SnapshotPolicyWeeklySchedule
    Sets a weekly snapshot schedule. See details in below weekly_schedule block.
    AccountName 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.
    ResourceGroupName string
    The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
    DailySchedule SnapshotPolicyDailyScheduleArgs
    Sets a daily snapshot schedule. See details in below daily_schedule block.
    HourlySchedule SnapshotPolicyHourlyScheduleArgs
    Sets an hourly snapshot schedule. See details in below hourly_schedule block.
    Location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    MonthlySchedule SnapshotPolicyMonthlyScheduleArgs
    Sets a monthly snapshot schedule. See details in below monthly_schedule block.
    Name string
    The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
    Tags map[string]string
    WeeklySchedule SnapshotPolicyWeeklyScheduleArgs
    Sets a weekly snapshot schedule. See details in below weekly_schedule block.
    accountName 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.
    resourceGroupName String
    The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
    dailySchedule SnapshotPolicyDailySchedule
    Sets a daily snapshot schedule. See details in below daily_schedule block.
    hourlySchedule SnapshotPolicyHourlySchedule
    Sets an hourly snapshot schedule. See details in below hourly_schedule block.
    location String
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    monthlySchedule SnapshotPolicyMonthlySchedule
    Sets a monthly snapshot schedule. See details in below monthly_schedule block.
    name String
    The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
    tags Map<String,String>
    weeklySchedule SnapshotPolicyWeeklySchedule
    Sets a weekly snapshot schedule. See details in below weekly_schedule block.
    accountName 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.
    resourceGroupName string
    The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
    dailySchedule SnapshotPolicyDailySchedule
    Sets a daily snapshot schedule. See details in below daily_schedule block.
    hourlySchedule SnapshotPolicyHourlySchedule
    Sets an hourly snapshot schedule. See details in below hourly_schedule block.
    location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    monthlySchedule SnapshotPolicyMonthlySchedule
    Sets a monthly snapshot schedule. See details in below monthly_schedule block.
    name string
    The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
    tags {[key: string]: string}
    weeklySchedule SnapshotPolicyWeeklySchedule
    Sets a weekly snapshot schedule. See details in below weekly_schedule block.
    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_name str
    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 SnapshotPolicyDailyScheduleArgs
    Sets a daily snapshot schedule. See details in below daily_schedule block.
    hourly_schedule SnapshotPolicyHourlyScheduleArgs
    Sets an hourly snapshot schedule. See details in below hourly_schedule block.
    location str
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    monthly_schedule SnapshotPolicyMonthlyScheduleArgs
    Sets a monthly snapshot schedule. See details in below monthly_schedule block.
    name str
    The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
    tags Mapping[str, str]
    weekly_schedule SnapshotPolicyWeeklyScheduleArgs
    Sets a weekly snapshot schedule. See details in below weekly_schedule block.
    accountName 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.
    resourceGroupName String
    The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
    dailySchedule Property Map
    Sets a daily snapshot schedule. See details in below daily_schedule block.
    hourlySchedule Property Map
    Sets an hourly snapshot schedule. See details in below hourly_schedule block.
    location String
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    monthlySchedule Property Map
    Sets a monthly snapshot schedule. See details in below monthly_schedule block.
    name String
    The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
    tags Map<String>
    weeklySchedule Property Map
    Sets a weekly snapshot schedule. See details in below weekly_schedule block.

    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) -> SnapshotPolicy
    func 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.
    The following state arguments are supported:
    AccountName 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.
    DailySchedule SnapshotPolicyDailySchedule
    Sets a daily snapshot schedule. See details in below daily_schedule block.
    Enabled bool
    Defines that the NetApp Snapshot Policy is enabled or not.
    HourlySchedule SnapshotPolicyHourlySchedule
    Sets an hourly snapshot schedule. See details in below hourly_schedule block.
    Location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    MonthlySchedule SnapshotPolicyMonthlySchedule
    Sets a monthly snapshot schedule. See details in below monthly_schedule block.
    Name string
    The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
    Tags Dictionary<string, string>
    WeeklySchedule SnapshotPolicyWeeklySchedule
    Sets a weekly snapshot schedule. See details in below weekly_schedule block.
    AccountName 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.
    DailySchedule SnapshotPolicyDailyScheduleArgs
    Sets a daily snapshot schedule. See details in below daily_schedule block.
    Enabled bool
    Defines that the NetApp Snapshot Policy is enabled or not.
    HourlySchedule SnapshotPolicyHourlyScheduleArgs
    Sets an hourly snapshot schedule. See details in below hourly_schedule block.
    Location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    MonthlySchedule SnapshotPolicyMonthlyScheduleArgs
    Sets a monthly snapshot schedule. See details in below monthly_schedule block.
    Name string
    The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
    Tags map[string]string
    WeeklySchedule SnapshotPolicyWeeklyScheduleArgs
    Sets a weekly snapshot schedule. See details in below weekly_schedule block.
    accountName 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.
    dailySchedule SnapshotPolicyDailySchedule
    Sets a daily snapshot schedule. See details in below daily_schedule block.
    enabled Boolean
    Defines that the NetApp Snapshot Policy is enabled or not.
    hourlySchedule SnapshotPolicyHourlySchedule
    Sets an hourly snapshot schedule. See details in below hourly_schedule block.
    location String
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    monthlySchedule SnapshotPolicyMonthlySchedule
    Sets a monthly snapshot schedule. See details in below monthly_schedule block.
    name String
    The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
    tags Map<String,String>
    weeklySchedule SnapshotPolicyWeeklySchedule
    Sets a weekly snapshot schedule. See details in below weekly_schedule block.
    accountName 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.
    dailySchedule SnapshotPolicyDailySchedule
    Sets a daily snapshot schedule. See details in below daily_schedule block.
    enabled boolean
    Defines that the NetApp Snapshot Policy is enabled or not.
    hourlySchedule SnapshotPolicyHourlySchedule
    Sets an hourly snapshot schedule. See details in below hourly_schedule block.
    location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    monthlySchedule SnapshotPolicyMonthlySchedule
    Sets a monthly snapshot schedule. See details in below monthly_schedule block.
    name string
    The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
    resourceGroupName string
    The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
    tags {[key: string]: string}
    weeklySchedule SnapshotPolicyWeeklySchedule
    Sets a weekly snapshot schedule. See details in below weekly_schedule block.
    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 SnapshotPolicyDailyScheduleArgs
    Sets a daily snapshot schedule. See details in below daily_schedule block.
    enabled bool
    Defines that the NetApp Snapshot Policy is enabled or not.
    hourly_schedule SnapshotPolicyHourlyScheduleArgs
    Sets an hourly snapshot schedule. See details in below hourly_schedule block.
    location str
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    monthly_schedule SnapshotPolicyMonthlyScheduleArgs
    Sets a monthly snapshot schedule. See details in below monthly_schedule block.
    name str
    The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
    resource_group_name str
    The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
    tags Mapping[str, str]
    weekly_schedule SnapshotPolicyWeeklyScheduleArgs
    Sets a weekly snapshot schedule. See details in below weekly_schedule block.
    accountName 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.
    dailySchedule Property Map
    Sets a daily snapshot schedule. See details in below daily_schedule block.
    enabled Boolean
    Defines that the NetApp Snapshot Policy is enabled or not.
    hourlySchedule Property Map
    Sets an hourly snapshot schedule. See details in below hourly_schedule block.
    location String
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    monthlySchedule Property Map
    Sets a monthly snapshot schedule. See details in below monthly_schedule block.
    name String
    The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
    tags Map<String>
    weeklySchedule Property Map
    Sets a weekly snapshot schedule. See details in below weekly_schedule block.

    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.
    SnapshotsToKeep int
    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.
    SnapshotsToKeep int
    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.
    snapshotsToKeep Integer
    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.
    snapshotsToKeep number
    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_keep int
    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.
    snapshotsToKeep Number
    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.
    SnapshotsToKeep int
    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.
    SnapshotsToKeep int
    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.
    snapshotsToKeep Integer
    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.
    snapshotsToKeep number
    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_keep int
    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.
    snapshotsToKeep Number
    How many hourly snapshots to keep, valid range is from 0 to 255.

    SnapshotPolicyMonthlySchedule, SnapshotPolicyMonthlyScheduleArgs

    DaysOfMonths List<int>
    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.
    SnapshotsToKeep int
    How many hourly snapshots to keep, valid range is from 0 to 255.
    DaysOfMonths []int
    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.
    SnapshotsToKeep int
    How many hourly snapshots to keep, valid range is from 0 to 255.
    daysOfMonths List<Integer>
    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.
    snapshotsToKeep Integer
    How many hourly snapshots to keep, valid range is from 0 to 255.
    daysOfMonths number[]
    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.
    snapshotsToKeep number
    How many hourly snapshots to keep, valid range is from 0 to 255.
    days_of_months Sequence[int]
    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_keep int
    How many hourly snapshots to keep, valid range is from 0 to 255.
    daysOfMonths List<Number>
    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.
    snapshotsToKeep Number
    How many hourly snapshots to keep, valid range is from 0 to 255.

    SnapshotPolicyWeeklySchedule, SnapshotPolicyWeeklyScheduleArgs

    DaysOfWeeks List<string>
    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.
    SnapshotsToKeep int
    How many hourly snapshots to keep, valid range is from 0 to 255.
    DaysOfWeeks []string
    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.
    SnapshotsToKeep int
    How many hourly snapshots to keep, valid range is from 0 to 255.
    daysOfWeeks List<String>
    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.
    snapshotsToKeep Integer
    How many hourly snapshots to keep, valid range is from 0 to 255.
    daysOfWeeks string[]
    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.
    snapshotsToKeep number
    How many hourly snapshots to keep, valid range is from 0 to 255.
    days_of_weeks Sequence[str]
    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_keep int
    How many hourly snapshots to keep, valid range is from 0 to 255.
    daysOfWeeks List<String>
    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.
    snapshotsToKeep Number
    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 azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Viewing docs for Azure v4.42.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial