---
title: "PUT /subscriptions/{subscriptionId}/providers/Microsoft.Peering/peerAsns/{peerAsnName}"
method: PUT
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Peering/peerAsns/{peerAsnName}"
tags: ["PeerAsns"]
---

# PUT /subscriptions/{subscriptionId}/providers/Microsoft.Peering/peerAsns/{peerAsnName}

`PUT /subscriptions/{subscriptionId}/providers/Microsoft.Peering/peerAsns/{peerAsnName}`

Creates a new peer ASN or updates an existing peer ASN with the specified name under the given subscription.

## Path parameters

- `peerAsnName` string, required

## Parameters

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

## Request body

- PeerAsn — unresolved $ref

## Response `200`

Resource 'PeerAsn' update operation succeeded

- PeerAsn — unresolved $ref

## Other responses

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

---

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