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.
To install Rust see here: https://www.rust-lang.org/tools/install.
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.
Azure-init includes two types of tests: unit tests and end-to-end (e2e) 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.
Please refer to E2E_TESTING.md for end-to-end testing.
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.
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.
For common library used by this reference implementation, please refer to libazureinit.