I am trying to create Resources group, WebApp plan service, Webapp through the Rest Api of microsoft azure, I have created above services from RestApi of
microsoft Azure, but i am unable to find, How to create Deployment center through REST Api or Code, i am trying to automate the above with my Code.
Just a sample code in which i have created a App service plan through code/Rest Api,
similarly i want something so that i can create a Deployment center.
public bool CreateAppServicePlan(string token, string subscriptionId, string resourceGroupName, string AppServiceName) {
var Url = "https://management.azure.com/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName + "/providers/Microsoft.Web/serverfarms/" + AppServiceName
+ "?api-version=2016-09-01";
var model = new {
location = "South India",
properties = new {
name = AppServiceName
},
sku = new {
name = "F1",
size = "1 GB memory",
family = "F1",
}
};
var CreateAppSeviceResult = putData.CreateAzure(Url, JsonConvert.SerializeObject(model), token).Result;
return CreateAppSeviceResult;
}