Follow

Extracting EvOps Diagnostics Logs for Troubleshooting

Background

For advanced troubleshooting purposes and on request by our support team, it could be necessary to extract logs from EvOps diagnostics storage account. Extraction is performed using a PowerShell script that is attached to this article.

Prerequisites

Extraction script is using AzCopy to extract diagnostic, please follow the instructions below to install Microsoft Azure Storage Tools that includes AzCopy. If you already have Microsoft Azure Storage Tools installed in C:\Program Files (x86)\Microsoft SDKs\Azure\, please jump to Extract Diagnostic Logs.

Microsoft Azure Storage Tools Installation

  1. Extraction script is using AzCopy to extract diagnostic, please download using this link: Microsoft Azure Storage Tools Download
  2. Run MicrosoftAzureStorageTools.msi installer
  3. Click Next
  4. Check I accept the terms in the License Agreement, then click Next
  5. Verify that Destination Folder is set as below, then click Next 
    C:\Program Files (x86)\Microsoft SDKs\Azure\
    Important:
    This is a requirement for the script to work properly.
  6. Click Install
  7. Click Yes on UAC question
  8. Click Finish
  9. Done

Extract Diagnostic Logs

  1. Extract Get-EvOpsDiagnostics.zip to C:\Temp
  2. Login to tenant portal as Service Admin
  3. Find and open EvOps RP resource group with name format system.<LOCATION>.evops
  4. In EvOps RP resource group, open Storage account with a name starting with evopsdiag
  5. Navigate to Access keys
    string.png
  6. Copy Connection string for Key1
  7. Open a PowerShell prompt as Administrator
  8. Change directory to C:\Temp
  9. Replace <ConnectionString> with Connection string copied in step 6 and execute below script command
    Note: Important that connection string is wrapped with quotes (").
    PS C:\temp>.\Get-EvOpsDiagnostics.ps1 -ConnectionString "<ConnectionString>"
  10. When script has completed, you can find the name of the diagnostic log zip file in the script output that is located in the C:\Temp folder

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments