Not sure running just Azure CLI on Linux will work for a PowerShell script. Az CLI is its own thing with different commands, it won't run PowerShell cmdlets. You'd need the PowerShell Az module installed. Agree with B here, but correct me if I missed something.
Q: 18
Note: This question is part of a series of questions that present the same scenario. Each question in
the series contains a unique solution that might meet the stated goals. Some question sets might
have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these
questions will not appear in the review screen.
An Azure administrator plans to run a PowerShell script that creates Azure resources.
You need to recommend which computer configuration to use to run the script.
Solution: Run the script from a computer that runs Linux and has the Azure CLI tools installed.
Does this meet the goal?
Options
Discussion
Option B had something like this in a mock. Azure CLI alone won’t run PowerShell scripts, so this doesn’t meet the goal.
C or D? Not sure since I thought Azure CLI works with scripts but maybe I'm missing something here. Anyone got a clear reason?
B , you can't run PowerShell scripts with just the Azure CLI installed. You actually need the PowerShell Az module for those cmdlets to work. Easy to mix up since both tools manage Azure, but they're not interchangeable here.
B Practice tests and the official documentation both say you need Azure PowerShell for PowerShell scripts, not just the CLI.
Be respectful. No spam.
Question 18 of 35