Using Python to provide a modularized management of Azure network. It simplifies tasks such as creating Virtual Networks (VNets), deploying Virtual Machines (VMs), managing Network Security Groups (NSGs), and more.
Code Organization: Each module encapsulates logic specific to its Azure resource, enhancing code organization and readability.
Reusability: Modules can be reused across projects or within the same project for different infrastructure components, promoting code reusability.
Scalability: Easily add new modules for additional Azure resources or modify existing ones without impacting other parts
Before building, ensure:
python3 -m venv path/to/venv
source path/to/venv/bin/activate
python3 -m pip install -r requirements.txt
python3 modules/main.py
python3 pip install pytest
pytest test/
docker build -t azure-image .
docker run -p 4000:80 azure-image
docker build -t azure-test-image .
docker run azure-test-image
curl -sSL https://install.python-poetry.org | python3 -
poetry init
poetry install
poetry run python modules/main.py
poetry add --dev pytest
poetry run pytest