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 :doc:`/scenarios/customertenants-get` - Find your azure plan id using endpoint *GET https://api.crayon.com/api/v1/customertenants/{customerTenantId}/azureplan/* - You need to have signed the Microsoft Customer Agreement. :doc:`/scenarios/customertenantagreement-create` 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: .. literalinclude:: /scenarios/_static/AzureSubscriptionAssignAdminRequest.json :language: json Response ^^^^^^^^ If successful, this method returns the boolean value **true**.