Microsoft. NetApp netAppAccounts/capacityPools/volumes/volumeQuotaRules 2025-06-01

Bicep kaynak tanımı

netAppAccounts/capacityPools/volumes/volumeQuotaRules kaynak türü, aşağıdakileri hedefleyen işlemlerle dağıtılabilir:

  • kaynak grupları - Bkz. kaynak grubu dağıtım komutları

Her API sürümünde değiştirilen özelliklerin listesi için bkz. değişiklik günlüğü.

Kullanım Örnekleri

Bicep Örnekleri

Birim Kotası Kuralı'nı dağıtmanın temel bir örneği.

param resourceName string = 'acctest0001'
param location string = 'westus'

resource netAppAccount 'Microsoft.NetApp/netAppAccounts@2025-01-01' = {
  name: '${resourceName}-acct'
  location: location
  properties: {}
}

resource capacityPool 'Microsoft.NetApp/netAppAccounts/capacityPools@2025-01-01' = {
  name: '${resourceName}-pool'
  location: location
  parent: netAppAccount
  properties: {
    coolAccess: false
    encryptionType: 'Single'
    qosType: 'Auto'
    serviceLevel: 'Standard'
    size: 4398046511104
  }
}

resource volume 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes@2025-01-01' = {
  name: '${resourceName}-vol'
  location: location
  parent: capacityPool
  properties: {
    creationToken: '${resourceName}-path'
    dataProtection: {}
    exportPolicy: {
      rules: []
    }
    protocolTypes: [
      'NFSv3'
    ]
    serviceLevel: 'Standard'
    subnetId: subnet.id
    usageThreshold: any('1.073741824e+11')
  }
}

resource volumeQuotaRule 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/volumeQuotaRules@2025-01-01' = {
  name: '${resourceName}-quota'
  location: location
  parent: volume
  properties: {
    quotaSizeInKiBs: 2048
    quotaType: 'DefaultGroupQuota'
  }
}

resource networkSecurityGroup 'Microsoft.Network/networkSecurityGroups@2024-05-01' = {
  name: '${resourceName}-nsg'
  location: location
  properties: {
    securityRules: []
  }
}

resource virtualNetwork 'Microsoft.Network/virtualNetworks@2024-05-01' = {
  name: '${resourceName}-vnet'
  location: location
  properties: {
    addressSpace: {
      addressPrefixes: [
        '10.88.0.0/16'
      ]
    }
    dhcpOptions: {
      dnsServers: []
    }
    subnets: []
  }
}

resource subnet 'Microsoft.Network/virtualNetworks/subnets@2024-05-01' = {
  name: '${resourceName}-subnet'
  parent: virtualNetwork
  properties: {
    addressPrefix: '10.88.2.0/24'
    defaultOutboundAccess: true
    delegations: [
      {
        name: 'netapp-delegation'
        properties: {
          serviceName: 'Microsoft.NetApp/volumes'
        }
      }
    ]
    networkSecurityGroup: {
      id: networkSecurityGroup.id
    }
    privateEndpointNetworkPolicies: 'Disabled'
    privateLinkServiceNetworkPolicies: 'Enabled'
    serviceEndpointPolicies: []
    serviceEndpoints: []
  }
}

Kaynak biçimi

Microsoft.NetApp/netAppAccounts/capacityPools/volumes/volumeQuotaRules kaynağı oluşturmak için şablonunuza aşağıdaki Bicep'i ekleyin.

resource symbolicname 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/volumeQuotaRules@2025-06-01' = {
  parent: resourceSymbolicName
  location: 'string'
  name: 'string'
  properties: {
    quotaSizeInKiBs: int
    quotaTarget: 'string'
    quotaType: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

Özellik Değerleri

Microsoft.NetApp/netAppAccounts/capacityPools/volumes/volumeQuotaRules

İsim Description Değer
location Kaynağın bulunduğu coğrafi konum dize (gerekli)
name Kaynak adı dize (gerekli)
parent Bicep'te bir alt kaynak için üst kaynak belirtebilirsiniz. Bu özelliği yalnızca alt kaynak üst kaynağın dışında bildirildiğinde eklemeniz gerekir.

Daha fazla bilgi için bkz. Alt kaynaküst kaynak dışında.
Tür kaynağı için sembolik ad: netAppAccounts/capacityPools/volumes
properties Birim Kota Kuralı Özellikleri VolumeQuotaRulesProperties
tags Kaynak etiketleri Etiket adları ve değerleri sözlüğü. Bkz. şablonlardaki Etiketleri

TrackedResourceTags

İsim Description Değer

VolumeQuotaRulesProperties

İsim Description Değer
quotaSizeInKiBs Kontenjan büyüklüğü int
quotaTarget UserID/GroupID/SID kota hedef türüne bağlıdır. Kullanıcı veya grup için 'id' veya 'getent' komutu çalıştırılarak UserID ve groupID bulunabilir ve SID, wmic useraccount where name='user-name' get sid komutu çalıştırılarak <bulunabilir> String
quotaType Kota türü 'VarsayılanGrupKotası'
'VarsayılanKullanıcı Kotası'
'BireyselGrup Kotası'
'BireyselKullanıcı Kotası'

ARM şablonu kaynak tanımı

netAppAccounts/capacityPools/volumes/volumeQuotaRules kaynak türü, aşağıdakileri hedefleyen işlemlerle dağıtılabilir:

Kullanım Örnekleri

Kaynak biçimi

Microsoft.NetApp/netAppAccounts/capacityPools/volumes/volumeQuotaRules kaynağı oluşturmak için şablonunuza aşağıdaki JSON'u ekleyin.

{
  "type": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/volumeQuotaRules",
  "apiVersion": "2025-06-01",
  "name": "string",
  "location": "string",
  "properties": {
    "quotaSizeInKiBs": "int",
    "quotaTarget": "string",
    "quotaType": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

Özellik Değerleri

Microsoft.NetApp/netAppAccounts/capacityPools/volumes/volumeQuotaRules

İsim Description Değer
apiVersion API sürümü '2025-06-01'
location Kaynağın bulunduğu coğrafi konum dize (gerekli)
name Kaynak adı dize (gerekli)
properties Birim Kota Kuralı Özellikleri VolumeQuotaRulesProperties
tags Kaynak etiketleri Etiket adları ve değerleri sözlüğü. Bkz. şablonlardaki Etiketleri
type Kaynak türü 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/volumeQuotaRules'

TrackedResourceTags

İsim Description Değer

VolumeQuotaRulesProperties

İsim Description Değer
quotaSizeInKiBs Kontenjan büyüklüğü int
quotaTarget UserID/GroupID/SID kota hedef türüne bağlıdır. Kullanıcı veya grup için 'id' veya 'getent' komutu çalıştırılarak UserID ve groupID bulunabilir ve SID, wmic useraccount where name='user-name' get sid komutu çalıştırılarak <bulunabilir> String
quotaType Kota türü 'VarsayılanGrupKotası'
'VarsayılanKullanıcı Kotası'
'BireyselGrup Kotası'
'BireyselKullanıcı Kotası'

Terraform (AzAPI sağlayıcısı) kaynak tanımı

netAppAccounts/capacityPools/volumes/volumeQuotaRules kaynak türü, aşağıdakileri hedefleyen işlemlerle dağıtılabilir:

Kullanım Örnekleri

Terraform Örnekleri

Birim Kotası Kuralı'nı dağıtmanın temel bir örneği.

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 = {
    CreatedOnDate    = "2023-08-17T08:01:00Z"
    SkipASMAzSecPack = "true"
    SkipNRMSNSG      = "true"
  }
}

resource "azapi_resource" "networkSecurityGroup" {
  type      = "Microsoft.Network/networkSecurityGroups@2024-05-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = "${var.resource_name}-nsg"
  location  = var.location
  body = {
    properties = {
      securityRules = []
    }
  }
  tags = {
    CreatedOnDate    = "2023-08-17T08:01:00Z"
    SkipASMAzSecPack = "true"
  }
}

resource "azapi_resource" "virtualNetwork" {
  type      = "Microsoft.Network/virtualNetworks@2024-05-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = "${var.resource_name}-vnet"
  location  = var.location
  body = {
    properties = {
      addressSpace = {
        addressPrefixes = ["10.88.0.0/16"]
      }
      dhcpOptions = {
        dnsServers = []
      }
      subnets = []
    }
  }
  tags = {
    CreatedOnDate    = "2023-08-17T08:01:00Z"
    SkipASMAzSecPack = "true"
  }
}

resource "azapi_resource" "subnet" {
  type      = "Microsoft.Network/virtualNetworks/subnets@2024-05-01"
  parent_id = azapi_resource.virtualNetwork.id
  name      = "${var.resource_name}-subnet"
  body = {
    properties = {
      addressPrefix         = "10.88.2.0/24"
      defaultOutboundAccess = true
      delegations = [{
        name = "netapp-delegation"
        properties = {
          serviceName = "Microsoft.NetApp/volumes"
        }
      }]
      networkSecurityGroup = {
        id = azapi_resource.networkSecurityGroup.id
      }
      privateEndpointNetworkPolicies    = "Disabled"
      privateLinkServiceNetworkPolicies = "Enabled"
      serviceEndpointPolicies           = []
      serviceEndpoints                  = []
    }
  }
}

resource "azapi_resource" "netAppAccount" {
  type      = "Microsoft.NetApp/netAppAccounts@2025-01-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = "${var.resource_name}-acct"
  location  = var.location
  body = {
    properties = {}
  }
  tags = {
    CreatedOnDate    = "2023-08-17T08:01:00Z"
    SkipASMAzSecPack = "true"
  }
}

resource "azapi_resource" "capacityPool" {
  type      = "Microsoft.NetApp/netAppAccounts/capacityPools@2025-01-01"
  parent_id = azapi_resource.netAppAccount.id
  name      = "${var.resource_name}-pool"
  location  = var.location
  body = {
    properties = {
      coolAccess     = false
      encryptionType = "Single"
      qosType        = "Auto"
      serviceLevel   = "Standard"
      size           = 4398046511104
    }
  }
  tags = {
    CreatedOnDate    = "2023-08-17T08:01:00Z"
    SkipASMAzSecPack = "true"
  }
}

resource "azapi_resource" "volume" {
  type      = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes@2025-01-01"
  parent_id = azapi_resource.capacityPool.id
  name      = "${var.resource_name}-vol"
  location  = var.location
  body = {
    properties = {
      creationToken  = "${var.resource_name}-path"
      dataProtection = {}
      exportPolicy = {
        rules = []
      }
      protocolTypes  = ["NFSv3"]
      serviceLevel   = "Standard"
      subnetId       = azapi_resource.subnet.id
      usageThreshold = 107374182400
    }
  }
  tags = {
    CreatedOnDate    = "2022-07-08T23:50:21Z"
    SkipASMAzSecPack = "true"
  }
}

resource "azapi_resource" "volumeQuotaRule" {
  type      = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/volumeQuotaRules@2025-01-01"
  parent_id = azapi_resource.volume.id
  name      = "${var.resource_name}-quota"
  location  = var.location
  body = {
    properties = {
      quotaSizeInKiBs = 2048
      quotaType       = "DefaultGroupQuota"
    }
  }
}

Kaynak biçimi

Microsoft.NetApp/netAppAccounts/capacityPools/volumes/volumeQuotaRules kaynağı oluşturmak için şablonunuza aşağıdaki Terraform'u ekleyin.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/volumeQuotaRules@2025-06-01"
  name = "string"
  parent_id = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    properties = {
      quotaSizeInKiBs = int
      quotaTarget = "string"
      quotaType = "string"
    }
  }
}

Özellik Değerleri

Microsoft.NetApp/netAppAccounts/capacityPools/volumes/volumeQuotaRules

İsim Description Değer
location Kaynağın bulunduğu coğrafi konum dize (gerekli)
name Kaynak adı dize (gerekli)
parent_id Bu kaynağın üst öğesi olan kaynağın kimliği. Tür kaynağının kimliği: netAppAccounts/capacityPools/volumes
properties Birim Kota Kuralı Özellikleri VolumeQuotaRulesProperties
tags Kaynak etiketleri Etiket adları ve değerleri sözlüğü.
type Kaynak türü "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/volumeQuotaRules@2025-06-01"

TrackedResourceTags

İsim Description Değer

VolumeQuotaRulesProperties

İsim Description Değer
quotaSizeInKiBs Kontenjan büyüklüğü int
quotaTarget UserID/GroupID/SID kota hedef türüne bağlıdır. Kullanıcı veya grup için 'id' veya 'getent' komutu çalıştırılarak UserID ve groupID bulunabilir ve SID, wmic useraccount where name='user-name' get sid komutu çalıştırılarak <bulunabilir> String
quotaType Kota türü 'VarsayılanGrupKotası'
'VarsayılanKullanıcı Kotası'
'BireyselGrup Kotası'
'BireyselKullanıcı Kotası'