Learn how Visual Studio can interact with Azure App Service, including settings configuration and through remote debugger attachment and enabling.
- For the most part, everything we've done so far has been in the portal, or through PowerShell. Let's go ahead and take a look at Visual Studio, and how we can manage our apps, from here. I've already opened up Visual Studio. And I'm going to launch Server Explorer. And then expand Azure, my App Service. You'll now see a list of the resource groups that I have. We're going to focus on the resource group, DeployFromVS, or "Visual Studio".
And here's the App that I deployed, from Visual Studio, in chapter one. We can see we have all the files associated with that app. We also have the Log Files. Because of we have enabled logging for this application. And we have the Slots and WebJobs. If I go ahead and right-click on our app, I can view settings.
And here I have our configuration. And this might look a little bit familiar at this point. These are the same application settings that we saw in the portal itself. And I already have some of the logging turned on. What I like to do is turn on Remote Debugging. And then click "On". And just click "Save", just so that changes push through. If I scroll down, I could add in Connection Strings here.
And I already have some application settings already set up. We can also stop and restart the app from Visual Studio. If I pop into Logs, I can stream our logs from here. And we can see we are now connected to our streaming service. And we did this before within the portal, and using PowerShell. We can download our logs.
I've already shown this to you, using PowerShell. And we can also go ahead and configure logging in the management portal. I'm going to go back to Server Explorer. Here we can also go ahead and attach a debugger. Now typically you would put in the trace code first, and then attach the debugger, but that's somewhat out-of-scope for this course. I just want to show you how we attach that debugger.
Now we can see down at the bottom that we have our call stack, and we'd have our break point, and exception settings, and everything else that we had put in through our trace.
- Deploying Web Apps
- Creating App Service plans
- Deploying and moving apps
- Configuring app settings
- Managing Web Apps using PowerShell and CLI
- Configuring alerts
- Enabling diagnostic logs
- Retrieving and streaming logs
- Configuring Web Apps for scale and resilience