Skip to content

Instantly share code, notes, and snippets.

$subscriptionName = "Personal Subscription" #Destination Azure Subscription Name
$destinationStorageAccountName = "" #Destination Azure Storage Account Name
## Source Blob details
$sourceUrl = "https://alertlogic.blob.core.windows.net/tmcimage/al-tmc-image_latest.vhd"
$sourceStorageAccount = "alertlogic"
$container = "tmcimage"
$vhdName = "al-tmc-image_latest.vhd"
<?xml version="1.0" encoding="UTF-8"?>
<?Copyright (c) Microsoft Corporation. All rights reserved.?>
<DataCollectorSet>
<Name>SQL_PERFORMANCE_OVERVIEW</Name>
<DisplayName>@%systemroot%\system32\wdc.dll,#10026</DisplayName>
<Description>@%systemroot%\system32\wdc.dll,#10027</Description>
<Keyword>CPU</Keyword>
<Keyword>Memory</Keyword>
<Keyword>Disk</Keyword>
<Keyword>Network</Keyword>
[CmdletBinding()]
Param
(
[Parameter(Mandatory=$True)]
[string] $Path
)
$date = Get-Date -Format yyyyMMddHHmmss
$computer_name = $env:COMPUTERNAME
$destination = "$($computer_name)__$($date)"