Find and provision Azure resources in Visual Studio
You can work with Azure in Visual Studio using many capabilities designed to make development and deployment to Azure easier.
Prerequisites
- An Azure account. If you don't have an Azure account, activate your Azure benefits for Visual Studio subscribers or sign up for a free trial.
Provision Azure resources
This is a typical Visual Studio dialog where you can browse and search existing Azure resources. Above the list of existing resources, there is a button that lets you provision new ones:
Note
This example shows instances of Azure App Service, but a similar dialog exists for all Azure services that Visual Studio supports.
You can use Quick Launch to find the Visual Studio IDE feature to connect to supported services. To use this feature, open Quick Launch (press Ctrl+Q), enter a service (for example, Azure Storage
) to find the Connected Services features and immediately start connecting to the service.
Browse and search existing Azure resources
The following screenshot shows a typical Visual Studio dialog where you can browse and search existing Azure resources.
- You can filter by Azure subscription using the dropdown list
- You can group the found instances either by Resource Group or by Resource Type (which effectively gives you a flat list)
- You can search by the resource name
Note
This example shows instances of Azure App Service, but a similar dialog exists for all Azure services that Visual Studio supports.
Deploy an application to Azure using Publish or GitHub Actions
Whenever you open a project from a GitHub repo in Visual Studio 2022 version 17.7 and later, any GitHub Actions in the repo are shown under the GitHub Actions node in Solution Explorer.
Visual Studio has special support for GitHub Actions that deploy your project. You can generate a deployment action that will publish your application to Azure. Right-click on your project in Solution Explorer, and pick Publish from the context menu. The Publish wizard will guide you through the experience, and if your project is hosted on GitHub, you will automatically also be given the opportunity to configure CI/CD using GitHub Actions. See Overview of GitHub Actions in Visual Studio.
Configure Azure dependencies to be emulated locally and connect to real services at deployment time
Use Connected Services to connect your application to local emulators and other local alternatives to Azure services. Get started by right-clicking on the Connected Services node in Solution Explorer and select Manage Connected Services.
Debug Azure function projects offline without cost
Visual Studio will seamlessly emulate the Azure Functions service locally when you start debugging. You don't even have to be signed in with an Azure subscription.
Remote debug Azure hosting services like Azure App Service
See Attach to running processes with the Visual Studio debugger