Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaromir Kaspar committed Jun 30, 2020
1 parent 3ab770e commit 862bfe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scenarios/S2D and Grafana/Scenario.ps1
Expand Up @@ -735,7 +735,7 @@ New-NetFirewallRule -CimSession $GrafanaServerName `
#or download telegraf configuration from WSLab Github and configure grafana URL
if (!$config -or !$posh){
$config=(invoke-webrequest -usebasicparsing -uri https://raw.githubusercontent.com/Microsoft/WSLab/dev/Scenarios/S2D%20and%20Grafana/telegraf.conf).content
$posh=(invoke-webrequest -usebasicparsing -uri https://raw.githubusercontent.com/Microsoft/WSLab/dev/Scenarios/S2D%20and%20Grafana/telegraf.ps1).content
$posh=(invoke-webrequest -usebasicparsing -uri https://raw.githubusercontent.com/Microsoft/WSLab/dev/Scenarios/S2D%20and%20Grafana/telegraf.ps1).content.substring(1)
#save config and posh to Downloads folder
$posh | out-file -Filepath $env:userprofile\Downloads\telegraf.ps1 -force -Encoding UTF8
$config | out-file -Filepath $env:userprofile\Downloads\telegraf.conf -force -Encoding UTF8
Expand Down

0 comments on commit 862bfe8

Please sign in to comment.