Windows Azure - creating a subscription programmatically

Is there a way to create a new subscription and programmatically add it to my Windows Azure account?

The goal is to have a web application in which users can register and deploy a set of virtual machines (automatically). The web application must use the existing Windows Azure account and add a new subscription to it, which is then used to deploy computers for the new user.

Any suggestions for implementing this without the need for manual access to the management portal and adding a new subscription?

+4
source share
4 answers

REST API . , , .. windowsazure.com.

, , ( ) - .

+1

The Microsoft Partner Center has an Azure Signature API:

IAggregatePartner partnerOperations;
string customerId;
string offerId;

var order = new Order()
{
    ReferenceCustomerId = customerId,
    LineItems = new List<OrderLineItem>()
    {
        new OrderLineItem()
        {
            OfferId = offerId,
            FriendlyName = "new offer purchase",
            Quantity = 5
        }
    }
};

var createdOrder = partnerOperations.Customers.ById(customerId).Orders.Create(order);

source: https://docs.microsoft.com/en-us/azure/cloud-solution-provider/integration/manage-customers/add-subscriptions#c

More information about the Affiliate Center Program here: https://partnercenter.microsoft.com/en-us/partner/home

0
source

Source: https://habr.com/ru/post/1527702/


All Articles