---
title: "PUT /subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimits/{name}"
method: PUT
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimits/{name}"
tags: ["SharedLimits"]
---

# PUT /subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimits/{name}

`PUT /subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimits/{name}`

Enables sharing of a compute limit by the host subscription with its guest subscriptions.

## Path parameters

- `name` string, required

## Parameters

- `../../../../../../common-types/resource-management/v5/types.json#/components/parameters/ApiVersionParameter` — unresolved $ref
- `../../../../../../common-types/resource-management/v5/types.json#/components/parameters/SubscriptionIdParameter` — unresolved $ref
- `../../../../../../common-types/resource-management/v5/types.json#/components/parameters/LocationParameter` — unresolved $ref

## Request body

- SharedLimit — unresolved $ref

## Response `200`

Resource 'SharedLimit' update operation succeeded

- SharedLimit — unresolved $ref

## Other responses

- `201` — Resource 'SharedLimit' create operation succeeded
- `default` — An unexpected error response.

---

[API](https://skmtc.dev/azure/apis/computelimit-microsoft-computelimit-computelimit.md) · [All operations](https://skmtc.dev/azure/apis/computelimit-microsoft-computelimit-computelimit/llms.txt) · [OpenAPI document](https://skmtc.dev/azure/apis/computelimit-microsoft-computelimit-computelimit/revisions/4667699c0588?raw)
