Automatically add an Azure Tag Using Event Grid and Azure Functions

  Рет қаралды 5,989

Travis Roberts

Travis Roberts

Күн бұрын

Пікірлер: 28
@raisingcode9010
@raisingcode9010 Жыл бұрын
This is timeless info. Was heading down the route of setting up an activity log alert until I saw this. Thanks
@AllenVisser
@AllenVisser 3 жыл бұрын
Awesome video, thank you. Without adding the filters, both rsg's and resources are tagged correctly.
@Ciraltos
@Ciraltos 3 жыл бұрын
Glad it helped!
@kevinziegler4105
@kevinziegler4105 3 жыл бұрын
Love it, this very cool, especially for our sandbox environments
@Ciraltos
@Ciraltos 3 жыл бұрын
Thanks Kevin!
@rafael.biasotto
@rafael.biasotto Жыл бұрын
Hi, I have an environment with 220 subscriptions, separated by management groups with dev, hml and prd levels. Do I need to apply tags in this environment, with this script I can make this application with all subscriptions, separating by environment or is the best way to do it manually?
@Icantmakename09
@Icantmakename09 2 жыл бұрын
Do you know of the Powershell or CLI script to just create a new event subscription? It keeps asking for a RG, but there isn’t any when it’s attached to the subscription.
@anmolbhatt2073
@anmolbhatt2073 Жыл бұрын
Hi Travis, I need to create nsg rules whenever a nsg is created using azure function with event grid. How we can do that?
@CamiloTaborda
@CamiloTaborda 3 жыл бұрын
Hello Travis, Thanks for this video and the AVD course I follow a few weeks ago. I'm thinking about if it's possible to set tags from a subscription to another subscriptions in the same tenant or is just in the same subscription. Thanks.
@eashwerdev518
@eashwerdev518 2 жыл бұрын
can we add more tagging content other than the resource creator and time can we add more fields using this automation if so how or are we limited to only the event data
@tejakirankumarjami9993
@tejakirankumarjami9993 2 жыл бұрын
Great Video Sir. I'm still new to azure and I have a quick question. For example If I have 10 subscriptions and do I need to create 10 diff azure functions for this solution as this scope is at the subscription level.
@dharaniswarareddybhumiredd6533
@dharaniswarareddybhumiredd6533 8 ай бұрын
I have followed the all the steps and the result is not expected, can you please let me know how to resolve the same i am able to see the logs from event grid but the function is not changing the tags. can you please help me on this
@365Dash
@365Dash 3 жыл бұрын
Thanks Travis, another great video! I know this is a demo on how everything can be put together for automation using Event Grip and Az Functions. But from a solution point of view for auto tagging, is it eaiser to use Azure policy intead? Cheers.
@Ciraltos
@Ciraltos 3 жыл бұрын
An Azure policy would be a good option. I couldn't find a way to apply the creator name with a policy. That information is not part of the resourced. If I'm missing something, please let me know. A tag policy would be a simpler solution. -Travis
@ppraveens
@ppraveens 11 ай бұрын
Hi Could you please provide the powershell code
@mosksky
@mosksky 3 жыл бұрын
Travis absolutely great video!!! what if resources are created by pipeline (using spn or msi), then created by will be the SPN. Any recommendations on how to solve that?
@Ciraltos
@Ciraltos 3 жыл бұрын
Good question. The name of the SPN or MSI may not be that helpful in understanding who deployed it. If that information is in the pipeline, maybe tag the resource as part of the pipeline?
@rendog408
@rendog408 2 жыл бұрын
Thanks Travis, great video, I deployed without filters and it tags rsg's and resources, but then the name value in the tag disappears after a few minutes? Any clue, why this would happen?
@Ciraltos
@Ciraltos 2 жыл бұрын
Check for policies that modify tags. Also, Terraform will remove the tags if not part of the Terraform deployment.
@tejakirankumarjami9993
@tejakirankumarjami9993 2 жыл бұрын
Hi Rene, Thank you for your message. I see the same happening with my RG but not with the resources, have you found out the Issue why the tags are being disappeared after a while on the RG. However, I don't see any policies enforcing
@MrAayooshmoitro
@MrAayooshmoitro Жыл бұрын
It's happening bcz when it adds a tag, event grid identifies it as a new creation and tries to retag them. Use below steps to correct it. Add a filter with key Name: data.operationName Operator: String is not in, Value: Microsoft.Resources/tags/write Save it and then give it a try!
@BrandonRodriguez-nk6ei
@BrandonRodriguez-nk6ei 2 жыл бұрын
May be this question is out of the scope... but does anyone knows how can i achieve the same behavior in AWS (for all the possible resources)? Actually am applying this in our sandbox azure account, i would like to repeat it in AWS
@PaulShadwell
@PaulShadwell 3 жыл бұрын
I like this. I want it to apply to all resources, not just the group. Am I correct in assuming I just don't apply the filter? Is there any issue applying this for all resources?
@Ciraltos
@Ciraltos 3 жыл бұрын
Without trying I can’t say for sure, but I think it you left the advance filter off it will tag everything.
@victorrondanflores8343
@victorrondanflores8343 2 жыл бұрын
Hello, I did this with the operator "string does not contain" and it works perfect ! , and thanks to travis for the help !!
@ruffinruffin989
@ruffinruffin989 2 жыл бұрын
@@victorrondanflores8343 Im trying to do the same thing where it will tag all resources created. Can you share how you achieved this?
@timreigrut4061
@timreigrut4061 Жыл бұрын
@@victorrondanflores8343 What did you use for the key in this?
@sureshkachwa5345
@sureshkachwa5345 Жыл бұрын
@@ruffinruffin989 see the screenshot if that helps key: data.authorization.action operator: String does not contain value: nothing This worked in my case
Azure DevOps Pipeline and Image Builder
28:32
Travis Roberts
Рет қаралды 16 М.
I Sent a Subscriber to Disneyland
0:27
MrBeast
Рет қаралды 104 МЛН
SLIDE #shortssprintbrasil
0:31
Natan por Aí
Рет қаралды 49 МЛН
Azure Automation and Managed Identities
12:41
Travis Roberts
Рет қаралды 18 М.
Azure Policies To Enforce Tagging
20:45
Atmosera
Рет қаралды 10 М.
Private Endpoints and DNS in Azure
16:48
Travis Roberts
Рет қаралды 49 М.
Install Applications in Azure Image Builder with PowerShell!
20:29
Travis Roberts
Рет қаралды 5 М.
Azure Event Hub, Event Grid, and Service Bus - Made Simple
37:02
Abdullah Abu-Hassan
Рет қаралды 37 М.
Explain By Example: Event Grid
8:45
Explain By Example
Рет қаралды 2 М.
I Sent a Subscriber to Disneyland
0:27
MrBeast
Рет қаралды 104 МЛН