Normally, you can attach the Visual Studio debugger directly to an Azure App Service to debug your web app (similar to what you would do
Tag: App Service
My GitHub repo shows how to retrieve secrets stored in an Azure Key Vault using a .NET Framework & .NET Core application. It demonstrates both