Skip to content

Azure/azure-init

Repository files navigation

Azure-Init

Github CI

A reference implementation for provisioning Linux VMs on Azure.

Azure-init configures Linux guests from provisioning metadata. Contrary to complex guest configuration and customisation systems like e.g. cloud-init, azure-init aims to be minimal. It strictly focuses on basic instance initialisation from Azure metadata.

Azure-init has very few requirements on its environment, so it may run in a very early stage of the boot process.

Installing Rust

To install Rust see here: https://www.rust-lang.org/tools/install.

Building the Project

Building this project can be done by going to the base of the repository in the command line and entering the command cargo build --all. This project contains two binaries, the main provisioning agent and the functional testing binary, so this command builds both. These binaries are quite small, but you can build only one by entering cargo build --bin <binary_name> and indicating either azure-init or functional_tests.

To run the program, you must enter the command cargo run --bin <binary_name> and indicating the correct binary.

Testing

Azure-init includes two types of tests: unit tests and end-to-end (e2e) tests.

Running Unit Tests

From the root directory of the repository, run:

cargo test --verbose --all-features --workspace

This will run the unit tests for every library in the repository, not just for azure-init. Doing so ensures your testing will match what is run in the CI pipeline.

Running End-to-End (e2e) Tests

Please refer to E2E_TESTING.md for end-to-end testing.

Contributing

Contribution require you to agree to Microsoft's Contributor License Agreement (CLA). Please refer to CONTRIBUTING.md for detailed instructions.

This project adheres to the Microsoft Open Source Code of Conduct. Check out CODE_OF_CONDUCT.md for a brief collection of links and references.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

libazureinit

For common library used by this reference implementation, please refer to libazureinit.

About

A minimal provisioning agent designed for Azure Linux VMs.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published