Microsoft. NetApp netAppAccounts/capacityPools/volumes/snapshots 2024-07-01-preview

Definición de recursos de Bicep

El tipo de recurso netAppAccounts/capacityPools/volumes/snapshots se puede implementar con operaciones destinadas a:

Para obtener una lista de las propiedades modificadas en cada versión de API, consulte registro de cambios.

Ejemplos de uso

Ejemplos de Bicep

Un ejemplo básico de implementación de 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
}

Formato de recurso

Para crear un recurso Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots, agregue el siguiente bicep a la plantilla.

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

Valores de propiedad

Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots

Nombre Descripción Importancia
ubicación Ubicación del recurso string (obligatorio)
nombre El nombre del recurso string (obligatorio)
padre En Bicep, puede especificar el recurso primario para un recurso secundario. Solo tiene que agregar esta propiedad cuando el recurso secundario se declara fuera del recurso primario.

Para obtener más información, consulte recurso secundario fuera del recurso primario.
Nombre simbólico del recurso de tipo: netAppAccounts/capacityPools/volumes
Propiedades Propiedades de instantánea SnapshotProperties de

SnapshotProperties (Propiedades de instantánea)

Nombre Descripción Importancia

Definición de recursos de plantilla de ARM

El tipo de recurso netAppAccounts/capacityPools/volumes/snapshots se puede implementar con operaciones destinadas a:

Ejemplos de uso

Formato de recurso

Para crear un recurso Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots, agregue el siguiente JSON a la plantilla.

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

Valores de propiedad

Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots

Nombre Descripción Importancia
apiVersion La versión de api '2024-07-01-avance'
ubicación Ubicación del recurso string (obligatorio)
nombre El nombre del recurso string (obligatorio)
Propiedades Propiedades de instantánea SnapshotProperties de
tipo El tipo de recurso "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots"

SnapshotProperties (Propiedades de instantánea)

Nombre Descripción Importancia

Definición de recursos de Terraform (proveedor AzAPI)

El tipo de recurso netAppAccounts/capacityPools/volumes/snapshots se puede implementar con operaciones destinadas a:

  • Grupos de recursos Para una lista de propiedades modificadas en cada versión de la API, consulte registro de cambios.

Ejemplos de uso

Ejemplos de Terraform

Un ejemplo básico de implementación de 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    = ["*"]
}

Formato de recurso

Para crear un recurso Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots, agregue el siguiente terraform a la plantilla.

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

Valores de propiedad

Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots

Nombre Descripción Importancia
ubicación Ubicación del recurso string (obligatorio)
nombre El nombre del recurso string (obligatorio)
parent_id Identificador del recurso que es el elemento primario de este recurso. Identificador del recurso de tipo : netAppAccounts/capacityPools/volumes
Propiedades Propiedades de instantánea SnapshotProperties de
tipo El tipo de recurso "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots@2024-07-01-preview"

SnapshotProperties (Propiedades de instantánea)

Nombre Descripción Importancia