Last active
November 5, 2025 17:50
-
-
Save joerodgers/9925e8782f7400f1d7955afe0d2b4d6a to your computer and use it in GitHub Desktop.
Example script for testing DNS and connectivity to the Application Insights from a Power Platform environment connected to a customer managed Azure subnet via enterprise policy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Import-Module -Name "Microsoft.PowerPlatform.EnterprisePolicies" -ErrorAction Stop | |
| Connect-AzAccount | |
| $tenantId = "<YOUR TENANT ID>" | |
| $environmentId = "<ENVIRONMENT ID>" | |
| $hostname = "dc.services.visualstudio.com" | |
| Test-DnsResolution ` | |
| -EnvironmentId $environmentId ` | |
| -HostName $hostname ` | |
| -TenantId $tenantId ` | |
| -Endpoint prod ` | |
| -Region "eastus" | |
| Test-DnsResolution ` | |
| -EnvironmentId $environmentId ` | |
| -HostName $hostname ` | |
| -TenantId $tenantId ` | |
| -Endpoint prod ` | |
| -Region "westus" | |
| Test-NetworkConnectivity ` | |
| -EnvironmentId $environmentId ` | |
| -Destination $hostname ` | |
| -Port 443 ` | |
| -TenantId $tenantId ` | |
| -Endpoint prod ` | |
| -Region "eastus" | |
| Test-NetworkConnectivity ` | |
| -EnvironmentId $environmentId ` | |
| -Destination $hostname ` | |
| -Port 443 ` | |
| -TenantId $tenantId ` | |
| -Endpoint prod ` | |
| -Region "westus" | |
| <# EXAMPLE PUBLIC DNS IP | |
| Non-authoritative answer: | |
| Name: gig-ai-g-prod-eastus-3-app-v4-tag.eastus.cloudapp.azure.com | |
| Address: 52.179.73.59 | |
| Aliases: dc.services.visualstudio.com | |
| dc.applicationinsights.microsoft.com | |
| dc.applicationinsights.azure.com | |
| global.in.ai.monitor.azure.com | |
| global.in.ai.privatelink.monitor.azure.com | |
| dc.trafficmanager.net | |
| eastus-global.in.applicationinsights.azure.com | |
| gig-ai-prod-eastus-global.trafficmanager.net | |
| #> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment