Microsoft.NetApp netAppAccounts/snapshotPolicies 2020-09-01

Template format

To create a Microsoft.NetApp/netAppAccounts/snapshotPolicies resource, add the following JSON to the resources section of your template.

{
  "name": "string",
  "type": "Microsoft.NetApp/netAppAccounts/snapshotPolicies",
  "apiVersion": "2020-09-01",
  "location": "string",
  "tags": {},
  "properties": {
    "hourlySchedule": {
      "snapshotsToKeep": "integer",
      "minute": "integer",
      "usedBytes": "integer"
    },
    "dailySchedule": {
      "snapshotsToKeep": "integer",
      "hour": "integer",
      "minute": "integer",
      "usedBytes": "integer"
    },
    "weeklySchedule": {
      "snapshotsToKeep": "integer",
      "day": "string",
      "hour": "integer",
      "minute": "integer",
      "usedBytes": "integer"
    },
    "monthlySchedule": {
      "snapshotsToKeep": "integer",
      "daysOfMonth": "string",
      "hour": "integer",
      "minute": "integer",
      "usedBytes": "integer"
    },
    "enabled": "boolean"
  }
}

Property values

The following tables describe the values you need to set in the schema.

Microsoft.NetApp/netAppAccounts/snapshotPolicies object

Note

In Bicep, type and apiVersion are specified in the first line of the resource declaration. Use the format <type>@<apiVersion>. Don't set those properties in the resource body.

Name Type Required Value
name string Yes The name of the snapshot policy target
type enum Yes For JSON -snapshotPolicies
-or-
Microsoft.NetApp/netAppAccounts/snapshotPolicies

See Set name and type for child resources.
apiVersion enum Yes For JSON - 2020-09-01
location string Yes Resource location
tags object No Resource tags
properties object Yes Snapshot policy Properties - SnapshotPolicyProperties object

SnapshotPolicyProperties object

Name Type Required Value
hourlySchedule object No Schedule for hourly snapshots - HourlySchedule object
dailySchedule object No Schedule for daily snapshots - DailySchedule object
weeklySchedule object No Schedule for weekly snapshots - WeeklySchedule object
monthlySchedule object No Schedule for monthly snapshots - MonthlySchedule object
enabled boolean No The property to decide policy is enabled or not

HourlySchedule object

Name Type Required Value
snapshotsToKeep integer No Hourly snapshot count to keep
minute integer No Indicates which minute snapshot should be taken
usedBytes integer No Resource size in bytes, current storage usage for the volume in bytes

DailySchedule object

Name Type Required Value
snapshotsToKeep integer No Daily snapshot count to keep
hour integer No Indicates which hour in UTC timezone a snapshot should be taken
minute integer No Indicates which minute snapshot should be taken
usedBytes integer No Resource size in bytes, current storage usage for the volume in bytes

WeeklySchedule object

Name Type Required Value
snapshotsToKeep integer No Weekly snapshot count to keep
day string No Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english
hour integer No Indicates which hour in UTC timezone a snapshot should be taken
minute integer No Indicates which minute snapshot should be taken
usedBytes integer No Resource size in bytes, current storage usage for the volume in bytes

MonthlySchedule object

Name Type Required Value
snapshotsToKeep integer No Monthly snapshot count to keep
daysOfMonth string No Indicates which days of the month snapshot should be taken. A comma delimited string.
hour integer No Indicates which hour in UTC timezone a snapshot should be taken
minute integer No Indicates which minute snapshot should be taken
usedBytes integer No Resource size in bytes, current storage usage for the volume in bytes