Created
December 1, 2019 12:03
-
-
Save rdtechie/afe60b46198936be95b0a5c10aae0921 to your computer and use it in GitHub Desktop.
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
$params = @{ | |
Name = 'SCGitHub' | |
RepoUrl = 'https://github.com/rdtechie/azure_automation_runbooks.git' | |
SourceType = 'GitHub' | |
FolderPath = "/" | |
Branch = 'master' | |
AccessToken = ConvertTo-SecureString -String 'Put GitHub access token here' -AsPlainText -Force | |
ResourceGroupName = 'rhif' | |
AutomationAccountName = 'automation' | |
EnableAutoSync = $true | |
} | |
New-AzureRmAutomationSourceControl @params |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment