123ArticleOnline Logo
Welcome to 123ArticleOnline.com!
ALL >> Others >> View Article

Azure Microservices Infrastructure Automation With Iac

Profile Picture
By Author: Digital Alpha
Total Articles: 1
Comment this article
Facebook ShareTwitter ShareGoogle+ ShareTwitter Share

Introduction
• Microservice is a small software service that performs a single specific task. We can develop such microservices and integrate them into a fully functional product/service by using Microsoft’s cloud platform Azure.
• Azure provides numerous microservices solution patterns on its platform.
• Solution pattern using Azure app service, traffic manager, and application gateway allow the creation of small, autonomous services, where each function is self-contained and implements a single business capability.

What is Azure App service, Traffic Manager, and Application Gateway?
• Azure App Service: The Azure App Service allows you to develop and host web apps, RESTful APIs, and mobile back ends in the programming language of your preference without affecting infrastructure and it also offers high availability and auto-scaling, supports both Windows and Linux, and facilitates automated deployments from GitHub, Azure DevOps, or any Git repo.

• AzureTraffic manager: Azure Traffic Manager is a DNS-based traffic load balancer that permits you to distribute traffic ...
... optimally to services over global Azure regions while providing high availability and responsiveness.

• Azure Application Gateway: Azure Application Gateway is a web traffic load balancer that enables you to control traffic to your microservices. Application Gateway can make routing adjustments based on additional attributes of an HTTP request, for example, URI path or host headers.

One-click infrastructure deployment using Azure DevOps pipeline

• Azure DevOps is a service to deploy CI/CD pipelines. Let us see how we can create a pipeline to deploy a Terraform configuration using an Azure DevOps pipeline.
• We will be able to build a PaaS Azure Resource called App Service. This Azure resource enables us to deploy microservices for this sample, a node js app.

Requirements

• Install Azure CLI
• Install Terraform
• Create an Azure account.
• Create an Azure DevOps account.

Steps to follow
1.Create an Azure DevOps Project:

• To build an Azure Pipeline, you must plan your Azure DevOps project that will include the automated pipelines that deploy the infrastructure to the cloud. Follow the below-mentioned steps.

• Create New Organization
• Create a Project
• After creating the project – name it. Authorize your Azure Cloud subscription
• Add a service connection for your Azure Subscription

2. Create Automated Pipeline:

• After creating your organization and project within Azure DevOps, you can advance to build your automated Pipeline.
• Create a Release Pipeline
• This Pipeline will allow us to set various required steps that execute our different jobs to deploy the infrastructure to the cloud.

• Select an Ubuntu OS Agent
One should use an agent that runs with Ubuntu OS as the scripts are coded in bash.
Create Pipeline variables
• These pipeline variables will be utilized in order to parametrize names for some resources and evade the hardcoding within the scripts.
• These variables will be used to generate the Azure resources that will store the Terraform Backend.

3.Terraform Backend
• Terraform stores state locally in a file labeled terraform.tfstate. When working with Terraform in a team, the use of a local file Isn’t a great idea.
• One can use the distant state that allows Terraform to address the state data in a sparse data store that you specify yourself.
• We will use a Terraform CLI task that enables us to build an Azure storage account and storage container to save Terraform state if this does not exist yet.

4. Add Task – Terraform Init
• You should install the extension in order to manage the terraform task.


5. Add Task – Terraform Plan
• The terraform plan command is used to build an execution plan. Terraform decides what actions are necessary to achieve the desired requirement stipulated in the configuration files.

6. Add Task – Terraform Apply
• This job will run the terraform- apply the command to extend the resources to Azure Cloud.


7. Save your Pipeline
• Once the pipeline configuration is created, set a Name on it, and save modifications.
8. Launch your Pipeline
• Here we go, the Pipeline is now available. Now we can Create a Release; this operation will start the execution of the Pipeline and its jobs.
• When the Pipeline’s execution is finished, you will be able to see the new infrastructure devised in Azure.


Therefore we have created an Azure App Service that is able to host a microservice. To deploy an App Service with higher compute capacity or different Runtime, you can effortlessly do that by changing your infrastructure outlines on the .tf file.

To view more articles, visit: https://www.digital-alpha.com/blog/

Total Views: 66Word Count: 706See All articles From Author

Add Comment

Others Articles

1. How To Stop Telegram From Showing Message Previews On Iphone
Author: Mildred kawakami

2. Autoclaved Aerated Concrete (aac) Market - Growth, Trends, Covid-19 Impact, And Forecasts (2021 - 2
Author: Statzy Market Research

3. Levulinic Acid Market - Growth, Trends, Covid-19 Impact, And Forecasts (2021 - 2026)
Author: Statzy Market Research

4. Australia And New Zealand Industrial Flooring Market - Growth, Trends, Covid-19 Impact, And Forecast
Author: Statzy Market Research

5. Gypsum Board Market - Growth, Trends, Covid-19 Impact, And Forecasts (2021 - 2026)
Author: Statzy Market Research

6. Europe Polycarbonate Sheets Market - Growth, Trends, Covid-19 Impact, And Forecasts (2021 - 2026)
Author: Statzy Market Research

7. Carbon Fiber Market - Growth, Trends, Covid-19 Impact, And Forecasts (2021 - 2026)
Author: Statzy Market Research

8. Saudi Arabia Lubricants Market - Growth, Trends, Covid-19 Impact, And Forecasts (2021 - 2026)
Author: Statzy Market Research

9. Personalized Poker Chips Can Be An Absolute Gift Item For People Or Events
Author: Steve Johnson

10. How To Remove Web History On Safari Without Clearing Cookies And Additional Web Data On Mac
Author: Deanfoster

11. Biden’s Infrastructure Proposal | News Agency In Battle Creek
Author: ApadanaMedia

12. Industrial And Institutional Cleaning Chemicals Market - Growth, Trends, Covid-19 Impact, And Foreca
Author: Statzy Market Research

13. Refractories Market - Growth, Trends, Covid-19 Impact, And Forecasts (2021 - 2026)
Author: Statzy Market Research

14. Fuel Additives Market - Growth, Trends, Covid-19 Impact, And Forecasts (2021 - 2026)
Author: Statzy Market Research

15. What To Look For While Choosing Best Quality Cotton Yarn?
Author: Sanathan Textile

Login To Account
Login Email:
Password:
Forgot Password?
New User?
Sign Up Newsletter
Email Address: