Quotas - Update

Update quota for each VM family in workspace.

POST https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/updateQuotas?api-version=2024-04-01

URI Parameters

Name In Required Type Description
location
path True

string

The location for update quota is queried.

Regex pattern: ^[-\w\._]+$

subscriptionId
path True

string

The ID of the target subscription.

api-version
query True

string

The API version to use for this operation.

Request Body

Name Type Description
location

string

Region of workspace quota to be updated.

value

QuotaBaseProperties[]

The list for update quota.

Responses

Name Type Description
200 OK

UpdateWorkspaceQuotasResult

The operation was successful.

Other Status Codes

ErrorResponse

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

update quotas

Sample request

POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningServices/locations/eastus/updateQuotas?api-version=2024-04-01

{
  "value": [
    {
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/quotas/Standard_DSv2_Family_Cluster_Dedicated_vCPUs",
      "type": "Microsoft.MachineLearningServices/workspaces/quotas",
      "limit": 100,
      "unit": "Count"
    },
    {
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace2/quotas/Standard_DSv2_Family_Cluster_Dedicated_vCPUs",
      "type": "Microsoft.MachineLearningServices/workspaces/quotas",
      "limit": 200,
      "unit": "Count"
    }
  ]
}

Sample response

{
  "value": [
    {
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/quotas/Standard_DSv2_Family_Cluster_Dedicated_vCPUs",
      "type": "Microsoft.MachineLearningServices/workspaces/quotas",
      "limit": 100,
      "unit": "Count",
      "status": "Success"
    },
    {
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace2/quotas/Standard_DSv2_Family_Cluster_Dedicated_vCPUs",
      "type": "Microsoft.MachineLearningServices/workspaces/quotas",
      "limit": 200,
      "unit": "Count",
      "status": "Success"
    }
  ]
}

Definitions

Name Description
ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

QuotaBaseProperties

The properties for Quota update or retrieval.

QuotaUnit

An enum describing the unit of quota measurement.

QuotaUpdateParameters

Quota update parameters.

status

Update Workspace Quota Status.

UpdateWorkspaceQuotas

The properties for update Quota response.

UpdateWorkspaceQuotasResult

The result of update workspace quota.

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

QuotaBaseProperties

The properties for Quota update or retrieval.

Name Type Description
id

string

Specifies the resource ID.

limit

integer

Limit.
The maximum permitted quota of the resource.

type

string

Specifies the resource type.

unit

QuotaUnit

An enum describing the unit of quota measurement.

QuotaUnit

An enum describing the unit of quota measurement.

Name Type Description
Count

string

QuotaUpdateParameters

Quota update parameters.

Name Type Description
location

string

Region of workspace quota to be updated.

value

QuotaBaseProperties[]

The list for update quota.

status

Update Workspace Quota Status.

Name Type Description
Failure

string

InvalidQuotaBelowClusterMinimum

string

InvalidQuotaExceedsSubscriptionLimit

string

InvalidVMFamilyName

string

OperationNotEnabledForRegion

string

OperationNotSupportedForSku

string

Success

string

Undefined

string

UpdateWorkspaceQuotas

The properties for update Quota response.

Name Type Description
id

string

Specifies the resource ID.

limit

integer

Limit.
The maximum permitted quota of the resource.

status

status

Update Workspace Quota Status.
Status of update workspace quota.

type

string

Specifies the resource type.

unit

QuotaUnit

An enum describing the unit of quota measurement.

UpdateWorkspaceQuotasResult

The result of update workspace quota.

Name Type Description
nextLink

string

The URI to fetch the next page of workspace quota update result. Call ListNext() with this to fetch the next page of Workspace Quota update result.

value

UpdateWorkspaceQuotas[]

The list of workspace quota update result.