Microsoft. NetApp netAppAccounts/capacityPools/volumes/snapshots 2026-03-01

Bicep-resourcedefinitie

Het resourcetype netAppAccounts/capacityPools/volumes/snapshots kan worden geïmplementeerd met bewerkingen die zijn gericht op:

Zie wijzigingslogboek voor een lijst met gewijzigde eigenschappen in elke API-versie.

Gebruiksvoorbeelden

Voorbeelden van Bicep

Een eenvoudig voorbeeld van het implementeren van NetApp Snapshot.

param resourceName string = 'acctest0001'
param location string = 'westeurope'

resource netAppAccount 'Microsoft.NetApp/netAppAccounts@2022-05-01' = {
  name: resourceName
  location: location
  properties: {
    activeDirectories: []
  }
}

resource capacityPool 'Microsoft.NetApp/netAppAccounts/capacityPools@2022-05-01' = {
  name: resourceName
  location: location
  parent: netAppAccount
  properties: {
    serviceLevel: 'Premium'
    size: 4398046511104
  }
}

resource virtualNetwork 'Microsoft.Network/virtualNetworks@2022-07-01' = {
  name: resourceName
  location: location
  properties: {
    addressSpace: {
      addressPrefixes: [
        '10.0.0.0/16'
      ]
    }
    dhcpOptions: {
      dnsServers: []
    }
    subnets: []
  }
}

resource subnet 'Microsoft.Network/virtualNetworks/subnets@2022-07-01' = {
  name: resourceName
  parent: virtualNetwork
  properties: {
    addressPrefix: '10.0.2.0/24'
    delegations: [
      {
        name: 'netapp'
        properties: {
          serviceName: 'Microsoft.Netapp/volumes'
        }
      }
    ]
    privateEndpointNetworkPolicies: 'Enabled'
    privateLinkServiceNetworkPolicies: 'Enabled'
    serviceEndpointPolicies: []
    serviceEndpoints: []
  }
}

resource volume 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes@2022-05-01' = {
  name: resourceName
  location: location
  parent: capacityPool
  properties: {
    avsDataStore: 'Disabled'
    creationToken: 'my-unique-file-path-230630033642692134'
    dataProtection: {}
    exportPolicy: {
      rules: []
    }
    networkFeatures: 'Basic'
    protocolTypes: [
      'NFSv3'
    ]
    securityStyle: 'Unix'
    serviceLevel: 'Premium'
    snapshotDirectoryVisible: false
    snapshotId: ''
    subnetId: subnet.id
    usageThreshold: any('1.073741824e+11')
    volumeType: ''
  }
}

resource snapshot 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots@2022-05-01' = {
  name: resourceName
  location: location
  parent: volume
}

Resource-indeling

Als u een Resource microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots wilt maken, voegt u de volgende Bicep toe aan uw sjabloon.

resource symbolicname 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots@2026-03-01' = {
  parent: resourceSymbolicName
  location: 'string'
  name: 'string'
  properties: {}
}

Eigenschapswaarden

Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots

Naam Description Waarde
location Bronlocatie tekenreeks (vereist)
naam De resourcenaam tekenreeks (vereist)
parent In Bicep kun je de ouderresource voor een kindresource specificeren. U hoeft deze eigenschap alleen toe te voegen wanneer de onderliggende resource buiten de bovenliggende resource wordt gedeclareerd.

Zie onderliggende resource buiten de bovenliggende resourcevoor meer informatie.
Symbolische naam voor resource van het type: netAppAccounts/capacityPools/volumes
properties Eigenschappen van momentopname SnapshotProperties

SnapshotProperties

Naam Description Waarde

Resourcedefinitie van ARM-sjabloon

Het resourcetype netAppAccounts/capacityPools/volumes/snapshots kan worden geïmplementeerd met bewerkingen die zijn gericht op:

Gebruiksvoorbeelden

Resource-indeling

Als u een resource voor Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots wilt maken, voegt u de volgende JSON toe aan uw sjabloon.

{
  "type": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots",
  "apiVersion": "2026-03-01",
  "name": "string",
  "location": "string",
  "properties": {
  }
}

Eigenschapswaarden

Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots

Naam Description Waarde
apiVersion De API-versie '2026-03-01'
location Bronlocatie tekenreeks (vereist)
naam De resourcenaam tekenreeks (vereist)
properties Eigenschappen van momentopname SnapshotProperties
type Het brontype 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'

SnapshotProperties

Naam Description Waarde

Resourcedefinitie van Terraform (AzAPI-provider)

Het resourcetype netAppAccounts/capacityPools/volumes/snapshots kan worden geïmplementeerd met bewerkingen die zijn gericht op:

  • Resourcegroepen Voor een lijst van gewijzigde eigenschappen in elke API-versie, zie wijzigingslogboek.

Gebruiksvoorbeelden

Terraform-voorbeelden

Een eenvoudig voorbeeld van het implementeren van NetApp Snapshot.

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 = "westeurope"
}

resource "azapi_resource" "resourceGroup" {
  type     = "Microsoft.Resources/resourceGroups@2020-06-01"
  name     = var.resource_name
  location = var.location
}

resource "azapi_resource" "virtualNetwork" {
  type      = "Microsoft.Network/virtualNetworks@2022-07-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
  body = {
    properties = {
      addressSpace = {
        addressPrefixes = [
          "10.0.0.0/16",
        ]
      }
      dhcpOptions = {
        dnsServers = [
        ]
      }
      subnets = [
      ]
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
  lifecycle {
    ignore_changes = [body.properties.subnets]
  }
}

resource "azapi_resource" "netAppAccount" {
  type      = "Microsoft.NetApp/netAppAccounts@2022-05-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
  body = {
    properties = {
      activeDirectories = [
      ]
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

resource "azapi_resource" "subnet" {
  type      = "Microsoft.Network/virtualNetworks/subnets@2022-07-01"
  parent_id = azapi_resource.virtualNetwork.id
  name      = var.resource_name
  body = {
    properties = {
      addressPrefix = "10.0.2.0/24"
      delegations = [
        {
          name = "netapp"
          properties = {
            serviceName = "Microsoft.Netapp/volumes"
          }
        },
      ]
      privateEndpointNetworkPolicies    = "Enabled"
      privateLinkServiceNetworkPolicies = "Enabled"
      serviceEndpointPolicies = [
      ]
      serviceEndpoints = [
      ]
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

resource "azapi_resource" "capacityPool" {
  type      = "Microsoft.NetApp/netAppAccounts/capacityPools@2022-05-01"
  parent_id = azapi_resource.netAppAccount.id
  name      = var.resource_name
  location  = var.location
  body = {
    properties = {
      serviceLevel = "Premium"
      size         = 4.398046511104e+12
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

resource "azapi_resource" "volume" {
  type      = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes@2022-05-01"
  parent_id = azapi_resource.capacityPool.id
  name      = var.resource_name
  location  = var.location
  body = {
    properties = {
      avsDataStore  = "Disabled"
      creationToken = "my-unique-file-path-230630033642692134"
      dataProtection = {
      }
      exportPolicy = {
        rules = [
        ]
      }
      networkFeatures = "Basic"
      protocolTypes = [
        "NFSv3",
      ]
      securityStyle            = "Unix"
      serviceLevel             = "Premium"
      snapshotDirectoryVisible = false
      snapshotId               = ""
      subnetId                 = azapi_resource.subnet.id
      usageThreshold           = 1.073741824e+11
      volumeType               = ""
    }
    zones = [
    ]
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

resource "azapi_resource" "snapshot" {
  type                      = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots@2022-05-01"
  parent_id                 = azapi_resource.volume.id
  name                      = var.resource_name
  location                  = var.location
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

Resource-indeling

Als u een Resource microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots wilt maken, voegt u de volgende Terraform toe aan uw sjabloon.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots@2026-03-01"
  name = "string"
  parent_id = "string"
  location = "string"
  body = {
    properties = {
    }
  }
}

Eigenschapswaarden

Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots

Naam Description Waarde
location Bronlocatie tekenreeks (vereist)
naam De resourcenaam tekenreeks (vereist)
parent_id De id van de resource die het bovenliggende item voor deze resource is. Id voor resource van het type: netAppAccounts/capacityPools/volumes
properties Eigenschappen van momentopname SnapshotProperties
type Het brontype "Microsoft. NetApp/netAppAccounts/capacityPools/volumes/snapshots@2026-03-01"

SnapshotProperties

Naam Description Waarde