Nzalerts on Azure
This guide outlines two methods to set up Nzalerts on Microsoft Azure.
Setup options
Option 1: Providing access to IBM's multi-tenant app
Events will be published to your Azure event grid topic by granting access to IBM’s multi-tenant app.
Option 2: Providing your access key
Option 3: Email method
Events will be published to your Azure event grid topic by providing the endpoint and access key.
1. Providing access to IBM's multi-tenant app:
Step1: Create the event grid topic:
- Login to Azure portal.
- Navigate to search bar and search for
Event-Grid. - Select
TopicinEvent-Grid. Click on Create to create a new topic. - Fill out the details like
Resource Group,Topic Name. - Then click on Review+create to create the topic.
Step 2: Give consent to make IBM’s multi-tenant app as Service Principal
-
Login to the Azure portal.
-
Get the Directory ID of your Microsoft AD on which you need your topic to be published. Directory ID would be required for creating the notification method.
-
Refer the document to create the notification method. Azure Event Grid Notification Method.
-
A consent URL will be generated once you input your Directory ID. For example, see the following.
https://login.microsoftonline.com/<>/oauth2/authorize?client_id=<>&response_type=code -
Paste the link on the browser. Only global admins (or roles with app consent rights) can consent on behalf of the tenant. Click Accept. This will create a Service principal of our app in your tenant.
Step 3: Give publish permission
To get the events to be published in that topic, click the created topic and navigate to Access Control (IAM) on the left side.
- Click on Add Role Assignment.
- Choose role Eventgrid data sender.
- Assign to: User, Group or service principle.
- Select the multi-tenant app for which customers has consented and then Save.
Step 4: Create event rule method in NzSaas console
- Create event rule will take tenant id and event grid topic as input. Refer notify type, see Azure_Event_Grid.
Once the events are published to Azure event grid, you can configure the downstream handling based on your requirements—whether it's delivering the events via email, forwarding them to a queue, or integrating with other services.
2. Providing your access key:
Step 1: Create event grid in your account
- Login to Azure portal.
- Navigate to search bar and search for Event Grid.
- Select
Topicin EventGrid. Click on Create to create a new topic. - Fill out the details like
Resource Group,Topic Name. - Then click on Review+create to create the topic.
Step 2: Create notification method
-
From the Event grid topic:
Get the Topic Endpoint from the Overview tab.
Get the Access Key from Settings -> Access Keys.
-
Refer to the Notification method to complete the setup.
3: Email method
- Go to Settings -> Monitoring and alerts section.
- Navigate to Add method radio button and click it.
- In the Select method section, from the select method drop down choose Email and provide the name for the notification method in the enter method name field and click next.
- In the Configure method section, enter the mail address in the respective fields.
- Click Confirm.
Create rule for Email method
- Go to Settings -> Monitoring and alerts section.
- Navigate to Create rule -> Define rule.
- Enter rule name and enable the status and click Next.
- Go to Select destination, select the destination as Email and choose email method.
- Click Next to go to Choose event.
- Enter the details and click Next to go to Event expression.
- Fill in the necessary fields and click Confirm to complete the rule setup.