Skip to main content

Azure resources configuration differences

Project description

AzDiff v0.1

License Language

What is AzDiff?

  • Have you been trying to manually compare two Azure resources, jumping between Azure portal tabs dozens of times?
  • Have you encountred a confusing situation when a solution is working fine in environment A but failing in environment B ?

Well, say no more, I have been there, so I created this tool that will help you compare the configuration between two Azure resources (Function apps, app services, Virtual Machines..) and will return the properties of each resources and will highlight the differences.

Usage example

Install the package

pip install azdiff

Login using az login or sign in using a service principal.

export SUBSCRIPTION_ID={SUBSCRIPTION_ID}
azdiff appservice  --resource_name1={resource_name1} --rg_name1={rg_name1} --resource_name2={resource_name2} --rg_name2={rg_name2}

Result:
notice the differences are marked in red with [?]


plot

Available commands (--help):

Usage: azdiff [OPTIONS] COMMAND [ARGS]...

Options:
  --debug / --no-debug  Enable debug mode
  --help                Show this message and exit.

Commands:
  appservice
  functionapp
  serviceplan
  vm

Build

Local Development

  • install python3 (tested with Python 3.8.10)
  • install REQUIREMENTS.txt using make init

I recommend to use Python3 virtual environments.

# install wheel
pip install wheel
# build python wheel package
python3 setup.py bdist_wheel --version {0.b123}
# install the wheel created from the previous step
pip install {package_path}.whl
# test run
azdiff

Contribute

Contributions are welcome:

  1. Please pick any of the features in the backlog here, or contact me to align if you have other ideas,
  2. Please make your PR against the dev branch,
  3. Please make sure that your PR includes functional tests with screenshots (as I still don't have a proper unit tests, or feel free to implement them :) )

Thank you!

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

azdiff-0.1-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file azdiff-0.1-py3-none-any.whl.

File metadata

  • Download URL: azdiff-0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for azdiff-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4acc339032ff3f9bb72920826ea176fcd54854a50f0cf62e33cff8065816ea79
MD5 837964d4ffaf766b4d97b9514b19c4de
BLAKE2b-256 71b62e955f4be6d95c035a462856b466414ba7d476e6bf065b31d78b13e65eb6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page