Microsoft.NetApp netAppAccounts/backupPolicies

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@2024-07-01' = {
  parent: resourceSymbolicName
  location: 'string'
  name: 'string'
  properties: {
    dailyBackupsToKeep: int
    enabled: bool
    monthlyBackupsToKeep: int
    weeklyBackupsToKeep: int
  }
  tags: {
    {customized property}: 'string'
  }
}

Property values

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

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

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": "2024-07-01",
  "name": "string",
  "location": "string",
  "properties": {
    "dailyBackupsToKeep": "int",
    "enabled": "bool",
    "monthlyBackupsToKeep": "int",
    "weeklyBackupsToKeep": "int"
  },
  "tags": {
    "{customized property}": "string"
  }
}

Property values

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

Microsoft.NetApp/netAppAccounts/backupPolicies

Name Description Value
apiVersion The api version '2024-07-01'
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'

TrackedResourceTags

Name Description Value

Terraform (AzAPI provider) resource definition

The netAppAccounts/backupPolicies resource type can be deployed with operations that target:

  • Resource groups

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@2024-07-01"
  name = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = jsonencode({
    properties = {
      dailyBackupsToKeep = int
      enabled = bool
      monthlyBackupsToKeep = int
      weeklyBackupsToKeep = int
    }
  })
}

Property values

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

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@2024-07-01"

TrackedResourceTags

Name Description Value