Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programmatically Deploy Azure Web App

Is there a way / API to Programmatically deploy Azure App services in particularly Web Apps to Azure ?

or creating multiple instances of the site with different domain names ?

The basic idea is to sell a user configurable / themeable web site to the public as a product and automate the azure deployment after a client purchases the application ?

like image 222
Johann Combrink Avatar asked Mar 14 '23 13:03

Johann Combrink


1 Answers

You should have a lookt at Azure Resource Manager templates:

Azure applications typically require a combination of resources (such as a database server, database, or website) to meet the desired goals. Rather than deploying and managing each resource separately, you can create an Azure Resource Manager template that deploys and provisions all of the resources for your application in a single, coordinated operation. In the template, you define the resources that are needed for the application and specify deployment parameters to input values for different environments. The template consists of JSON and expressions which you can use to construct values for your deployment. This topic describes the sections of the template.

You can find good sample to start from the official website:

  • Azure Quickstart Templates
like image 63
Thomas Avatar answered Mar 27 '23 22:03

Thomas