https://github.com/jeffhollan/functions-python-azure-sdk
https://github.com/jeffhollan/functions-python-azure-sdk
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jeffhollan/functions-python-azure-sdk
- Owner: jeffhollan
- Created: 2018-08-10T06:52:34.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T02:21:40.000Z (over 2 years ago)
- Last Synced: 2025-03-17T17:58:26.167Z (4 months ago)
- Language: Python
- Size: 12.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python example for Azure SDK
This simple example has a single python function - CheckVMSS - that will check the number of instances currently provisioned in a Virtual Machine Scale Set, and save that value to a CosmosDB table.
## Setup
1. Clone this repo
1. Make sure format matches [the virtual environment described here](https://github.com/Azure/azure-functions-python-worker/wiki/Create-Function-(CLI))
1. Run `pip install -r requirements.txt` when in the `functions-python-azure-sdk` folder
1. Run `func extensions sync` when in the `functions-python-azure-sdk` folder
1. Rename `local.settings.json.example` to `local.settings.json` and replace the placeholder values with real connection strings and service principal credentials
1. `func start` in the `functions-python-azure-sdk` directory and send an HTTPS request to the endpoint with the following format```json
{
"resourceGroup": "",
"scaleSetName": ""
}
```