Unable to deploy a Unified Access Gateway (UAG) VM through a PowerShell script, due to a datastore permission error
search cancel

Unable to deploy a Unified Access Gateway (UAG) VM through a PowerShell script, due to a datastore permission error

book

Article ID: 411825

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

When attempting to deploy a Unified Access Gateway (UAG) appliance using a PowerShell script, the following error message is received:

  • Error: Unable to write to datastore [<datastore_name>], Please check the permissions
    Completed with errors
    UAG deployment failed.  Further information may be found in the log file <provided_log_file_name>.txt

Environment

  • vSphere 7.x
  • vSphere 8.x

Cause

A specific privilege or privileges are missing within the role that is assigned to the user account being used to deploy the UAG appliance.

Resolution

  • Review the log file that is provided in the error message, and search for "missingPrivileges" entries.
  • Ensure the missing privileges that are listed in the log file are added to the role being used by the user account that is attempting to deploy the UAG appliance.

Additional Information

Additional details on deploying a UAG appliance through a PowerShell script can be found in the Omnissa Documentation.