Microsoft Azure Developer Associate AZ-204 Practice Question
You need to provision a new Azure App Service Web App named "contoso-api" for a .NET 7.0 application. The web app must run on Linux and be placed in the existing resource group "RG1" and the existing App Service plan "asp-linux" (located in the same resource group). Which Azure CLI command meets the requirements?
az webapp create --resource-group RG1 --plan asp-linux --name contoso-api --runtime "DOTNET:7.0" --os-type Linux
az webapp create --resource-group RG1 --plan asp-linux --name contoso-api --runtime "DOTNETCORE|7.0" --os-type Windows
az webapp create --resource-group RG1 --name contoso-api --runtime "DOTNETCORE|7.0" --os-type Linux
az webapp create --resource-group RG1 --plan asp-linux --name contoso-api --runtime "DOTNETCORE|7.0" --os-type Linux
The az webapp create command provisions the Web App. The --plan parameter places the app in an existing App Service plan, and --os-type Linux enforces the operating system. For a .NET 7 workload on App Service for Linux, the runtime identifier must be "DOTNETCORE|7.0". Omitting --plan would create the app in a free plan, using a Windows OS type would violate the requirement, and the value "DOTNET:7.0" is not a valid runtime string.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is an App Service Plan in Azure?
Open an interactive chat with Bash
What is the significance of the runtime 'DOTNETCORE|7.0' in Azure App Service?
Open an interactive chat with Bash
Why is '--os-type' important when provisioning an Azure Web App?
Open an interactive chat with Bash
Microsoft Azure Developer Associate AZ-204
Develop Azure compute solutions
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .