Go implementation of the Azure Automation hybrid worker
Перейти к файлу
Bhaskar Brahma 0f0878740b
Fixed local logging and added call stack to errors (#14)
* Fixed local logs file size

* Added call stack to errors

* addressed PR comments
2019-04-30 16:29:59 -07:00
internal Fixed local logging and added call stack to errors (#14) 2019-04-30 16:29:59 -07:00
main Fixed local logging and added call stack to errors (#14) 2019-04-30 16:29:59 -07:00
misc Adding sandbox/job (#8) 2018-11-07 18:11:01 -08:00
pkg/executil Fixed local logging and added call stack to errors (#14) 2019-04-30 16:29:59 -07:00
.gitattributes Fixed local logging and added call stack to errors (#14) 2019-04-30 16:29:59 -07:00
.gitignore Fixed local logging and added call stack to errors (#14) 2019-04-30 16:29:59 -07:00
LICENSE Initial commit 2018-10-18 13:28:35 -07:00
Makefile Adding test on build and local logging (#12) 2018-11-27 15:58:19 -08:00
README.md Adding test on build and local logging (#12) 2018-11-27 15:58:19 -08:00
build.cmd Adding test on build and local logging (#12) 2018-11-27 15:58:19 -08:00

README.md

The azure automation worker is mainly used to run script on Azure virtual machine. These script can be part of the update management solution or standalone to run automation tasks.

Requirement

Go 1.10

Build

On Windows :

build.cmd

On Linux :

make

After building, the /bin folder will contain 2 executables (one for the main worker and an other one for sandboxes).

Worker configuration

A configuration which contains the following required key is required to run the hybrid worker.

{
  "jrds_cert_path" : "",
  "jrds_key_path" : "",
  "jrds_base_uri" : "",

  "account_id" : "",
  "machine_id" : "",
  "hybrid_worker_group_name" : "",
  "worker_version" : "",
  "working_directory_path" : ""
}

Run

To start the hybrid worker execute :

./worker <path_to_your_configuration>

Missing features

  • Proxy support
  • Python automation assets
  • Signature validation
  • Http client retry logic

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.