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
Function Get-Something { | |
<# | |
.SYNOPSIS | |
Get something | |
.DESCRIPTION | |
Describe what this does. | |
Many of the parameters are the same as in Invoke-Command. |
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
#The following is an Azure Automation PowerShell runbook. | |
#Uses a preconfigured AutomationConnection object (AzureRunAsConnection) for authentication | |
#This object must be in place in your tenant with the appropriate role(s), and added as a connection asset in the | |
#Azure Automation account being used. | |
Param( | |
[string]$environmentName = "AzureUSGovernment", | |
[Parameter(Mandatory=$true)] | |
[string]$subscriptionId, | |
[string]$location = "USGov Virginia", |