---
title: "Create an account in the given resource group"
method: PUT
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}"
tags: ["Account"]
---

# Create an account in the given resource group

`PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}`

Create an account

## Path parameters

- `subscriptionId` string, required
- `resourceGroupName` string, required
- `accountName` string, required

## Query parameters

- `api-version` string, required

## Request body

- Account — Base data transfer object implementation for proxy resources.
  - `id` string — The resource id of the azure resource
  - `name` string — Name of the azure resource
  - `type` string — Type of the azure resource

## Response `200`

Success

- Account — Base data transfer object implementation for proxy resources.
  - `id` string — The resource id of the azure resource
  - `name` string — Name of the azure resource
  - `type` string — Type of the azure resource

## Other responses

- `201` — Success
- `default` — An error response received from the Microsoft.DataShare resource provider.

---

[API](https://skmtc.net/azure/apis/datashare-microsoft-datashare-datashare.md) · [All operations](https://skmtc.net/azure/apis/datashare-microsoft-datashare-datashare/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/datashare-microsoft-datashare-datashare/revisions/121238d8f58e/schema)
