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

https://github.com/johanste/notchandemo

Demo push notification integration LRO/ARM
https://github.com/johanste/notchandemo

Last synced: 16 days ago
JSON representation

Demo push notification integration LRO/ARM

Awesome Lists containing this project

README

          

# Make things faster

Use the lightning resource provider to get push notifications for long running operations.

Instructions:

- Clone the repository
- From the root of the repository, create a virtual environment
```sh
python -m venv .env
. .env/bin/activate
python -m pip install . azure-mgmt-compute azure-mgmt-storage
```

- Set the environment variable `AZURE_SUBSCRIPTION_ID` to the id of the azure subscription you want to use.
- Create resource group `johanste-testresourcegroup` in the subscription

By running the script in

```sh
python test/session/cli.py
```

you will create a storage account. The log spew will include a "registering for notifications for \". By posting a message with said guid as the id, you will mark the operation as completed. You can use the script `complete.sh` to send the push notification (it takes a single argument, which is the id to mark as completed)