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:
Open a PowerShell session (for example, using PowerShell ICE).
Run the Connect-NME command to connect to Nerdio Manager. See PowerShell Module: Tutorial for details.
Run the Connect-AzAccount command.
Once connected, run the Get-AzSubscription command.
The Subscription Id is displayed.
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”
Run the following command:
Export-NmeHostPoolConfig -SubscriptionId $subId -resourcegroup $resourceGroup -hostPoolName $hostPoolName
A JSON object is generated in the console.
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
Comments (0 comments)