Practice Exam

Question 53 of 75

Set Web App Worker Count for Single Instance

You work as a Cloud Application Engineer for MDFT Pro, a well-known training agency that delivers certification courses to students worldwide. Claire, the Web Services Architecture Lead, manages a service consisting of several Azure web apps running in an App Service Plan named PrimaryASP with per-site scaling enabled. You’re developing a new web service called ExcelParser that processes student grade spreadsheets and course enrollment Excel files uploaded by instructors. The web app uses a third-party Excel processing library with a licensing restriction that prohibits running multiple instances of the library simultaneously—you can only run a single instance. Now that per-site scaling is enabled on PrimaryASP, you need to configure the ExcelParser web app itself to run on exactly one worker instance.

How should you configure the web app to limit it to a single instance?

$app = Get-AzWebApp `
    -ResourceGroupName $rg `
    -Name "ExcelParser"

$app.________________

Choose the correct answer from the options below.

Explanations for each answer:

Learn more about Per-App Scaling:
App Service Per-App Scaling
Next Question
Discuss this question on social media: