161k views
2 votes
Which option is the most suitable for running a PowerShell script to create Azure resources?

a) Run the script from a computer that runs Windows 10 and has the Azure PowerShell module installed.
b) Run the script from a macOS computer with PowerShell Core.
c) Run the script from a Linux computer with PowerShell Core.
d) Run the script from an older version of Windows without the Azure PowerShell module.

User Crymson
by
7.4k points

1 Answer

6 votes

Final answer:

The most suitable option for running a PowerShell script to create Azure resources is option a) Run the script from a computer that runs Windows 10 and has the Azure PowerShell module installed.

Step-by-step explanation:

The most suitable option for running a PowerShell script to create Azure resources is option a) Run the script from a computer that runs Windows 10 and has the Azure PowerShell module installed. This is because the Azure PowerShell module is designed specifically for managing Azure resources. The module provides cmdlets that allow you to interact with Azure and perform tasks such as creating resources, managing resource groups, and deploying applications.

While PowerShell Core is a cross-platform version of PowerShell that runs on macOS and Linux, it may not have all the features and functionality required to manage Azure resources. Older versions of Windows without the Azure PowerShell module may also lack the necessary tools and capabilities to effectively create and manage Azure resources.

Therefore, if you want to ensure a smooth experience and have access to all the Azure-specific features and cmdlets, it is recommended to run the script from a computer running Windows 10 with the Azure PowerShell module installed.

User Misha Tavkhelidze
by
9.4k points