# AzureApiManagementResource Properties

- Package: [Aspire.Hosting.Azure.ApiManagement](/reference/api/csharp/aspire.hosting.azure.apimanagement.md)
- Type: [AzureApiManagementResource](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementresource.md)
- Kind: `Properties`
- Members: `6`

Represents an Azure API Management service.

<a id="gatewayurl"></a>

## GatewayUrl

- Name: `GatewayUrl`
- Modifiers: `get`
- Returns: `BicepOutputReference`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.ApiManagement/AzureApiManagementResource.cs#L91)

Gets the default gateway URL output reference.

```csharp
public BicepOutputReference GatewayUrl { get; }
```

## ATS metadata

### Ignored by ATS

- Reason: Bicep output references are not projected to polyglot AppHosts.

<a id="id"></a>

## Id

- Name: `Id`
- Modifiers: `get`
- Returns: `BicepOutputReference`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.ApiManagement/AzureApiManagementResource.cs#L85)

Gets the resource ID output reference.

```csharp
public BicepOutputReference Id { get; }
```

## ATS metadata

### Ignored by ATS

- Reason: Bicep output references are not projected to polyglot AppHosts.

<a id="identity"></a>

## Identity

- Name: `Identity`
- Modifiers: `get`
- Returns: `AzureUserAssignedIdentityResource`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.ApiManagement/AzureApiManagementResource.cs)

Gets the user-assigned managed identity used for backend authentication and Key Vault access.

```csharp
public AzureUserAssignedIdentityResource Identity { get; }
```

## Remarks

New services attach this identity automatically. Existing services require an existing identity that is already attached outside Aspire. Supply it with [AzureApiManagementExtensions.WithAzureUserAssignedIdentity(IResourceBuilder<AzureApiManagementResource>, IResourceBuilder<AzureUserAssignedIdentityResource>)](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementextensions/methods.md#withazureuserassignedidentity-iresourcebuilder-azureapimanagementresource-iresourcebuilder-azureuserassignedidentityresource).

## ATS metadata

### ATS export

- Available to Polyglot AppHosts through the Aspire Type System.

<a id="nameoutputreference"></a>

## NameOutputReference

- Name: `NameOutputReference`
- Modifiers: `get`
- Returns: `BicepOutputReference`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.ApiManagement/AzureApiManagementResource.cs#L79)

Gets the physical service name output reference.

```csharp
public BicepOutputReference NameOutputReference { get; }
```

## ATS metadata

### Ignored by ATS

- Reason: Bicep output references are not projected to polyglot AppHosts.

<a id="options"></a>

## Options

- Name: `Options`
- Modifiers: `get`
- Returns: [AzureApiManagementOptions](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementoptions.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.ApiManagement/AzureApiManagementResource.cs#L33)

Gets the configured service options.

```csharp
public AzureApiManagementOptions Options { get; }
```

<a id="principalid"></a>

## PrincipalId

- Name: `PrincipalId`
- Modifiers: `get`
- Returns: `BicepOutputReference`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.ApiManagement/AzureApiManagementResource.cs#L133)

Gets the user-assigned managed identity principal ID output reference.

```csharp
public BicepOutputReference PrincipalId { get; }
```

## ATS metadata

### Ignored by ATS

- Reason: Bicep output references are not projected to polyglot AppHosts.
