Subscription - Accept Ownership

Accept subscription ownership.

POST https://management.azure.com/providers/Microsoft.Subscription/subscriptions/{subscriptionId}/acceptOwnership?api-version=2021-10-01

URI Parameters

Name In Required Type Description
subscriptionId
path True

string

Subscription Id.

api-version
query True

string

Version of the API to be used with the client request. Current version is 2021-10-01

Request Body

Name Type Description
properties

AcceptOwnershipRequestProperties

Accept subscription ownership request properties.

Responses

Name Type Description
202 Accepted

Accept Subscription ownership is in progress

Headers

  • Location: string
  • Retry-After: integer
Other Status Codes

ErrorResponseBody

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

AcceptOwnership

Sample Request

POST https://management.azure.com/providers/Microsoft.Subscription/subscriptions/291bba3f-e0a5-47bc-a099-3bdcb2a50a05/acceptOwnership?api-version=2021-10-01

{
  "properties": {
    "displayName": "Test Subscription",
    "managementGroupId": null,
    "tags": {
      "tag1": "Messi",
      "tag2": "Ronaldo",
      "tag3": "Lebron"
    }
  }
}

Sample Response

Location: https://management.azure.com/providers/Microsoft.Subscription/subscriptionOperations/ODdmYTU0MDktODc5YS00ZTEzLTg2MWItNTQ4ZjYxNzBlOTQw?api-version=2021-10-01
Retry-After: 8

Definitions

Name Description
AcceptOwnershipRequest

The parameters required to accept subscription ownership.

AcceptOwnershipRequestProperties

Accept subscription ownership request properties.

ErrorResponse

Describes the format of Error response.

ErrorResponseBody

Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.

AcceptOwnershipRequest

The parameters required to accept subscription ownership.

Name Type Description
properties

AcceptOwnershipRequestProperties

Accept subscription ownership request properties.

AcceptOwnershipRequestProperties

Accept subscription ownership request properties.

Name Type Description
displayName

string

The friendly name of the subscription.

managementGroupId

string

Management group Id for the subscription.

tags

object

Tags for the subscription

ErrorResponse

Describes the format of Error response.

Name Type Description
code

string

Error code

message

string

Error message indicating why the operation failed.

ErrorResponseBody

Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.

Name Type Description
code

string

Error code

error

ErrorResponse

The details of the error.

message

string

Error message indicating why the operation failed.