Using azure-sdk-for-net with azure.com

C# integration

✓ Official SDK
Install
dotnet add package azure-sdk-for-net
List the alert rules within a subscription.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  /subscriptions/{subscriptionId}/providers/microsoft.insights/alertrules
List the alert rules within a resource group.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/alertrules
Gets an alert rule
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/alertrules/{ruleName}
SDK on GitHub 📄 API Docs
SDK
azure-sdk-for-net
C#
API
azure.com
azure.com:monitor-alertRules_API
At a glance
Language C#
Endpoints6
✓ Official