# IPAllocationProxy

- 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 IPAllocation Azure Provisioning model.

## Definition

```typescript
interface IPAllocationProxy {
  allocationTags: Aspire_Hosting_Azure_Provisioning_Network_Generated_DictionaryOfStringProxy;
  readonly eTag: BicepValueProxy;
  readonly id: BicepValueProxy;
  iPAllocationType: BicepValueProxy | NetworkIPAllocationType;
  ipamAllocationId: BicepValueProxy | string;
  location: BicepValueProxy;
  name: BicepValueProxy | string;
  prefix: BicepValueProxy | string;
  prefixLength: BicepValueProxy | number;
  prefixType: BicepValueProxy | NetworkIPVersion;
  tags: Aspire_Hosting_Azure_Provisioning_Network_Generated_DictionaryOfStringProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearIPAllocationType(): void;
  clearIpamAllocationId(): void;
  clearLocation(): void;
  clearName(): void;
  clearPrefix(): void;
  clearPrefixLength(): void;
  clearPrefixType(): void;
}
```

## Properties

- `allocationTags`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_DictionaryOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-dictionaryofstringproxy.md) `get - set` -- Gets or sets the AllocationTags provisioning property.
- `eTag`: `BicepValueProxy` `get` -- Gets the ETag provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `iPAllocationType`: `BicepValueProxy | NetworkIPAllocationType` `get - set` -- Gets or sets the IPAllocationType provisioning property.
- `ipamAllocationId`: `BicepValueProxy | string` `get - set` -- Gets or sets the IpamAllocationId provisioning property.
- `location`: `BicepValueProxy` `get - set` -- Gets or sets the Location provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `prefix`: `BicepValueProxy | string` `get - set` -- Gets or sets the Prefix provisioning property.
- `prefixLength`: `BicepValueProxy | number` `get - set` -- Gets or sets the PrefixLength provisioning property.
- `prefixType`: `BicepValueProxy | NetworkIPVersion` `get - set` -- Gets or sets the PrefixType provisioning property.
- `tags`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_DictionaryOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-dictionaryofstringproxy.md) `get - set` -- Gets or sets the Tags provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.network/ipallocationproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearIPAllocationType](/reference/api/typescript/aspire.hosting.azure.provisioning.network/ipallocationproxy/clearipallocationtype.md) -- `method` -- Clears the IPAllocationType provisioning property.
    ```typescript
  clearIPAllocationType(): void
  ```
- [clearIpamAllocationId](/reference/api/typescript/aspire.hosting.azure.provisioning.network/ipallocationproxy/clearipamallocationid.md) -- `method` -- Clears the IpamAllocationId provisioning property.
    ```typescript
  clearIpamAllocationId(): void
  ```
- [clearLocation](/reference/api/typescript/aspire.hosting.azure.provisioning.network/ipallocationproxy/clearlocation.md) -- `method` -- Clears the Location provisioning property.
    ```typescript
  clearLocation(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.network/ipallocationproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearPrefix](/reference/api/typescript/aspire.hosting.azure.provisioning.network/ipallocationproxy/clearprefix.md) -- `method` -- Clears the Prefix provisioning property.
    ```typescript
  clearPrefix(): void
  ```
- [clearPrefixLength](/reference/api/typescript/aspire.hosting.azure.provisioning.network/ipallocationproxy/clearprefixlength.md) -- `method` -- Clears the PrefixLength provisioning property.
    ```typescript
  clearPrefixLength(): void
  ```
- [clearPrefixType](/reference/api/typescript/aspire.hosting.azure.provisioning.network/ipallocationproxy/clearprefixtype.md) -- `method` -- Clears the PrefixType provisioning property.
    ```typescript
  clearPrefixType(): void
  ```
