Skip to main content

Helpful tools for using Azure resources interactively at the command line

Project description

Shortcuts for interacting with Azure resources

Usage

Print a VM IP after fuzzy searching

$ azure-interactive-shortcuts public-vm-ip
⠙ Collecting IP addresses from all VMs using Azure CLI
$ azure-interactive-shortcuts public-vm-ip
azis public-vm-ip
[19:12:24] Found 180 virtual machines, and 96 public ip   _public_vm_ip.py:76
           addresses                                                         
           4 ip addresses have the same name, and have    _public_vm_ip.py:85
           been discarded                                                    
Select an IP address:
 aatifs-cool-vm1-ip1   Resource group: my-rg1, VMs: aatifs-cool-VM1... 
 aatifs-cool-vm1-ip2   Resource group: my-rg1, VMs: aatifs-cool-VM1... 
 aatifs-cool-vm2-ip3   Resource group: my-rg2, VMs: aatifs-cool-VM2... 
 aatifs-cool-vm2-ip4   Resource group: my-rg2, VMs: aatifs-cool-VM2... 

This allows you to have quick one-liners:

ssh azureuser@"$(azis public-vm-ip)"

Installation

Recommended installation is with pipx:

python3 -m pip install --user pipx
python3 -m pipx ensurepath
python3 -m pipx install azure-interactive-shortcuts

Autocompletion

Autocompletion is done with argcomplete

pipx install --force argcomplete

# ~/.bashrc
eval "$(register-python-argcomplete azis)"
eval "$(register-python-argcomplete azure-interactive-shortcuts)"

Project details


Download files

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

Source Distribution

azure-interactive-shortcuts-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file azure-interactive-shortcuts-0.1.0.tar.gz.

File metadata

  • Download URL: azure-interactive-shortcuts-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.10.60.1-microsoft-standard-WSL2

File hashes

Hashes for azure-interactive-shortcuts-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b4c5914824a50032656ece785cae5de832f76a363255ca623fc83ca33857ef55
MD5 85adeb1ba13cbecbd2381d9e577d3e55
BLAKE2b-256 71495f9a54983665a03a9774c228719f7ac95f3e33981c1f6ea78fcd3b6c2e07

See more details on using hashes here.

File details

Details for the file azure_interactive_shortcuts-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for azure_interactive_shortcuts-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd70d5fe22a25bdcee567ac165a623e27538234ef401e677668404cdb2923389
MD5 28b7eda3f7be52a816d92a643872756b
BLAKE2b-256 1689b245499eacfb7b39c00579e5c082883625949d8b379fb315a9a05b400cdf

See more details on using hashes here.

Supported by

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