Skip to main content

Troubleshooting Errors When Running a PowerShell Package via Gateway

  • August 29, 2024
  • 0 replies
  • 58 views

Dagný Björk Stefánsdóttir
Contributor

This article provides guidance on how to resolve common errors that may occur when running a PowerShell package through Gateway.

Issues and Solutions

If you encounter the following error message, it indicates that the user executing the script does not have access to the Az library:

Register-AzModule : The term 'Register-AzModule' is not recognized as the name 
of a cmdlet, function, script file, or operable program. Check the spelling of 
the name, or if a path was included, verify that the path is correct and try 
again.

To resolve this issue, check the following:

  1. User Access: Ensure that the user running the Gateway service has the necessary access to the Az library folder.

  2. Disk Space: Verify that the server hosting the Gateway service has sufficient disk space available.

  3. RAM Availability: Confirm that the server running the Gateway service has adequate RAM to execute the script without running into memory issues.