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
- Host: GitHub
- URL: https://github.com/johanste/notchandemo
- Owner: johanste
- Created: 2021-06-30T00:42:16.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-30T00:51:56.000Z (almost 5 years ago)
- Last Synced: 2025-03-06T03:44:27.302Z (over 1 year ago)
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)