Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azure - docs - teams notification example #4620

Merged
merged 4 commits into from Aug 19, 2019

Conversation

jomalsan
Copy link
Collaborator

Adds an example to the Azure examples for how to setup a Teams notification as a webhook action. This particular one will send a message to Teams whenever a new resource group is created in the subscription.

@stefangordon is this what you had in mind for issue #4137
I am happy to change to a more exciting example or continue adding them

url: <your_webhook_here>
batch: false
body: >
resource.{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth changing this slightly based on a previous customers issues. People always want to reference some of the other fields that are siblings to resource, but looking at parents is impossible in JMESPath.

Instead of jumping into resource. right here you can just open with the { and reference resource.location and resource.id, etc, in your text. Then you would have access to account_id to mention the subscription in question.

@stefangordon
Copy link
Collaborator

This is excellent. Minor feedback.

@stefangordon stefangordon changed the title Added example of Teams Notification azure - docs - teams notification example Aug 17, 2019
@jomalsan
Copy link
Collaborator Author

Example teams card:
Screen Shot 2019-08-19 at 11 37 23 AM

@stefangordon stefangordon merged commit d64976c into cloud-custodian:master Aug 19, 2019
stefangordon pushed a commit to stefangordon/cloud-custodian that referenced this pull request Aug 21, 2019
@jomalsan jomalsan deleted the feat/4137-teams-example branch September 10, 2019 16:23
fidelito pushed a commit to fidelito/cloud-custodian that referenced this pull request May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants