# NetworkDefaultAdminRuleProxy

- Module: [Aspire.Hosting.Azure.Provisioning.Network](/reference/api/typescript/aspire.hosting.azure.provisioning.network.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Represents the NetworkDefaultAdminRule Azure Provisioning model.

## Definition

```typescript
interface NetworkDefaultAdminRuleProxy {
  readonly access: BicepValueProxy | SecurityConfigurationRuleAccess;
  readonly description: BicepValueProxy | string;
  readonly destinationPortRanges: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfStringProxy;
  readonly destinations: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfAddressPrefixItemProxy;
  readonly direction: BicepValueProxy | SecurityConfigurationRuleDirection;
  flag: BicepValueProxy | string;
  readonly priority: BicepValueProxy | number;
  readonly protocol: BicepValueProxy | SecurityConfigurationRuleProtocol;
  readonly provisioningState: BicepValueProxy | NetworkProvisioningState;
  readonly resourceGuid: BicepValueProxy | guid;
  readonly sourcePortRanges: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfStringProxy;
  readonly sources: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfAddressPrefixItemProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearFlag(): void;
}
```

## Properties

- `access`: `BicepValueProxy | SecurityConfigurationRuleAccess` `get` -- Gets the Access provisioning property.
- `description`: `BicepValueProxy | string` `get` -- Gets the Description provisioning property.
- `destinationPortRanges`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofstringproxy.md) `get` -- Gets the DestinationPortRanges provisioning property.
- `destinations`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfAddressPrefixItemProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofaddressprefixitemproxy.md) `get` -- Gets the Destinations provisioning property.
- `direction`: `BicepValueProxy | SecurityConfigurationRuleDirection` `get` -- Gets the Direction provisioning property.
- `flag`: `BicepValueProxy | string` `get - set` -- Gets or sets the Flag provisioning property.
- `priority`: `BicepValueProxy | number` `get` -- Gets the Priority provisioning property.
- `protocol`: `BicepValueProxy | SecurityConfigurationRuleProtocol` `get` -- Gets the Protocol provisioning property.
- `provisioningState`: `BicepValueProxy | NetworkProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `resourceGuid`: `BicepValueProxy | guid` `get` -- Gets the ResourceGuid provisioning property.
- `sourcePortRanges`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofstringproxy.md) `get` -- Gets the SourcePortRanges provisioning property.
- `sources`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfAddressPrefixItemProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofaddressprefixitemproxy.md) `get` -- Gets the Sources provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networkdefaultadminruleproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearFlag](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networkdefaultadminruleproxy/clearflag.md) -- `method` -- Clears the Flag provisioning property.
    ```typescript
  clearFlag(): void
  ```
