![]() Like any Vagrant deployment, a vagrantfile and a Vagrant box is needed. resourceGroup = Azure resource group name.password = your Azure service principal password. ![]() ![]() appId = your Azure service principal name.subscriptionId = your Azure subscription ID.Edit the scripts/vars.ps1 PowerShell script to match the Azure service principal you created. The vagrantfile executes a script on the VM OS to install all the needed artifacts and to inject environment variables. We highly recommend that you scope the service principal to a specific Azure subscription and resource group. "name": " "password": "XXXXXXXXXXXXXXXXXXXXXXXXXXXX", az loginĪz ad sp create-for-rbac -n "" -role contributorįor example: az ad sp create-for-rbac -n " -role contributor You can also run this command in Azure Cloud Shell. To create it, sign in to your Azure account and run the following command. To connect the Vagrant virtual machine to Azure Arc, an Azure service principal assigned with the Contributor role is required. If you are a Linux user, visit the Vagrant download page.If you are a macOS user, run brew cask install vagrant.If you are a Linux user, all package installation methods can be found in Download VirtualBox for Linux hosts.If you are a Windows user, you can use the Chocolatey package.If you are a macOS user, run brew cask install virtualbox.For this guide, we will be using Oracle VM VirtualBox. Vagrant relies on an underlying hypervisor. Use the following command to check your current installed version. Install or update Azure CLI to version 2.7 and above. PrerequisitesĬlone the Azure Arc Jumpstart repository. The following article provides guidance for deploying a local Windows 10 virtual machine using Vagrant and connect it as an Azure Arc-enabled server resource.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |