Microsoft.NetApp netAppAccounts/capacityPools/volume/volumeQuotaRules 2025-07-01-preview

Bicep-resourcedefinitie

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

Zie logboek wijzigenvoor een lijst met gewijzigde eigenschappen in elke API-versie.

Gebruiksvoorbeelden

Bicep-voorbeelden

Een eenvoudig voorbeeld van het implementeren van de volumequotaregel.

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: []
  }
}

Resource-indeling

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

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

Eigenschapswaarden

Microsoft.NetApp/netAppAccounts/capacityPools/volumes/volumeQuotaRules

Naam Description Waarde
location De geografische locatie waar de resource zich bevindt tekenreeks (vereist)
naam De resourcenaam tekenreeks (vereist)
parent In Bicep kunt u de bovenliggende resource voor een onderliggende resource opgeven. 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 volumequotaregel VolumeQuotaRulesProperties
tags Resourcetags Woordenlijst met tagnamen en -waarden. Zie Tags in sjablonen

Gevolgde brontags

Naam Description Waarde

VolumeQuotaRulesProperties

Naam Description Waarde
quotaGrootteInKiBs Grootte van quotum int
quotumDoel UserID/GroupID/SID op basis van het quotumdoeltype. UserID en groupID kunnen worden gevonden door de opdracht 'id' of 'getent' voor de gebruiker of groep en SID uit te voeren door wmic useraccount uit te voeren <waarbij name='user-name' get sid> touw
quotum Type Type quotum 'StandaardGroepQuotum'
'StandaardUserQuota'
'Individuele GroepQuota'
'IndividueelUserQuota'

Resourcedefinitie van ARM-sjabloon

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

Gebruiksvoorbeelden

Resource-indeling

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

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

Eigenschapswaarden

Microsoft.NetApp/netAppAccounts/capacityPools/volumes/volumeQuotaRules

Naam Description Waarde
apiVersion De API-versie '2025-07-01-preview'
location De geografische locatie waar de resource zich bevindt tekenreeks (vereist)
naam De resourcenaam tekenreeks (vereist)
properties Eigenschappen van volumequotaregel VolumeQuotaRulesProperties
tags Resourcetags Woordenlijst met tagnamen en -waarden. Zie Tags in sjablonen
type Het brontype 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/volumeQuotaRules'

Gevolgde brontags

Naam Description Waarde

VolumeQuotaRulesProperties

Naam Description Waarde
quotaGrootteInKiBs Grootte van quotum int
quotumDoel UserID/GroupID/SID op basis van het quotumdoeltype. UserID en groupID kunnen worden gevonden door de opdracht 'id' of 'getent' voor de gebruiker of groep en SID uit te voeren door wmic useraccount uit te voeren <waarbij name='user-name' get sid> touw
quotum Type Type quotum 'StandaardGroepQuotum'
'StandaardUserQuota'
'Individuele GroepQuota'
'IndividueelUserQuota'

Resourcedefinitie van Terraform (AzAPI-provider)

Het resourcetype netAppAccounts/capacityPools/volumes/volumeQuotaRules 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-monsters

Een eenvoudig voorbeeld van het implementeren van de volumequotaregel.

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

Resource-indeling

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

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

Eigenschapswaarden

Microsoft.NetApp/netAppAccounts/capacityPools/volumes/volumeQuotaRules

Naam Description Waarde
location De geografische locatie waar de resource zich bevindt 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 volumequotaregel VolumeQuotaRulesProperties
tags Resourcetags Woordenlijst met tagnamen en -waarden.
type Het brontype "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/volumeQuotaRules@2025-07-01-preview"

Gevolgde brontags

Naam Description Waarde

VolumeQuotaRulesProperties

Naam Description Waarde
quotaGrootteInKiBs Grootte van quotum int
quotumDoel UserID/GroupID/SID op basis van het quotumdoeltype. UserID en groupID kunnen worden gevonden door de opdracht 'id' of 'getent' voor de gebruiker of groep en SID uit te voeren door wmic useraccount uit te voeren <waarbij name='user-name' get sid> touw
quotum Type Type quotum 'StandaardGroepQuotum'
'StandaardUserQuota'
'Individuele GroepQuota'
'IndividueelUserQuota'