René Titulaer
René Titulaer

Reputation: 71

Azure Resource Template for new api app resource

I want to create an Azure Resource Group template which includes the new api app resource. I say new since api apps have changed: App Service API Apps - What's changed .

I tried this Create a Logic App plus API app using a template . Note: I don't want to create a logic app but this example also includes an api app. When I run this example I get a message: There is a new version of API Apps. Click here to learn more. So this is not the correct example. I can't find a better example.

Note: when I simply add "kind: apiapp" to the "Microsoft.Web/sites" resource, no apiapp is deployed, I also don't get an error.

So my question is how to create a new api with Azure Resource Templates.

Upvotes: 1

Views: 975

Answers (1)

René Titulaer
René Titulaer

Reputation: 71

I contacted MS for this, they helped me and now it's fixed. Their answer: Have you installed the new Azure SDK version 2.8.2.1? In that release (actually in 2.8.1 and beyond) we added “Export ARM Template” capability to the provisioning UI. So when you go to publish, then click the New button, you can export your ARM template. That way you’d be able to see exactly the right syntax for creating an API App.

So in VS create a web application, publish it to app service, check api app and then click the export button and you get the correct json.

See also: https://feedback.azure.com/forums/223579-azure-portal/suggestions/7163577-ability-to-export-a-resource-group-as-a-template

Upvotes: 2

Related Questions