---
title: "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/virtualClusters/{virtualClusterName}"
method: PATCH
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/virtualClusters/{virtualClusterName}"
tags: ["VirtualClusters"]
---

# PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/virtualClusters/{virtualClusterName}

`PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/virtualClusters/{virtualClusterName}`

Updates a virtual cluster.

## Path parameters

- `resourceGroupName` string, required
- `virtualClusterName` string, required
- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## Request body

- VirtualClusterUpdate — An update request for an Azure SQL Database virtual cluster.
  - `properties` VirtualClusterProperties — The properties of a virtual cluster.
    - `subnetId` string — Subnet resource ID for the virtual cluster.
    - `family` string — If the service has different generations of hardware, for the same SKU, then that can be captured here.
    - `childResources` string[] — List of resources in this virtual cluster.
  - `tags` object — Resource tags.

## Response `200`

Successfully updated the virtual cluster.

- VirtualCluster — ARM resource.
  - `id` string — Resource ID.
  - `name` string — Resource name.
  - `type` string — Resource type.

## Other responses

- `202` — Accepted
- `default` — *** Error Responses: *** * 400 SubscriptionNotFound - The requested subscription was not found. * 400 ManagementServiceFeatureDisabled - User attempted to use a feature which is disabled. * 404 ResourceDoesNotExist - Resource with the name '{0}' does not exist. To continue, specify a valid resource name. * 404 VirtualClusterNotInSubscriptionResourceGroup - specified virtual cluster does not exist in the specified resource group and subscription. * 404 SubscriptionDoesNotHaveVirtualCluster - The requested virtual cluster was not found * 404 ResourceNotFound - The requested resource was not found. * 409 ConflictingVirtualClusterOperation - An operation is currently in progress for the virtual cluster. * 429 ConflictingSubscriptionOperation - An operation is currently in progress for the subscription.

---

[API](https://skmtc.dev/azure/apis/sqlmanagementclient-30306536.md) · [All operations](https://skmtc.dev/azure/apis/sqlmanagementclient-30306536/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/sqlmanagementclient-30306536/revisions/62389d4e2175/schema)
