Managing Your Application

This section provides a comprehensive guide on how to effectively manage your application services after creation and deployment. Proper management ensures optimal performance, security, and availability.

Core Management Tasks

Managing your application involves several key activities, including updating configurations, scaling resources, handling errors, and controlling access.

Updating Application Configuration

Configuration settings can be modified to adapt your application to changing requirements. This can include adjusting environment variables, connection strings, or feature flags.

To update configuration:

  1. Navigate to your application's dashboard.
  2. Select the "Configuration" tab.
  3. Make the necessary changes and click "Save".

For programmatic configuration updates, refer to the App Services API documentation.

# Example using CLI for updating environment variables az appservice app config appsettings set --name MyWebApp --resource-group MyResourceGroup --settings MY_SETTING="new_value"

Scaling Application Resources

As your user base grows or workload increases, you may need to scale your application. App Services supports both vertical (increasing instance size) and horizontal (increasing instance count) scaling.

Horizontal scaling is often more effective for handling increased traffic and provides better fault tolerance.

To scale your application:

Monitoring and Diagnostics

Continuous monitoring is crucial for identifying and resolving issues proactively. App Services provides integrated monitoring and diagnostic tools.

Enable diagnostic logging to capture detailed information:

# Example: Enabling detailed logging for a web app az appservice webconfig set --name MyWebApp --resource-group MyResourceGroup --detailed-error-messages true --failed-request-tracing true

Managing Application Deployments

You can manage different deployment slots to test new versions of your application before making them live. This minimizes downtime and risk during updates.

Always perform rigorous testing in a staging environment before swapping to production.

Security Management

Regularly review and update security settings to protect your application and data.