# AzureNetworkSecurityPerimeterResource

- Kind: `class`
- Package: [Aspire.Hosting.Azure.Network](/reference/api/csharp/aspire.hosting.azure.network.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.Azure`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Network/AzureNetworkSecurityPerimeterResource.cs)
- Inherits: `AzureProvisioningResource`

Represents an Azure Network Security Perimeter resource.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

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

## Remarks

A Network Security Perimeter groups PaaS resources (such as Storage, Key Vault, Cosmos DB, and SQL) into a logical security boundary. Resources within the perimeter can communicate with each other, while public access is controlled by the perimeter's access mode and rules.

Use `AzureProvisioningResourceExtensions.ConfigureInfrastructure` to configure specific `Azure.Provisioning` properties.

## Constructors

- [AzureNetworkSecurityPerimeterResource(string, Action<AzureResourceInfrastructure>)](/reference/api/csharp/aspire.hosting.azure.network/azurenetworksecurityperimeterresource/constructors.md#constructor-string-action-azureresourceinfrastructure) -- Represents an Azure Network Security Perimeter resource.

## Properties

- [Id](/reference/api/csharp/aspire.hosting.azure.network/azurenetworksecurityperimeterresource/properties.md#id) : `BicepOutputReference` `get` -- Gets the "id" output reference from the Azure Network Security Perimeter resource.
- [NameOutputReference](/reference/api/csharp/aspire.hosting.azure.network/azurenetworksecurityperimeterresource/properties.md#nameoutputreference) : `BicepOutputReference` `get` -- Gets the "name" output reference for the resource.

## Methods

- [AddAsExistingResource(AzureResourceInfrastructure)](/reference/api/csharp/aspire.hosting.azure.network/azurenetworksecurityperimeterresource/methods.md#addasexistingresource-azureresourceinfrastructure) : `ProvisionableResource`
