# AzureVirtualNetworkResource Properties

- Package: [Aspire.Hosting.Azure.Network](/reference/api/csharp/aspire.hosting.azure.network.md)
- Type: [AzureVirtualNetworkResource](/reference/api/csharp/aspire.hosting.azure.network/azurevirtualnetworkresource.md)
- Kind: `Properties`
- Members: `4`

Represents an Azure Virtual Network resource.

## AddressPrefix

- Name: `AddressPrefix`
- Modifiers: `nullable` `get`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Network/AzureVirtualNetworkResource.cs#L32)

Gets the address prefix for the virtual network (e.g., "10.0.0.0/16"), or `null` if the address prefix is provided via a `ApplicationModel.ParameterResource`.

```csharp
public string? AddressPrefix { get; }
```

## AddressPrefixParameter

- Name: `AddressPrefixParameter`
- Modifiers: `nullable` `get`
- Returns: `ParameterResource?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Network/AzureVirtualNetworkResource.cs#L37)

Gets the parameter resource containing the address prefix for the virtual network, or `null` if the address prefix is provided as a literal string.

```csharp
public ParameterResource? AddressPrefixParameter { get; }
```

## Id

- Name: `Id`
- Modifiers: `get`
- Returns: `BicepOutputReference`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Network/AzureVirtualNetworkResource.cs#L42)

Gets the "id" output reference from the Azure Virtual Network resource.

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

## NameOutputReference

- Name: `NameOutputReference`
- Modifiers: `get`
- Returns: `BicepOutputReference`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Network/AzureVirtualNetworkResource.cs#L47)

Gets the "name" output reference for the resource.

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