Microsoft Entra Global Secure Access

PowerShell samples for Global Secure Access

In brief

Use these PowerShell samples to automate common Global Secure Access tasks, including connector registration, client install, traffic forwarding bypasses, break glass scenarios, TLS certificate creation, operations monitoring, and recovery.

Documentation change

| Create and sign TLS certificates using Active Directory Certificate Services | Generate a certificate signing request through the TLS inspection Graph API, sign it with ADCS, and upload the certificate and chain to TLS inspection settings. | | Create and sign TLS certificates using OpenSSL | Generate a certificate signing request through the TLS inspection Graph API, sign it with a self-signed root CA created by OpenSSL, and upload the certificate and chain to TLS inspection settings. |

Operations monitoring

Sample Description
Shared helper functions for operations scripts Use shared authentication, Log Analytics token, and alert email helper functions for operations automation scripts.
Verify configuration backup compliance Check recent Azure Automation jobs for your Global Secure Access configuration backup runbook and alert when backups fail or miss a scheduled run.
Check role assignment reviews Query Global Secure Access-related role assignments and identify administrator accounts that need quarterly review.
Calculate alert noise ratio Calculate the Microsoft Sentinel alert noise ratio for Global Secure Access detections and identify noisy analytics rules.

Recovery

Sample Description
List Microsoft Entra snapshots List Microsoft Entra Backup and Recovery snapshots for the tenant and identify the latest available snapshot.
Preview Microsoft Entra recovery Create a non-destructive recovery preview job scoped to directory objects that affect Global Secure Access.
Run Microsoft Entra recovery Run a Microsoft Entra recovery job after reviewing and approving the matching preview job.