This page contains Windows bias

About This Page

This page is part of the Azure documentation. It contains code examples and configuration instructions for working with Azure services.

Bias Analysis

Bias Types:
⚠️ powershell_heavy
⚠️ windows_first
⚠️ windows_tools
⚠️ missing_linux_example
Summary:
The documentation is heavily focused on PowerShell modules and workflows, with nearly all examples, instructions, and internal tooling centered on Windows PowerShell and Windows-specific features. Internal cmdlets and modules are explicitly unavailable on Linux Hybrid Runbook Workers, and there are no Linux shell or cross-platform scripting examples. Linux support is mentioned only to note limitations or lack of availability, and there are no Linux-native module management workflows or parity in examples.
Recommendations:
  • Provide equivalent Linux/bash examples for module management, such as using Azure CLI or bash scripts to import, update, or delete modules.
  • Clearly indicate which features are Windows-only and provide alternative workflows or guidance for Linux Hybrid Runbook Workers.
  • Include documentation and examples for managing Python modules and runbooks on Linux, not just a link to another page.
  • Highlight cross-platform capabilities and limitations in a dedicated section, making it clear what is supported on Linux vs. Windows.
  • When listing internal cmdlets or features, suggest Linux-compatible alternatives or workarounds where possible.
  • Balance the order of presentation so that Linux and cross-platform options are not always secondary or omitted.
GitHub Create pull request

Scan History

Date Scan ID Status Bias Status
2025-08-17 00:01 #83 in_progress ✅ Clean
2025-07-13 21:37 #48 completed ❌ Biased

Flagged Code Snippets

Import-DscResource -ModuleName "<ModuleName>" -ModuleVersion "<version>"
$globalNum = 0 function Set-GlobalNum { param( [int] $num ) $globalNum = $num } function Get-GlobalNumTimesTwo { $output = $globalNum * 2 $output }
You can also use the same cmdlet to import a module from the PowerShell Gallery directly. Make sure to grab `ModuleName` and `ModuleVersion` from the [PowerShell Gallery](https://www.powershellgallery.com).
Import-DscResource -ModuleName "<ModuleName>" -ModuleVersion "<version>"
### Import modules from the PowerShell Gallery You can import [PowerShell Gallery](https://www.powershellgallery.com) modules either directly from the Gallery or from your Automation account. To import a module directly from the PowerShell Gallery: 1. Go to [https://www.powershellgallery.com](https://www.powershellgallery.com) and search for the module to import. 2. Under **Installation Options**, on the **Azure Automation** tab, select **Deploy to Azure Automation**. This action opens the Azure portal. 3. On the Import page, select your Automation account, and select **OK**. ![Screenshot of the PowerShell Gallery import module](../media/modules/powershell-gallery.png) To import a PowerShell Gallery module directly from your Automation account: 1. In the portal, search for and select **Automation Accounts**. 1. On the **Automation Accounts** page, select your Automation account from the list. 1. Under **Shared Resources**, select **Modules**. 1. Select **Browse gallery**, and then search the Gallery for a module. 1. Select the module to import, and select **Import**. 1. Select **OK** to start the import process. ![Screenshot of importing a PowerShell Gallery module from the Azure portal](../media/modules/gallery-azure-portal.png) ## Delete modules If you have problems with a module, or you need to roll back to a previous version of a module, you can delete it from your Automation account. You can't delete the original versions of the [default modules](#default-modules) that are imported when you create an Automation account. If the module to delete is a newer version of one of the [default modules](#default-modules), it rolls back to the version that was installed with your Automation account. Otherwise, any module you delete from your Automation account is removed. ### Delete modules in the Azure portal To remove a module in the Azure portal: 1. In the portal, search for and select **Automation Accounts**. 1. On the **Automation Accounts** page, select your Automation account from the list. 1. Under **Shared Resources**, select **Modules**. 1. Select the module you want to remove. 1. On the Module page, select **Delete**. If this module is one of the [default modules](#default-modules), it rolls back to the version that existed when the Automation account was created. ### Delete modules by using PowerShell To remove a module through PowerShell, run the following command: