Set Admin For Azure Subscription

Adds an admin to the azure subscription connected to an azure plan.

Prerequisites

  • Find a customer tenant that is connected to Azure Plan

  • Find your azure plan id using endpoint

GET https://api.crayon.com/api/v1/customertenants/{customerTenantId}/azureplan/

Request

Request Syntax:

Method Request URI
PUT https://api.crayon.com/api/v1/azureplans/{azurePlanId}/azureSubscriptions/{id:int}/assign-unique-admin/

Parameters

Name Description
azurePlanId Azure plan id
id Subscription id

Request Example:

PUT $"https://api.crayon.com/api/v1/azureplans/{azurePlanId:int}/azuresubscriptions/{id:int}/assign-unique-admin/"
Accept: application/json
Content-Type: application/json
Authorization: Bearer < Token >

Request Body:

{
  "AdminEmail": "firstname.lastname@email.com"
}

Response

If successful, this method returns the boolean value true.