PowerShell Module: Export the Host Pool Configuration

PowerShell Module: Export the Host Pool Configuration

This feature is only available in the Nerdio Manager Premium edition.

Nerdio Manager allows you to export the host pool configuration by using Nerdio’s PowerShell module. Specifically, using the Export-NmeHostPoolConfig cmdlet.

Prerequisites

Install the PowerShell module. See PowerShell Module: Tutorial for details.

Export the Host Pool Configuration

The following procedure allows you to export the host pool configuration.

To export the host pool configuration:

  1. Open a PowerShell session (for example, using PowerShell ICE).

  2. Run the Connect-NME command to connect to Nerdio Manager. See PowerShell Module: Tutorial for details.

  3. Run the Connect-AzAccount command.

  4. Once connected, run the Get-AzSubscription command.

    The Subscription Id is displayed.

  5. Define the following variables using the syntax shown here:

    • $subId = “Id value for your subscription as shown above”

    • $resourceGroup = “name of our resource group where our session host is provisioned”

    • $hostPoolName = “name of the host pool you wish to export”

  6. Run the following command:

    Export-NmeHostPoolConfig -SubscriptionId $subId -resourcegroup $resourceGroup -hostPoolName $hostPoolName

    A JSON object is generated in the console.

  7. Alternatively, run the following command to redirect the output to a file:

    Export-NmeHostPoolConfig -SubscriptionId $subId -resourcegroup $resourceGroup -hostPoolName $hostPoolName > Text.txt

Retrieve the Host Pool Status

The following procedure allows you to retrieve the host pool status.

To retrieve the host pool status:

  • Run the following command to retrieve the host pool status:

    Note: Be sure to run the command using the parameters shown below.

    Get-NmeHostPoolSessionHosts -SubscriptionId $subId -resourcegroup $resourceGroup -hostPoolName $hostPoolName

Was this article helpful?

0 out of 0 found this helpful
Have more questions? Submit a request

Comments (0 comments)

Please sign in to leave a comment.