Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Visual Studio includes tooling to help with the development and deployment of applications on Azure. This guide helps you make sure that Visual Studio is properly configured for Azure development.
Download Visual Studio
If you already have Visual Studio installed, you can skip this step.
Install Azure workloads
Open Visual Studio Installer and validate that the workloads Azure development† and ASP.NET and web development are installed. If either of these workloads isn't installed, select them to be installed.
†The Azure development workload is currently unavailable in the Windows 11 Arm64 build of Visual Studio 2022.
Authenticate Visual Studio with Azure
Developers using Visual Studio 2017 or later can authenticate using their developer account through the IDE. Apps using DefaultAzureCredential or VisualStudioCredential can discover and use this account to authenticate app requests when running locally. This account is also used when you publish apps directly from Visual Studio to Azure.
Important
You'll need to install the Azure development workload to enable Visual Studio tooling for Azure authentication, development, and deployment.
Inside Visual Studio, navigate to Tools > Options to open the options dialog.
In the Search Options box at the top, type Azure to filter the available options.
Under Azure Service Authentication, choose Account Selection.
Select the drop-down menu under Choose an account and choose to add a Microsoft account.
In the window that opens, enter the credentials for your desired Azure account, and then confirm your inputs.
Select OK to close the options dialog.
Next steps
If you also use Visual Studio Code for development in .NET or any other language, you should configure Visual Studio Code for Azure development. Otherwise, proceed to Installing the Azure CLI.