Creating Web app (windows container) using REST API

pragadeesh.raju 41 Reputation points
2020-05-27T17:32:54.8+00:00

Im trying to create a web app using REST API. but all the time im facing some issue.
Even though I was able to create a plain web app but not what I wanted. Why isn't there a proper documentation for it.

https://management.azure.com/subscriptions/${subscriptionId}/resourceGroups/${resourceGroupName}/providers/Microsoft.Web/sites/${resourceGroupName}?api-version=2019-08-01

body of the request.

8709-annotation-2020-05-27-225744.png

the response im getting is a plain webapp with default plan.

"type": "Microsoft.Web/sites",
"kind": "app",
"location": "West US",

"properties": [
{
"name": "LinuxFxVersion",
"value": ""
},
{
"name": "WindowsFxVersion",
"value": null
}
],
"appSettings": null

the image which i have mentioned is also missing.

is there proper way to define all the configs? or a good document to read. (other than this https://learn.microsoft.com/en-us/rest/api/appservice/webapps/).

any help is appreciated.
My goal is to create a webapp (windows, container) or (linux, container)

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,913 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 18,451 Reputation points
    2020-06-30T00:27:16.527+00:00

    Hi @

    It looks like you posted this question twice. Did the answer in this post https://learn.microsoft.com/en-us/answers/questions/30054/rest-api-for-web-app-linuxwindows-container.html help resolve your issue?

    Please let us know if you have further questions.

    Thanks,

    Grace

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.