cd 'C:\Program Files\Microsoft Monitoring Agent\Agent'
.\TestCloudConnection.exe
PS C:\Program Files\Microsoft Monitoring Agent\Agent> .\TestCloudConnection.exe
Starting Azure Log Analytics connectivity test.
Proxy Configuration: None. The agent will directly connect to the Internet.
Starting connectivity test for workspace id "940ca5bf-0e96-4772-b5a7-f5d5e6a4edc5".
This test may take several minutes to complete if a firewall is blocking access.
Making initial connection to 940ca5bf-0e96-4772-b5a7-f5d5e6a4edc5.oms.opinsights.azure.com.
This is to download the list of Azure resources neccesary for communication with this specific workspace.
Connectivity test passed for all hosts for workspace id "940ca5bf-0e96-4772-b5a7-f5d5e6a4edc5".
Successful Connections
Firewall Rule: *.agentsvc.azure-automation.net
940ca5bf-0e96-4772-b5a7-f5d5e6a4edc5.agentsvc.azure-automation.net
Firewall Rule: *.blob.core.windows.net
ncusoiomssa.blob.core.windows.net
oincus7476161551.blob.core.windows.net
scadvisorcontent.blob.core.windows.net
scadvisorcontentpl.blob.core.windows.net
Firewall Rule: *.ods.opinsights.azure.com
940ca5bf-0e96-4772-b5a7-f5d5e6a4edc5.ods.opinsights.azure.com
Firewall Rule: *.oms.opinsights.azure.com
940ca5bf-0e96-4772-b5a7-f5d5e6a4edc5.oms.opinsights.azure.com
cd 'C:\Program Files\Microsoft Monitoring Agent\Agent\Troubleshooter'
.\GetAgentInfo.ps1
# Testing...
Publish-AzWebApp -ResourceGroupName "ANI-Testing" -Name "ani-tasu-webapp" -Slot "webapp1-testing" -ArchivePath "c:\users\public\Desktop\webapp1\webapp1.zip"
$exclude = @("*.log", "*.tmp", "log*.txt")
$files = ls -File -Recurse -Exclude $exclude
Compress-Archive -Path $files -DestinationPath $home\desktop\webagent.zip
# Establish an authenticated session with Azure
Connect-AzAccount
Publish-AzWebApp -ResourceGroupName "rg-tasu" -Name "app-scus-webagent" -ArchivePath $home\desktop\webagent.zip
(curl ifconfig.me).Content