# AzureResourceExtensions

- Kind: `class`
- Package: [Aspire.Hosting.Azure](/reference/api/csharp/aspire.hosting.azure.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/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.
