Create servers with flic button in azure

A guide to build servers and databases with Azure Devops & flic button.

Today we will build a server and databases using :

  • Azure Devops

  • ARM Templates

  • A Flic Button

If you don't own a Flic Button, you can purchase one here.

Before we begin, if you're looking for a quick summary and overview on Azure Devops Pipelines (or found this page early and would like to get a headstart), I recommend starting here with the documentation, or taking 4 minutes to read in more detail how to create your first devops pipeline , so you have some context on how to use pipelines.

Let Us Begin!

Today we will trigger a azure devops pipelines using a Flic button. We will start by creating a release pipelines using azure devops. Then we will create a flic account, create flic actions to trigger release pipeline

Here's a diagram of what we'll be doing:

Create Azure Devops Account !

  1. Browse to the Azure DevOps site at http://dev.azure.com

  2. If you do not already have an account, click Get started for free

  3. Authenticate with a Microsoft account.

Create Demo Project

  1. Choose a name for your Project name. For the purposes of this scenario, we will use “FlicDemo” Choose Git for the source code and then click Create.

  2. Once the Project is created, click on the Repo menu option in the left side navigation

  3. On the Repo -> File page for the FlicDemo repository, scroll down to the bottom of the page, then click on the Initialize button to get the “master” branch created.

  4. Click on the Clone link in the upper-right

  5. Copy the HTTPS URL for the Git repository for use in the following step

  6. When prompted, login with your Microsoft Account for your Azure DevOps Account

Author ARM Templates

  1. Open Visual Studio and create a new project of the type Cloud – Azure Resource Group. Name the new project “FlicDemo.AzureResourceTemplate” and save it to C:\Repo. Also, make sure that both check boxes are checked on the lower right, as in the screen shot below. When finished, click OK.

  2. On the next window, click Blank Template, and click OK.

  3. In the Solution Explorer window, open the azuredeploy.json file by double-clicking it.

  4. Then, probably on the left side of the Visual Studio window, open the window called JSON Outline. It will look like this screen shot.

  5. Save your Files

Add Azure SQL Database and server to the template

  1. Right-click on the resources item in the JSON Outline and click Add New Resource.

  2. Select SQL Server and give it a name like “flicdemo”, then click Add.

  3. Now that the SQL Server has been created as a resource, right-click that SQL Server resource and choose Add New Resource so that you can add a database.

  4. Choose SQL Database, and call it “flicdemodatabase.” Make sure that your server is selected in the drop-down list below, and click Add.

Create your First CI&CD Pipelines

Lets Trigger a pipeline using Flic Button

Last updated