In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Azure Event Grid is a managed event routing platform that enables us to respond in real time to changes that occur in applications hosted in Azure or in any Azure resources we own. Event Grid handles built-in Azure events from Azure services as well as custom events from applications and publishes them in real time. It can dynamically scale and process millions of events per second, and Azure provides 99.99 SLA for production workloads
After Event Grid receives an event, it can facilitate the trigger of program action through event handlers such as Azure automation, event center, Azure functions, Azure logic applications, or custom Web hooks.
Prepare your Azure Runbook account:
Click "New"-"Management tools"-"Automation":
Enter "Automation account name" and "Resource Group name", as shown in the following figure, and click create:
The creation is completed as shown in the following figure:
Click "Module"-"Update Azure Module":
Click "Yes":
Click "Module Library", search for "AzureRM.Tags", and click the search results:
Click "Import":
The import succeeded, as shown in the following figure:
Import Event Grid into Runbook
Select the automation account we just created, and click "Runbook"-"Browse Library":
Search for "Event grid" and click "Integrating Azure Automation with Event grid":
Click Import, and the name remains by default:
The import is complete, as shown in the following figure:
Click "Edit":
Replace line 74 with the following:
Update-AzureRmVM-ResourceGroupName $VMResourceGroup-VM $VM-Tag $Tag | Write-Verbose
When the replacement is complete, click "publish":
Create Microsoft Teams webhook
In Microsoft Teams, click "more options"-"App Store"-"Connector":
Search for "Incoming Webhook":
To set up to add it to the AzureTeam team, click install:
Click "Settings":
To set the name, click OK:
Record the URL and click finish:
The addition is completed as shown in the following figure:
Create a Webhook for Runbook
Open the "Watch-VMWrite" Runbook and click "Add Webhook":
Enter "WatchVMEventGrid" as the name. Copy the URL to the clipboard and save it:
Select configure parameters and run Settings, and then set "CHANNELURL" to Microsoft Teams webhook URL:
The configuration is completed as shown in the following figure:
Create an Event Grid subscription
Click "Event grid" in the automation account, and click create:
Make the settings shown in the following figure on the create event subscription tab:
L name: AzureAutomation
Topic type: select "Azure subscription".
Uncheck the subscribe to all event types check box.
L defined event type: uncheck all options except Resource write success.
L endpoint type: Webhook.
Click Select Endpoint:
Sets the webhook URL created for Watch-VMWrite Runbook at the subscriber endpoint.
After the settings are completed as shown in the figure below, click create:
Test whether the configuration is in effect
Create a test virtual:
The creation is completed as shown in the following figure:
At this point, the information of the virtual machine creation is recycled on the Microsoft Teams:
Note:
The above method is for the entire subscription level. To target a specific resource group, you can use the following methods:
Under Filters, enter the subscription and resource group for the new VM you want to find, as follows:
/ subscriptions//resourcegroups//providers/Microsoft.Compute/virtualMachines
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.