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?
Click on the arrows to vote for the correct answer
A. B.B
A PowerShell script is a file that contains PowerShell cmdlets and code. A PowerShell script needs to be run in PowerShell.
PowerShell can now be installed on Linux. However, the question states that the computer has Azure CLI tools, not PowerShell installed. Therefore, this solution does not meet the goal.
https://docs.microsoft.com/en-us/powershell/scripting/components/ise/how-to-write-and-run-scripts-in-the-windows-powershell-ise?view=powershell-6The recommended solution for running a PowerShell script that creates Azure resources is to use a computer with PowerShell and the Azure PowerShell module installed.
However, the given solution suggests running the script from a computer that runs Linux and has the Azure CLI tools installed. This approach may not work as expected because the Azure CLI is not the same as the Azure PowerShell module, and running a PowerShell script requires PowerShell, which is not available on Linux by default.
Therefore, the recommended solution provided in the given scenario is not appropriate for the given goal, and the correct answer is B. No.
To run PowerShell scripts that create Azure resources, it is recommended to use a Windows-based computer with PowerShell and the Azure PowerShell module installed. Alternatively, you could use the Azure Cloud Shell, which is a browser-based command-line interface that provides access to PowerShell and the Azure PowerShell module.
No, deploying the virtual machines to two or more resource groups does not meet the goal of ensuring availability of services if a single data center fails. Resource groups are logical containers for Azure resources, and they are not designed to provide high availability or disaster recovery capabilities.
To achieve high availability and disaster recovery in Azure, you need to use Azure Availability Zones or Azure Site Recovery.
Azure Availability Zones are physically separate data centers within an Azure region that are interconnected with high-speed, private fiber-optic networks. Deploying virtual machines in different Availability Zones ensures that your services remain available even if one zone goes down.
Azure Site Recovery is a disaster recovery solution that replicates your virtual machines to a secondary location, such as another Azure region or an on-premises site. In the event of a data center outage, you can fail over your services to the secondary location and continue operations.
In summary, while deploying virtual machines to multiple resource groups is a good practice for resource management and access control, it does not provide the necessary level of availability and disaster recovery for ensuring services remain available in the event of a single data center failure. Azure Availability Zones or Azure Site Recovery are better options for achieving high availability and disaster recovery in Azure.