Skip to content

☁️ Command-line interface to check available cores for an Azure region

License

Notifications You must be signed in to change notification settings

trstringer/azcorecheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure Region Core Checker

This cli tests whether or not there are enough cores available in a region (this is for an automated requirement).

Setup

CentOS requires the following dependencies installed...

$ sudo yum install -y git epel-release gcc libffi-devel python-devel openssl-devel
$ sudo yum install -y python-pip

Install the azcorecheck tool...

$ git clone https://github.com/tstringer/azcorecheck.git
$ cd azure-regional-core-checker
$ chmod 755 ./install
$ sudo ./install

Environment variables

This cli expects the following environment variables to be defined...

  • ARM_SUBSCRIPTION_ID - Azure subscription ID
  • ARM_TENANT_ID - The tenant/directory ID for the service principal
  • ARM_CLIENT_ID - Client/application ID of the service principal
  • ARM_CLIENT_SECRET - Secret for the service principal

💡 A service principal can be created with the use of this guide (Azure documentation)

Usage

usage: azcorecheck [-h] -l LOCATION -d DESIRED_CORE_COUNT [-p]

optional arguments:
  -h, --help            show this help message and exit
  -l LOCATION, --location LOCATION
                        azure region to check
  -d DESIRED_CORE_COUNT, --desired DESIRED_CORE_COUNT
                        desired core count to check if available
  -p, --permissive      if there is a runtime error exit with a zero code

About

☁️ Command-line interface to check available cores for an Azure region

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published