![]() ![]() Write-Output "Executing the new Runbook $ ( $RunbookName ). ![]() Write-Output "Publishing the new Runbook $ ( $RunbookName ). Import-AzureRmAutomationRunbook -AutomationAccountName $AutomationAccountName -ResourceGroupName $aroResourceGroupName -Path $psScriptPath -Name $RunbookName -Force -Type PowerShell New-AzureRmAutomationRunbook -Name $RunbookName -AutomationAccountName $AutomationAccountName -ResourceGroupName $aroResourceGroupName -Type PowerShell -Description "New autoupdate worker runbook " Write-Output "Creating the worker runbook in the Automation Account. $psScriptPath = " $PSScriptRoot\ $ ( $FileName ) " DownloadFile( $( $GithubFullPath), " $PSScriptRoot\ $ ( $FileName ) ") Write-Output "Download the AutoUpdateWorker script from Github. $aroResourceGroupName = Get-AutomationVariable -Name 'Internal_AROResourceGroupName ' $AutomationAccountName = Get-AutomationVariable -Name 'Internal_AROAutomationAccountName ' $GithubFullPath = " $ ( $GithubRootPath )/ $ ( $GithubBranch )/ $ ( $ScriptPath )/ $ ( $FileName ) " Write-Output "AutoUpdate Wrapper execution starts. $ErrorMessage = "Connection $connectionName not found. CertificateThumbprint $servicePrincipalConnection. ApplicationId $servicePrincipalConnection. $servicePrincipalConnection = Get-AutomationConnection -Name $connectionName # Get the connection "AzureRunAsConnection " $connectionName = "AzureRunAsConnection " #-L O G I N - A U T H E N T I C A T I O N. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |