# AzureConnectorNamespaceResource

- Kind: `class`
- Package: [Aspire.Hosting.Azure.ConnectorNamespace](/reference/api/csharp/aspire.hosting.azure.connectornamespace.md)
- Version: `13.6.0-preview.1.26478.8`
- Namespace: `Aspire.Hosting.Azure`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting.Azure.ConnectorNamespace/AzureConnectorNamespaceResource.cs)
- Inherits: `AzureProvisioningResource`

Represents an Azure Connector Namespace backed by a `Microsoft.Web/connectorGateways` resource.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

public sealed class AzureConnectorNamespaceResource
    : Aspire.Hosting.Azure.AzureProvisioningResource
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `Aspire.Hosting.Azure.ConnectorNamespace/AzureConnectorNamespaceResource`

## Constructors

- [AzureConnectorNamespaceResource(string, Action<AzureResourceInfrastructure>)](/reference/api/csharp/aspire.hosting.azure.connectornamespace/azureconnectornamespaceresource/constructors.md#constructor-string-action-azureresourceinfrastructure) -- Initializes a new instance of the [AzureConnectorNamespaceResource](/reference/api/csharp/aspire.hosting.azure.connectornamespace/azureconnectornamespaceresource.md) class.

## Properties

- [Id](/reference/api/csharp/aspire.hosting.azure.connectornamespace/azureconnectornamespaceresource/properties.md#id) : `BicepOutputReference` `get` -- Gets the Azure resource ID output reference.
- [NameOutputReference](/reference/api/csharp/aspire.hosting.azure.connectornamespace/azureconnectornamespaceresource/properties.md#nameoutputreference) : `BicepOutputReference` `get` -- Gets the Azure resource name output reference.
- [PrincipalId](/reference/api/csharp/aspire.hosting.azure.connectornamespace/azureconnectornamespaceresource/properties.md#principalid) : `BicepOutputReference` `get` -- Gets the connector namespace system-assigned managed identity principal ID output reference.
- [TenantId](/reference/api/csharp/aspire.hosting.azure.connectornamespace/azureconnectornamespaceresource/properties.md#tenantid) : `BicepOutputReference` `get` -- Gets the connector namespace system-assigned managed identity tenant ID output reference.

## Methods

- [AddAsExistingResource(AzureResourceInfrastructure)](/reference/api/csharp/aspire.hosting.azure.connectornamespace/azureconnectornamespaceresource/methods.md#addasexistingresource-azureresourceinfrastructure) : `ProvisionableResource` -- Adds a new `Primitives.ProvisionableResource` into `infra`. The new resource represents a reference to the current `Azure.AzureProvisioningResource` via https://learn.microsoft.com/azure/azure-resource-manager/bicep/existing-resource.
