In this exercise, you will deploy an Azure Linux VM and configure Ansible on the virtual machine ![]() To create and provision the resources in Azure with Ansible, we need to have a Linux VM with Ansible configured. Task 2: Configure Ansible in a Linux machine This details required in your next tasks.įor more information about Azure service principal click here. It will give you a JSON output as shown in the image. In this lab, you will use Azure service principal for authentication.Įnter the following command to get Azure SubscriptionID and copy the same to notepad.Įnter the following command by replacing ServicePrincipalName with your desired value and Subscription ID from the previous step.Īz ad sp create-for-rbac -name ServicePrincipalName -role Contributor -scopes /subscriptions/ Using the Azure Resource Manager modules requires authenticating with the Azure API. Setting up the Environment Task 1: Create an Azure service principal with Azure CLIĪnsible includes a suite of modules for interacting with Azure Resource Manager, giving you the tools to easily create and orchestrate infrastructure on the Microsoft Azure Cloud. If you want to try other projects, use this URL instead -įollow the simple walkthrough to know how to use the Azure DevOps Demo Generator. This URL will automatically select Ansible template in the demo generator. Use the Azure DevOps Demo Generator to provision the project on your Azure DevOps organization. Refer the Getting Started page before you begin following the exercises. The following image will walk you through all the steps explained in this lab
0 Comments
Leave a Reply. |