Virtual Clusters - Update
Updates an existing virtual cluster.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/virtualClusters/{virtualClusterName}?api-version=2023-08-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
resource
|
path | True |
string |
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
|
subscription
|
path | True |
string |
The subscription ID that identifies an Azure subscription. |
|
virtual
|
path | True |
string |
The name of the virtual cluster. |
|
api-version
|
query | True |
string |
The API version to use for the request. |
Request Body
| Name | Type | Description |
|---|---|---|
| properties.version |
string |
Virtual cluster version. |
| tags |
object |
Resource tags. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Successfully updated virtual cluster. |
|
| 202 Accepted |
Updating the virtual cluster is in progress. Headers Location: string |
|
| Other Status Codes |
*** Error Responses: ***
|
Examples
Update virtual cluster with tags
Sample request
Sample response
{
"properties": {},
"tags": {
"tkey": "tvalue3"
},
"location": "japaneast",
"id": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/testrg/providers/Microsoft.Sql/virtualClusters/vc-subnet1-f769ed71-b3ad-491a-a9d5-26eeceaa6be2",
"name": "vc-subnet1-f769ed71-b3ad-491a-a9d5-26eeceaa6be2",
"type": "Microsoft.Sql/virtualClusters"
}
Location: https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Sql/locations/westus/virtualclusterazureasyncoperation/00000000-1111-2222-3333-444444444444?api-version=2022-11-01-preview
Definitions
| Name | Description |
|---|---|
|
Error |
The resource management error additional info. |
|
Error |
The error detail. |
|
Error |
Error response |
|
Virtual |
An Azure SQL virtual cluster. |
|
Virtual |
An update request for virtual cluster. |
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 |
The error additional info. |
|
| code |
string |
The error code. |
| details |
The error details. |
|
| message |
string |
The error message. |
| target |
string |
The error target. |
ErrorResponse
Error response
| Name | Type | Description |
|---|---|---|
| error |
The error object. |
VirtualCluster
An Azure SQL virtual cluster.
| Name | Type | Description |
|---|---|---|
| id |
string |
Resource ID. |
| location |
string |
Resource location. |
| name |
string |
Resource name. |
| properties.childResources |
string[] |
List of resources in this virtual cluster. |
| properties.subnetId |
string |
Subnet resource ID for the virtual cluster. |
| properties.version |
string |
Virtual cluster version. |
| tags |
object |
Resource tags. |
| type |
string |
Resource type. |
VirtualClusterUpdate
An update request for virtual cluster.
| Name | Type | Description |
|---|---|---|
| properties.childResources |
string[] |
List of resources in this virtual cluster. |
| properties.subnetId |
string |
Subnet resource ID for the virtual cluster. |
| properties.version |
string |
Virtual cluster version. |
| tags |
object |
Resource tags. |