Subscriptions - Enable

The operation to enable a subscription

POST https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/enable?api-version=2019-03-01-preview

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 2019-03-01-preview

Responses

Name Type Description
200 OK

EnabledSubscriptionId

OK. The request has succeeded.

Other Status Codes

ErrorResponseBody

Describes the error if the operation is not successful.

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

enableSubscription

Sample Request

POST https://management.azure.com/subscriptions/7948bcee-488c-47ce-941c-38e20ede803d/providers/Microsoft.Subscription/enable?api-version=2019-03-01-preview

Sample Response

{
  "subscriptionId": "7948bcee-488c-47ce-941c-38e20ede803d"
}

Definitions

EnabledSubscriptionId

The ID of the subscriptions that is being enabled

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.

EnabledSubscriptionId

The ID of the subscriptions that is being enabled

Name Type Description
subscriptionId

string

The ID of the subscriptions that is being enabled

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.