Skip to main content

Deploy Web App + SQL Database

TL;DR — Deploy a full-stack web application with Azure SQL, Key Vault for secrets, and managed identities for secure resource communication.

Architecture​

Conversation​

@git-ape deploy a .NET web app with SQL Database and Key Vault
for the customer-portal project in dev, eastus

Resource Configuration​

ResourceKey Settings
App ServiceHTTPS-only, TLS 1.2, managed identity enabled, FTP disabled
SQL ServerAAD-only auth (azureADOnlyAuthentication: true), no SQL auth
SQL DatabaseStandard S1, geo-backup enabled
Key VaultRBAC authorization, soft-delete enabled, purge protection
App InsightsConnected via instrumentation key in Key Vault

Security Highlights​

  • AAD-only SQL authentication — no SQL username/password
  • Key Vault references — app settings use @Microsoft.KeyVault(SecretUri=...) syntax
  • Managed identity chain — App Service → SQL Database, App Service → Key Vault
  • RBAC roles auto-assigned:
    • App Service → SQL DB Contributor on SQL Database
    • App Service → Key Vault Secrets User on Key Vault