Configure and create an ASP.NET Core 6 WebApi or WebApp in an Azure App Service with the Key Vault as Configuration Provider
See Knowledge Base article for detailed description.
In appsettings.json replace your-sqlserver-name, your-database-name and your-key-vault-name with the correct names.