Azure / Azure/azure-cli

Setting alert for Microsoft.ContainerRegistry/registries/privateEndpointConnections/writ

Open
#14,957 4 comments 0 reactions 1 assignee Assigned to @kairu-ms View on GitHub
act-observability-squad feature-request Monitor Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Is your feature request related to a problem? Please describe.**

I have requested from customer to be able to set alert for the private endpoint approval activity from different AAD tenant.

Currently, we can see "Microsoft.ContainerRegistry/registries/privateEndpointConnections/write" in activity log, but "az monitor activity-log alert create" said it is not supported.

![image](https://user-images.githubusercontent.com/1770342/91537430-3f30b180-e951-11ea-81af-d58ab78b74a9.png)

![image](https://user-images.githubusercontent.com/1770342/91536631-f4fb0080-e94f-11ea-9c18-65d74b11246a.png)

**Describe the solution you'd like**

possible to create alert against "Microsoft.ContainerRegistry/registries/privateEndpointConnections/write" like this.

```
az monitor activity-log alert create -n alerttest3 -g labprivateACR -a /subscriptions//resourcegroups/lab/providers/microsoft.insights/actiongroups/emailme --subscription -c category=Administrative and operationName=Microsoft.ContainerRegistry/registries/privateEndpointConnections/write and status=succeeded -s /subscriptions//resourceGroups/labprivateACR/providers/Microsoft.ContainerRegistry/registries/labacr20200528
```

**Describe alternatives you've considered**

**Additional context**

Currently, I can set the alert deleting operation name.

```
az monitor activity-log alert create -n acrpe -g labprivateacr -a /subscriptions/93b7ca88-d2cc-4381-97ec-f99f3a702495/resourcegroups/labprivateacr/providers/microsoft.insights/actiongroups/emailme --subscription -c category=Administrative and status=succeeded -s /subscriptions//resourceGroups/labprivateACR/providers/Microsoft.ContainerRegistry/registries/labacr20200519
```

![alert_pe](https://user-images.githubusercontent.com/1770342/91537205-e6f9af80-e950-11ea-9df5-2f9f8b5b1089.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.