---
title: "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}"
method: PUT
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}"
tags: ["Environments"]
---

# PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}

`PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}`

Create or update an environment in the specified subscription and resource group.

## Path parameters

- `subscriptionId` string, required
- `resourceGroupName` string, required
- `environmentName` string, required

## Query parameters

- `api-version` string, required

## Request body

- EnvironmentCreateOrUpdateParameters — Properties required to create any resource tracked by Azure Resource Manager.
  - `location` string, required — The location of the resource.
  - `tags` object — Key-value pairs of additional properties for the resource.

## Response `200`

The existing environment definition was successfully updated.

- EnvironmentResource — Time Series Insights resource
  - `id` string — Resource Id
  - `name` string — Resource name
  - `type` string — Resource type

## Other responses

- `201` — The environment create request was accepted. Environment provisioning is an asynchronous operation. You can periodically get your environment definition and monitor progress via the provisioningState property.
- `404` — The subscription or resource group could not be found.
- `default` — HTTP 400 (Bad Request): The given environment request body is invalid; See the error code and message in the response for details.

---

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