# AzureResourceExtensions

- Kind: `class`
- Package: [Aspire.Hosting.Azure](/reference/api/csharp/aspire.hosting.azure.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure/AzureResourceExtensions.cs)

Provides extension methods for adding Azure resources to the application model.

## Definition

```csharp
namespace Aspire.Hosting;

public static class AzureResourceExtensions
{
    // ...
}
```

## Methods

- [ClearDefaultRoleAssignments(IResourceBuilder<T>)](/reference/api/csharp/aspire.hosting.azure/azureresourceextensions/methods.md#cleardefaultroleassignments-iresourcebuilder-t) : `IResourceBuilder<T>` `extension` `ats export` -- Clears all default role assignments for the specified Azure resource.
- [GetBicepIdentifier(IAzureResource)](/reference/api/csharp/aspire.hosting.azure/azureresourceextensions/methods.md#getbicepidentifier-iazureresource) : `string` `extension` `ats export` -- Gets the Bicep identifier for the Azure resource.
- [PublishAsConnectionString(IResourceBuilder<T>)](/reference/api/csharp/aspire.hosting.azure/azureresourceextensions/methods.md#publishasconnectionstring-iresourcebuilder-t) : `IResourceBuilder<T>` `extension` `ats export` -- Changes the resource to be published as a connection string reference in the manifest.
