# AzurePublishingContext Properties

- Package: [Aspire.Hosting.Azure](/reference/api/csharp/aspire.hosting.azure.md)
- Type: [AzurePublishingContext](/reference/api/csharp/aspire.hosting.azure/azurepublishingcontext.md)
- Kind: `Properties`
- Members: `3`

Represents a context for publishing Azure bicep templates for a distributed application.

## MainInfrastructure

- Name: `MainInfrastructure`
- Modifiers: `get`
- Returns: `Infrastructure`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure/AzurePublishingContext.cs#L44)

Gets the main.bicep infrastructure for the distributed application.

```csharp
public Infrastructure MainInfrastructure { get; }
```

## OutputLookup

- Name: `OutputLookup`
- Modifiers: `get`
- Returns: `Dictionary<BicepOutputReference, ProvisioningOutput>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure/AzurePublishingContext.cs#L65)

Gets a dictionary that maps output references to provisioning outputs.

```csharp
public Dictionary<BicepOutputReference, ProvisioningOutput> OutputLookup { get; }
```

## Remarks

The value is the `Provisioning.ProvisioningOutput` of the [AzurePublishingContext.MainInfrastructure](/reference/api/csharp/aspire.hosting.azure/azurepublishingcontext/properties.md#maininfrastructure) that was created with the value of the output referenced by the Aspire [BicepOutputReference](/reference/api/csharp/aspire.hosting.azure/bicepoutputreference.md).

## ParameterLookup

- Name: `ParameterLookup`
- Modifiers: `get`
- Returns: `Dictionary<ParameterResource, ProvisioningParameter>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure/AzurePublishingContext.cs#L56)

Gets a dictionary that maps parameter resources to provisioning parameters.

```csharp
public Dictionary<ParameterResource, ProvisioningParameter> ParameterLookup { get; }
```

## Remarks

The value is the `Provisioning.ProvisioningParameter` of the [AzurePublishingContext.MainInfrastructure](/reference/api/csharp/aspire.hosting.azure/azurepublishingcontext/properties.md#maininfrastructure) that was created to be filled with the value of the Aspire `ApplicationModel.ParameterResource`.
