Managing App Services

This section guides you through the essential operations for managing your deployed App Services. Learn how to monitor performance, scale resources, configure settings, and deploy updates effectively.

Monitoring App Service Performance

Effective monitoring is crucial for maintaining the health and performance of your application. The App Service portal provides a comprehensive dashboard with key metrics.

You can set up alerts based on these metrics to be notified of potential issues proactively.

Key Monitoring APIs

  • GET /appservices/{id}/metrics: Retrieves performance metrics for a specific app service.
  • GET /appservices/{id}/logs: Fetches application and web server logs.
  • POST /appservices/{id}/alerts: Configures custom alerts for performance thresholds.

Scaling App Services

As your application's traffic grows, you may need to scale your App Services to ensure optimal performance and availability. App Services support both vertical and horizontal scaling.

Vertical Scaling (Scale Up/Down)

This involves changing the instance size of your App Service to provide more CPU, memory, or disk space. You can easily adjust the tier of your App Service through the portal.

Horizontal Scaling (Scale Out/In)

This involves increasing or decreasing the number of instances running your App Service. This is ideal for handling increased traffic loads.

Tip: Auto-scaling rules can be configured to automatically adjust the number of instances based on metrics like CPU usage or queue length, ensuring your application can handle fluctuating demand without manual intervention.

Configuring App Service Settings

App Services offer a wide range of configuration options to tailor your application's environment.

Important: Always use App Settings or Connection Strings for sensitive information like API keys and database credentials, rather than hardcoding them into your application code.

Deploying Updates and Managing Deployment Slots

Deployment slots allow you to manage deployments with zero downtime. You can deploy a new version of your app to a staging slot, test it thoroughly, and then swap it with the production slot.

This feature is invaluable for ensuring smooth transitions and minimizing the risk of introducing bugs into your production environment.

Explore Deployment APIs