---
title: "Accounts_CreateOrUpdate"
method: PUT
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName}"
tags: ["Accounts"]
---

# Accounts_CreateOrUpdate

`PUT /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName}`

Creates or updates a Visual Studio Team Services account resource.

## Path parameters

- `resourceGroupName` string, required
- `subscriptionId` string, required
- `resourceName` string, required

## Query parameters

- `api-version` string, required

## Request body

- AccountResourceRequest — The body of a PUT request to modify a Visual Studio account resource.
  - `accountName` string — The account name.
  - `location` string — The Azure instance location.
  - `operationType` 'unknown' | 'create' | 'update' | 'link' — The type of the operation.
  - `properties` object — The custom properties of the resource.
  - `tags` object — The custom tags of the resource.

## Response `200`

The operation succeeded. The Visual Studio Team Services account resource was created or updated.

- AccountResource — A generic Azure Resource Manager resource.
  - `id` string — Unique identifier of the resource.
  - `location` string — Resource location.
  - `name` string — Resource name.
  - `tags` object — Resource tags.
  - `type` string — Resource type.

## Other responses

- `404` — The Visual Studio Team Services account does not exist.

---

[API](https://skmtc.dev/azure/apis/visual-studio-resource-provider-client.md) · [All operations](https://skmtc.dev/azure/apis/visual-studio-resource-provider-client/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/visual-studio-resource-provider-client/revisions/3e33b3da678f/schema)
