Skip to content

Instantly share code, notes, and snippets.

@PrateekKumarSingh
Created December 6, 2019 16:20
Show Gist options
  • Save PrateekKumarSingh/52b04fb277e3c8afd9910ae226ad612a to your computer and use it in GitHub Desktop.
Save PrateekKumarSingh/52b04fb277e3c8afd9910ae226ad612a to your computer and use it in GitHub Desktop.
# inputs
$WarningPreference = 'SilentlyContinue'
$TimeGrain = [timespan]::FromMinutes(1)
$MetricName = 'Percentage CPU'
$ResourceName = 'MyVM'
$Start = [datetime]::Now.AddMinutes(-90)
$End = [datetime]::Now.AddMinutes(-45)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment