how to create azure web app using rest api

chaowen guo 16 Reputation points
2021-10-07T20:54:45.153+00:00

I want to create azure web app using the rest api. But I can not find any example in https://learn.microsoft.com/en-us/rest/api/appservice/web-apps/create-or-update

especially, I do not know how to translate
az webapp create -n name -p plan -g group -i dockerimage

into rest api

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

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 19,151 Reputation points Moderator
    2021-10-14T18:27:43.687+00:00

    Hi @chaowen guo ,

    Apologies for the late response. You are following the correct example.

    You can use the below example to create a new web, mobile, or API app in an existing resource group, or updates an existing app.

    PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}?api-version=2021-02-01  
    

    You can also follow the steps in this documentation to to deploy an ASP.NET Core API app to App Service with CORS support.

    Hope that helps. Please let us know if you have further questions

    Thanks,
    Grace

    --If the reply is helpful, please Upvote and Accept as answer--


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.