Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/miladhzzzz/azurecli-api
- Owner: miladhzzzz
- License: mit
- Created: 2023-01-04T22:56:32.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-17T17:30:56.000Z (over 1 year ago)
- Last Synced: 2024-11-05T22:32:21.708Z (about 2 months ago)
- Topics: fastapi, pydantic, python3
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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