次の方法で共有


Quotas - Create Or Update

指定されたクォータ パラメーターを使用してコンピューティング クォータを作成または更新します。

PUT https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute.Admin/locations/{location}/quotas/{quotaName}?api-version=2018-02-09

URI パラメーター

名前 / 必須 説明
location
path True

string

リソースの場所。

quotaName
path True

string

クォータの名前。

subscriptionId
path True

string

Microsoft Azure サブスクリプションを一意に識別するサブスクリプション資格情報。 サブスクリプション ID は、すべてのサービス呼び出しの URI の一部を形成します。

api-version
query True

string

minLength: 1

この操作に使用する API バージョン。

要求本文

名前 説明
location

string

リソースの場所。

properties.availabilitySetCount

integer (int32)

minimum: 0

許可される可用性セットの最大数。

properties.coresLimit

integer (int32)

minimum: 0

許可されるコアの最大数。

properties.maxAllocationPremiumManagedDisksAndSnapshots

integer (int32)

minimum: 0

許可される Premium の種類のマネージド ディスクとスナップショットの最大数。

properties.maxAllocationStandardManagedDisksAndSnapshots

integer (int32)

minimum: 0

許可される Standard の種類のマネージド ディスクとスナップショットの最大数。

properties.virtualMachineCount

integer (int32)

minimum: 0

許可される仮想マシンの最大数。

properties.vmScaleSetCount

integer (int32)

minimum: 0

許可されるスケール セットの最大数。

応答

名前 説明
200 OK

Quota

わかりました

セキュリティ

azure_auth

承認では、Azure Active Directory OAuth2 フローが使用されます。

型: oauth2
フロー: implicit
Authorization URL (承認 URL): https://login.microsoftonline.com/common/oauth2/authorize

スコープ

名前 説明
user_impersonation ユーザー アカウントを偽装する

Creates or Updates a Compute Quota.

要求のサンプル

PUT https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Compute.Admin/locations/local/quotas/testQuotaCreateUpdateDelete?api-version=2018-02-09

{
  "properties": {
    "availabilitySetCount": 2,
    "coresLimit": 2,
    "virtualMachineCount": 2,
    "vmScaleSetCount": 2,
    "maxAllocationStandardManagedDisksAndSnapshots": 1024,
    "maxAllocationPremiumManagedDisksAndSnapshots": 1024
  },
  "location": "local"
}

応答のサンプル

{
  "id": "/subscriptions/8158498d-27b1-4ccf-9aa1-de0f925731e6/providers/Microsoft.Compute.Admin/locations/local/quotas/testQuotaCreateUpdateDelete",
  "name": "testQuotaCreateUpdateDelete",
  "type": "Microsoft.Compute.Admin/quotas",
  "location": "local",
  "properties": {
    "virtualMachineCount": 2,
    "coresLimit": 2,
    "availabilitySetCount": 2,
    "vmScaleSetCount": 2,
    "maxAllocationStandardManagedDisksAndSnapshots": 1024,
    "maxAllocationPremiumManagedDisksAndSnapshots": 1024
  }
}

定義

Quota

リソースの割り当てを制御するために使用されるコンピューティング クォータ情報を保持します。

名前 説明
id

string

リソースの ID。

location

string

リソースの場所。

name

string

リソースの名前。

properties.availabilitySetCount

integer (int32)

minimum: 0

許可される可用性セットの最大数。

properties.coresLimit

integer (int32)

minimum: 0

許可されるコアの最大数。

properties.maxAllocationPremiumManagedDisksAndSnapshots

integer (int32)

minimum: 0

許可される Premium の種類のマネージド ディスクとスナップショットの最大数。

properties.maxAllocationStandardManagedDisksAndSnapshots

integer (int32)

minimum: 0

許可される Standard の種類のマネージド ディスクとスナップショットの最大数。

properties.virtualMachineCount

integer (int32)

minimum: 0

許可される仮想マシンの最大数。

properties.vmScaleSetCount

integer (int32)

minimum: 0

許可されるスケール セットの最大数。

type

string

リソースの種類。