Skip to main content

AZURE API EXTRAS

W.I.P. Azure stuff to make my life easier.

INSTALLATION

pip install azure-extras

CONFIGURATION

Copy azure.example.ini to $HOME/.azure.ini, adding your subscription and tenant details along the way.

This location can be customised with the --config flag at runtime.

TODO: Use Azure CLI credentials

KUDU API CLI FRONTEND

https://github.com/projectkudu/kudu

usage: az-kudu [-h] [-a NAME] [-C PATH] [-r NAME]
               (-c COMMAND | -e SLUG | -z PATH | -Z SOURCE DESTINATION)
               [-p PATH] [-v]

CLI Kudu API Frontend

optional arguments:
  -h, --help            show this help message and exit
  -a NAME, --app NAME   azure app service name
  -C PATH, --config PATH
                        path to azure configuration file
  -r NAME, --rg NAME    azure resource group
  -c COMMAND, --cmd COMMAND
                        command to run (use quotes for multi-word commands)
  -e SLUG, --endpoint SLUG
                        api endpoint slug
  -z PATH, --deploy_zip PATH
                        upload a zip to the server
  -Z SOURCE DESTINATION, --download_zip SOURCE DESTINATION
                        download a zip of a remote path
  -p PATH, --cwd PATH   server current working directory
  -v                    increase verbosity

APP SERVICE HEALTH CHECK

Workaround until this is implemented in terraform

usage: az-chkhealth [-h] [-a NAME [NAME ...]] [-r NAME] [-A ENABLE/DISABLE]
                    [-C PATH] [-v]

Enable or disable Health Check in Azure App Services

optional arguments:
  -h, --help            show this help message and exit
  -a NAME [NAME ...], --app_services NAME [NAME ...]
                        list of azure app services
  -r NAME, --resource_group NAME
                        azure resource group
  -A ENABLE/DISABLE, --action ENABLE/DISABLE
                        action to carry out - enable or disable.
  -C PATH, --config PATH
                        path to azure configuration file
  -v                    increase verbosity

APP SERVICES CONTROLLER

usage: az-asctl [-h] [-a NAME [NAME ...]] [-r NAME] [-A START/STOP] [-C PATH]
                [-v]

Start or stop Azure App Services and their slots

optional arguments:
  -h, --help            show this help message and exit
  -a NAME [NAME ...], --app_services NAME [NAME ...]
                        list of azure app services
  -r NAME, --resource_group NAME
                        azure resource group
  -A START/STOP, --action START/STOP
                        action to carry out - enable or disable.
  -C PATH, --config PATH
                        path to azure configuration file
  -v                    increase verbosity

STREAM ANALYTICS JOBS CONTROLLER

usage: az-sajctl [-h] [-C PATH] [-r NAME] [-j JOBS [JOBS ...]] [-a START/STOP]
                 [-v]

Start or stop Stream Analytics Jobs

optional arguments:
  -h, --help            show this help message and exit
  -C PATH, --config PATH
                        path to azure configuration file
  -r NAME, --resource_group NAME
                        azure resource group
  -j JOBS [JOBS ...], --stream_analytics_jobs JOBS [JOBS ...]
                        list of azure stream analytics jobs
  -a START/STOP, --action START/STOP
                        action to carry out - start or stop.
  -v                    increase verbosity

Release files for azure-extras 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for azure-extras 0.3.1
File Size Uploaded
azure_extras-0.3.1.tar.gz 11.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for azure-extras 0.3.1
File Interpreter ABI Platform
azure_extras-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 25.5 kB

Release files / azure_extras-0.3.1.tar.gz

Download URL azure_extras-0.3.1.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4c220e3457aa2595b068450e7468a1b848e1cdfd97c34a6fdd464b143b106044
BLAKE2b-256 checksum
How to use checksums
17469a24f002a4e57c0fa8fb103321276bdbf8587265c3c15fe2a5433fdb6808
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / azure_extras-0.3.1-py3-none-any.whl

Download URL azure_extras-0.3.1-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf6841f44cdb47aa09d1aa65b7e0a9f64b37cd0b1f024b651102b275d0a22da0
BLAKE2b-256 checksum
How to use checksums
38f9c869c1f18b0df1522506b0ad57f100594006e087fef51d89312b0129ee23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.1.9

2 release files

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page