Soru

Zorluk: OrtaAzure Portal, CLI, PowerShell, and Cloud Shell

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?

  1. Install PowerShell Core and the Az PowerShell module directly on the RHEL server.Cevap
  2. B
    Rewrite the scripts using Azure CLI, as Azure PowerShell cmdlets cannot be installed on Linux operating systems.
  3. C
    Use a Windows-based virtual machine as a jump box, as Azure PowerShell requires the Windows operating system to run locally.
  4. D
    Run 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

1
Determine the operating system compatibility of Azure PowerShell.
Azure PowerShell is built on PowerShell Core, which is cross-platform and runs on Windows, macOS, and Linux.
To verify if the scripts can run directly on the Red Hat Enterprise Linux (RHEL) server.
2
Identify the required components to run Azure PowerShell cmdlets locally on Linux.
You need to install PowerShell Core first, followed by the Az PowerShell module.
To enable the execution of Azure-specific cmdlets from the local RHEL terminal.

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
Bu soruyu puanla