---
title: "PUT /{scope}/providers/Microsoft.ManagedNetwork/scopeAssignments/{scopeAssignmentName}"
method: PUT
path: "/{scope}/providers/Microsoft.ManagedNetwork/scopeAssignments/{scopeAssignmentName}"
tags: ["ScopeAssignments"]
---

# PUT /{scope}/providers/Microsoft.ManagedNetwork/scopeAssignments/{scopeAssignmentName}

`PUT /{scope}/providers/Microsoft.ManagedNetwork/scopeAssignments/{scopeAssignmentName}`

Creates a scope assignment.

## Path parameters

- `scope` string, required
- `scopeAssignmentName` string, required

## Query parameters

- `api-version` string, required

## Request body

- ScopeAssignment — The general resource model definition
  - `id` string — Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
  - `name` string — The name of the resource
  - `type` string — The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
  - `location` string — The geo-location where the resource lives

## Response `200`

Updated - Returns information about the scope assignment.

- ScopeAssignment — The general resource model definition
  - `id` string — Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
  - `name` string — The name of the resource
  - `type` string — The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
  - `location` string — The geo-location where the resource lives

## Other responses

- `201` — Created - Returns information about the scope assignment.
- `default` — Resource Provider error response describing why the operation failed.

---

[API](https://skmtc.dev/azure/apis/managednetworkmanagementclient.md) · [All operations](https://skmtc.dev/azure/apis/managednetworkmanagementclient/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/managednetworkmanagementclient/revisions/81e60830a1b4/schema)
