зеркало из https://github.com/Azure/ALZ-Bicep.git
6424893ae0
* Initial commit * Update readme * Syntax and readme * linter fixes * parLocation * Update naming in bicep * remove gitignore * add rbac * check Pscred instead * Increase schedule * Reset timer * Invoke-AzRestMethod |
||
---|---|---|
.. | ||
cancelSubscriptions | ||
getPullRequests | ||
getSubscriptions | ||
timerschedule | ||
.funcignore | ||
README.md | ||
host.json | ||
profile.ps1 | ||
requirements.psd1 |
README.md
Overview
This folder contains the various functions that are contained in the overall Azure Functions. The following functions are present:
- timerschedule; this is a simple timer trigger which runs every five hours, and triggers the next function through placing a queue item in the startjob queue.
- getPullRequests; this is a queue based trigger (startjob queue) which gets the latest x closed pull requests from GitHub. PR title, number and state for each is saved in a queue item in the closedPullRequests queue.
- getSubscriptions; this is a queue based trigger (closedPullRequests queue), which for each pull request looks for an corresponding, active subscription. If the subscription is found subscription name and id is saved in a queue item in the subscriptionsToClose queue.
- cancelSubscriptions; this is a queue based trigger (subscriptionsToClose queue), which for each subscription tries to cancel the subscription. If succesful subscription name and id is saved in a queue item in the canceledSubscriptions queue.