Lesson 15 of 40 DevOps Intermediate 35 min

Azure Deployment from VS 2026

Publish ASP.NET Core, Azure Functions, and container apps to Azure directly from Visual Studio 2026 with the integrated publish wizard.

Part 1: Publish Wizard

Right-click project → Publish. VS 2026's Publish wizard supports:
  • Azure App Service (Linux/Windows)
  • Azure Container Apps
  • Azure Kubernetes Service
  • Azure Functions
  • Docker Hub / Azure Container Registry

Part 2: Publish Profiles

Publish settings are saved as .pubxml files in Properties/PublishProfiles/. Share profiles with your team via source control. Multiple profiles let you target dev/staging/production easily.

Part 3: Azure Container Apps Deployment

# Generated by VS 2026 Publish Wizard
az containerapp up
  --name myapp
  --resource-group mygroup
  --image myregistry.azurecr.io/myapp:latest
  --environment myenv
  --ingress external --target-port 8080

Part 4: Environment Configuration

VS 2026 integrates with Azure Key Vault for secrets:
  • Add Key Vault reference in Publish settings
  • Secrets auto-populate as environment variables
  • Never commit connection strings or API keys
  • Local development uses User Secrets (dotnet user-secrets)
VISUAL STUDIO 2026 MADE EASY
Recommended Book

VISUAL STUDIO 2026 MADE EASY

Build real applications with C#, VB.NET, Python, JavaScript, C++, and .NET 10. A practical companion for mastering Visual Studio 2026 step by step.