This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Removes git extraheader for AzD project from pipeline after terraform has feteched modules from AzD repo | |
.DESCRIPTION | |
.PARAMETER AzDteamAccountURL | |
Azure DevOps account url | |
https://dev.azure.com/AccountName | |
.PARAMETER Verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Uses AzD agent Oauth token to set git config extraheader so terraform init can use private AzD git repo as module source | |
.DESCRIPTION | |
Section running this task needs to have access to Oauth token. This is configured on the agent step in the pipeline config. | |
.PARAMETER AzDteamAccountURL | |
Azure DevOps account url | |
https://AccountName@dev.azure.com/AccountName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Sends a message via SMS using PSWinCom Gateway to | |
recipients defined in the specified System Center Operations Manager subscription. | |
All activity is logged to the eventlog defined in $EventLog with source name $EventSource. | |
For logging to work New-EventLog -LogName $EventLog -Source $EventSource must be first | |
executed on all SCOM MGMT servers the script will run on beforehand. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region Parameters | |
# Set sample interval Last 3 hours UTC | |
$aggregationInterval = 3 | |
$TopN = 40 | |
$PerfCounterName = "Send Queue Size" | |
$RuleDisplayName = "Collect Health Service Management Group\Send Queue Size" | |
$Class = Get-SCOMClass -Name Microsoft.SystemCenter.Agent | |
$Agents = Get-SCOMClassInstance -class $Class |