Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trstringer/azcorecheck
:cloud: Command-line interface to check available cores for an Azure region
https://github.com/trstringer/azcorecheck
azure iaas python
Last synced: 10 days ago
JSON representation
:cloud: Command-line interface to check available cores for an Azure region
- Host: GitHub
- URL: https://github.com/trstringer/azcorecheck
- Owner: trstringer
- License: mit
- Created: 2017-05-15T22:30:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-17T21:01:12.000Z (over 7 years ago)
- Last Synced: 2024-10-11T15:07:55.207Z (24 days ago)
- Topics: azure, iaas, python
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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> :bulb: A service principal can be created with the use of [this guide (Azure documentation)](https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-create-service-principal-portal)
## 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
```