Update required for runbook scripted actions

Update required for runbook scripted actions

If you have received notification from Microsoft stating Action required: Update to DesktopVirtualization API v. 2024-04-08-preview or API v. 2024-04-03, then you need to update the Az.DesktopVirtualization PowerShell module within the scripted action automation account to version 5.4.0 or higher by August 1, 2025, to ensure scripted actions continue to work as expected.

Note: You need only to update the 5.1 runtime, and the automation account may require additional modules to be upgraded prior to updating Az.DesktopVirtualization (depending on version).

To simplify the upgrade process, a scripted action has been written to automatically update the Az.DesktopVirtualization PowerShell modules used by Nerdio Manager in Azure.

To update the Az.DesktopVirtualization PowerShell module:

  1. Navigate to Scripted Actions > Azure Runbooks.

  2. Select from the following:

    • Classic UI: Navigate to the Update Az.DesktopVirtualization scripted action, and from the action menu, select Run / schedule.

    • New UI: Navigate to the Update Az.DesktopVirtualization scripted action, and from the more actions menu, select Run / schedule.

  3. Enter the following information:

    • Select the Run now tab or the schedule tab.

      • The Schedule tab allows you to perform the task during selected time frame(s). Otherwise, the task starts as soon as you select OK. Select the schedule from the drop-down list, or create a new schedule.

        Note: You can select the schedule from the drop-down list, or create a new schedule. The details for the new schedule are at the bottom of the dialog box.

    • Azure subscription: From the drop-down list, select the Azure subscription.

    • Parameters:

      • Name of Automation Account: Enter the name for the automation account, and from the drop-down list, select the value.

      • Resource Group of Automation Account: Enter the name for the resource group of automation account, and from the drop-down list, select the value.

      • Select Add to create additional parameters.

    • Show advanced settings:

      • Pass AD credentials: Select to pass the AD credentials to the scripts, and then, from the drop-down list, select the credentials.

        Note: Passes AD credentials from the directory profile specified on the Settings > Profiles Management page to the scripts being executed. Referenced as $ADUsername and $ADPassword in the script.

      • Execution timeout (mins): Select to specify the duration in minutes Nerdio Manager should wait for the runbook to complete.

        Note: Timeout value must be between 10 and 180 minutes.

  4. Once you have entered the required configuration, select Run now.

The script will now execute.

To edit the Update Az.DesktopVirtualization scripted action:

  1. Navigate to Scripted Actions > Azure Runbooks.

  2. Select from the following:

    • Classic UI: Navigate to the Update Az.DesktopVirtualization scripted action, and from the action menu, select Edit.

    • New UI: Navigate to the Update Az.DesktopVirtualization scripted action, and from the more actions menu, select the pencil icon.

  3. Make the changes required.

  4. Select Save & close.

To update the PowerShell Az Modules in the Azure automation accounts, see Update the PowerShell Az Modules in the Azure Automation Accounts.

For more information, see Update Azure PowerShell modules in Automation.

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.