Azure Provisioning ResourceHealth client library for .NET - version 1.0.0-beta.1

Azure.Provisioning.ResourceHealth simplifies declarative resource provisioning for Azure Resource Health in .NET.

Getting started

Install the package

Install the client library for .NET with NuGet:

dotnet add package Azure.Provisioning.ResourceHealth --prerelease

Prerequisites

You must have an Azure subscription.

Authenticate the Client

Key concepts

This library allows you to specify your infrastructure in a declarative style using .NET. You can then use azd to deploy your infrastructure to Azure directly without needing to write or maintain Bicep or ARM templates.

Examples

Reference a Resource Health event

This example references an existing Resource Health event by its event tracking ID.

Infrastructure infra = new() { TargetScope = DeploymentScope.Subscription };

ResourceHealthEvent healthEvent = ResourceHealthEvent.FromExisting(nameof(healthEvent), ResourceHealthEvent.ResourceVersions.V2025_05_01);
healthEvent.Name = "eventTrackingId";
infra.Add(healthEvent);

infra.Add(new ProvisioningOutput("eventId", typeof(string)) { Value = healthEvent.Id });

Troubleshooting

Next steps

Contributing

For details on contributing to this repository, see the contributing guide.

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any questions or comments.