An administrator is configuring a Virtual Machine Scale Set (VMSS) named `vmss-api` that uses Uniform orchestration mode and a Rolling upgrade policy to host a web service. After deploying an application update by updating the VMSS model, the administrator observes that all instances are upgraded in sequence, but the web service becomes unavailable because the new version has a startup bug. The rolling upgrade did not pause or roll back because the VM provisioning status of the upgraded instances remained 'Succeeded'. You need to ensure that future rolling upgrades automatically pause and roll back if the web service fails to start on upgraded instances. What should you configure?
- An Application Health extension on the scale set to monitor the web service's health endpoint.Cevap
- BA custom autoscale scale-in rule based on the average CPU usage of the scale set.
- CAn Azure Monitor alert rule that triggers when the VM provisioning state changes to Succeeded.
- DA standard Azure Load Balancer with a TCP health probe associated with the scale set's backend pool, without enabling health-based upgrade orchestration on the scale set.
Cevap
An Application Health extension on the scale set to monitor the web service's health endpoint.
The correct configuration is to use an Application Health extension on the scale set to monitor the web service's health endpoint. The Application Health extension is designed to run inside VMSS instances, monitor a configured HTTP/HTTPS or TCP endpoint, and report the application's health status back to the VMSS upgrade engine. During a rolling upgrade, this allows the engine to detect application-level failures, halt the rollout, and roll back to the previous model version.
Adım Adım Çözüm
Anahtar Kavram
Configuring application health monitoring for Virtual Machine Scale Set (VMSS) rolling upgrades.
Tahmini Süre:2m 0s