---
title: "POST /subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register"
method: POST
path: "/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register"
tags: ["Providers"]
---

# POST /subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register

`POST /subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register`

Registers a subscription with a resource provider.

## Path parameters

- `resourceProviderNamespace` string, required
- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## Response `200`

OK - Returns information about the resource provider.

- Provider — Resource provider information.
  - `id` string — The provider ID.
  - `namespace` string — The namespace of the resource provider.
  - `registrationState` string — The registration state of the resource provider.
  - `registrationPolicy` string — The registration policy of the resource provider.
  - `resourceTypes` ProviderResourceType[] — The collection of provider resource types.
    - `resourceType` string — The resource type.
    - `locations` string[] — The collection of locations where this resource type can be created.
    - `aliases` AliasType[] — The aliases that are supported by this resource type.
      - `name` string — The alias name.
      - `paths` AliasPathType[] — The paths for an alias.
        - `path` string — The path of an alias.
        - `apiVersions` string[] — The API versions.
    - `apiVersions` string[] — The API version.
    - `zoneMappings` ZoneMapping[]
      - `location` string — The location of the zone mapping.
      - `zones` string[]
    - `capabilities` string — The additional capabilities offered by this resource type.
    - `properties` object — The properties.

## Other responses

- `default` — Error response describing why the operation failed.

---

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