Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
- Latest
- 2025-09-01
- 2025-09-01-preview
- 2025-08-01
- 2025-08-01-preview
- 2025-07-01-preview
- 2025-06-01
- 2025-03-01
- 2025-03-01-preview
- 2025-01-01
- 2025-01-01-preview
- 2024-09-01
- 2024-09-01-preview
- 2024-07-01
- 2024-07-01-preview
- 2024-05-01
- 2024-05-01-preview
- 2024-03-01
- 2024-03-01-preview
- 2024-01-01
- 2023-11-01
- 2023-11-01-preview
- 2023-07-01
- 2023-07-01-preview
- 2023-05-01
- 2023-05-01-preview
- 2022-11-01
- 2022-11-01-preview
- 2022-09-01
- 2022-05-01
- 2022-03-01
- 2022-01-01
- 2021-10-01
- 2021-08-01
- 2021-06-01
- 2021-04-01
- 2021-04-01-preview
- 2021-02-01
- 2020-12-01
- 2020-11-01
- 2020-09-01
- 2020-08-01
- 2020-07-01
- 2020-06-01
- 2020-05-01
Bicep resource definition
The netAppAccounts/backupPolicies resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.NetApp/netAppAccounts/backupPolicies resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.NetApp/netAppAccounts/backupPolicies@2023-05-01-preview' = {
parent: resourceSymbolicName
location: 'string'
name: 'string'
properties: {
dailyBackupsToKeep: int
enabled: bool
monthlyBackupsToKeep: int
weeklyBackupsToKeep: int
}
tags: {
{customized property}: 'string'
}
}
Property Values
Microsoft.NetApp/netAppAccounts/backupPolicies
| Name | Description | Value |
|---|---|---|
| location | The geo-location where the resource lives | string (required) |
| name | The resource name | string (required) |
| parent | In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource. For more information, see Child resource outside parent resource. |
Symbolic name for resource of type: netAppAccounts |
| properties | Backup policy Properties | BackupPolicyProperties (required) |
| tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
BackupPolicyProperties
| Name | Description | Value |
|---|---|---|
| dailyBackupsToKeep | Daily backups count to keep | int |
| enabled | The property to decide policy is enabled or not | bool |
| monthlyBackupsToKeep | Monthly backups count to keep | int |
| weeklyBackupsToKeep | Weekly backups count to keep | int |
TrackedResourceTags
| Name | Description | Value |
|---|
ARM template resource definition
The netAppAccounts/backupPolicies resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.NetApp/netAppAccounts/backupPolicies resource, add the following JSON to your template.
{
"type": "Microsoft.NetApp/netAppAccounts/backupPolicies",
"apiVersion": "2023-05-01-preview",
"name": "string",
"location": "string",
"properties": {
"dailyBackupsToKeep": "int",
"enabled": "bool",
"monthlyBackupsToKeep": "int",
"weeklyBackupsToKeep": "int"
},
"tags": {
"{customized property}": "string"
}
}
Property Values
Microsoft.NetApp/netAppAccounts/backupPolicies
| Name | Description | Value |
|---|---|---|
| apiVersion | The api version | '2023-05-01-preview' |
| location | The geo-location where the resource lives | string (required) |
| name | The resource name | string (required) |
| properties | Backup policy Properties | BackupPolicyProperties (required) |
| tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
| type | The resource type | 'Microsoft.NetApp/netAppAccounts/backupPolicies' |
BackupPolicyProperties
| Name | Description | Value |
|---|---|---|
| dailyBackupsToKeep | Daily backups count to keep | int |
| enabled | The property to decide policy is enabled or not | bool |
| monthlyBackupsToKeep | Monthly backups count to keep | int |
| weeklyBackupsToKeep | Weekly backups count to keep | int |
TrackedResourceTags
| Name | Description | Value |
|---|
Usage Examples
Terraform (AzAPI provider) resource definition
The netAppAccounts/backupPolicies resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.NetApp/netAppAccounts/backupPolicies resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.NetApp/netAppAccounts/backupPolicies@2023-05-01-preview"
name = "string"
parent_id = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
dailyBackupsToKeep = int
enabled = bool
monthlyBackupsToKeep = int
weeklyBackupsToKeep = int
}
}
}
Property Values
Microsoft.NetApp/netAppAccounts/backupPolicies
| Name | Description | Value |
|---|---|---|
| location | The geo-location where the resource lives | string (required) |
| name | The resource name | string (required) |
| parent_id | The ID of the resource that is the parent for this resource. | ID for resource of type: netAppAccounts |
| properties | Backup policy Properties | BackupPolicyProperties (required) |
| tags | Resource tags | Dictionary of tag names and values. |
| type | The resource type | "Microsoft.NetApp/netAppAccounts/backupPolicies@2023-05-01-preview" |
BackupPolicyProperties
| Name | Description | Value |
|---|---|---|
| dailyBackupsToKeep | Daily backups count to keep | int |
| enabled | The property to decide policy is enabled or not | bool |
| monthlyBackupsToKeep | Monthly backups count to keep | int |
| weeklyBackupsToKeep | Weekly backups count to keep | int |
TrackedResourceTags
| Name | Description | Value |
|---|
Usage Examples
Terraform Samples
A basic example of deploying NetApp Backup Policy.
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
}
}
provider "azapi" {
skip_provider_registration = false
}
variable "resource_name" {
type = string
default = "acctest0001"
}
variable "location" {
type = string
default = "westus"
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
tags = {
SkipNRMSNSG = "true"
}
}
resource "azapi_resource" "netAppAccount" {
type = "Microsoft.NetApp/netAppAccounts@2025-01-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {}
}
tags = {
CreatedOnDate = "2023-08-17T08:01:00Z"
SkipASMAzSecPack = "true"
}
}
resource "azapi_resource" "backupPolicy" {
type = "Microsoft.NetApp/netAppAccounts/backupPolicies@2025-01-01"
parent_id = azapi_resource.netAppAccount.id
name = "${var.resource_name}-policy"
location = var.location
body = {
properties = {
dailyBackupsToKeep = 2
enabled = true
monthlyBackupsToKeep = 1
weeklyBackupsToKeep = 1
}
}
}