Your organization plans to run administrative scripts on a local server running Red Hat Enterprise Linux (RHEL) to manage cloud resources. The scripts must use PowerShell cmdlets. How can the administrative team execute these PowerShell-based scripts on the RHEL server?
- Install PowerShell Core and the Az PowerShell module directly on the RHEL server.Cevap
- BRewrite the scripts using Azure CLI, as Azure PowerShell cmdlets cannot be installed on Linux operating systems.
- CUse a Windows-based virtual machine as a jump box, as Azure PowerShell requires the Windows operating system to run locally.
- DRun the scripts exclusively through the Azure Portal, as command-line tools are not supported on Linux servers.
Cevap
Install PowerShell Core and the Az PowerShell module directly on the RHEL server.
Azure PowerShell is a cross-platform command-line tool that can be installed on Windows, macOS, and Linux. Since the target server runs Red Hat Enterprise Linux (RHEL), the administrative team can install PowerShell Core and the Az module directly to execute the scripts locally.
Adım Adım Çözüm
Anahtar Kavram
Azure PowerShell is a cross-platform command-line tool that can be installed locally on Windows, macOS, and Linux.
Tahmini Süre:1m 0s