Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/miladhzzzz/azurecli-api

Azure CLI wrapped in HTTP REST API
https://github.com/miladhzzzz/azurecli-api

fastapi pydantic python3

Last synced: 11 days ago
JSON representation

Azure CLI wrapped in HTTP REST API

Awesome Lists containing this project

README

        

# azurecli-api FASTAPI
**Azure CLI wrapped in HTTP REST API**


dead simple HTTP-REST-API written in python using FASTAPI to execute commands on azure cli without leaving the browser.

**this project uses sentry for monitoring be sure to change the accesskey**




**Usage**


```sh
$ pip install -r requirements.txt
```

```sh
$ python3 fastapi-azure.py
```
* swagger at "http://your-ip-address:5000/docs".
* login to azure "http://your-ip-address:5000/api/v1/azure/login".
* send a get request to "http://your-ip-address:5000/api/v1/azure/{command}" command is what ever you want to execute, cli example would be "az {command}" running on your os command line.
* **you can also deploy this as a docker container using "docker build -t ." after cloning repository**




have fun!

# azurecli-hug hug
this is the same thing but i used hug instead of fastapi