# SqlServerVirtualNetworkRuleProxy

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

Represents the SqlServerVirtualNetworkRule Azure Provisioning model.

## Definition

```typescript
interface SqlServerVirtualNetworkRuleProxy {
  readonly id: BicepValueProxy;
  ignoreMissingVnetServiceEndpoint: BicepValueProxy | boolean;
  name: BicepValueProxy | string;
  parent: SqlServerProxy;
  readonly state: BicepValueProxy | SqlServerVirtualNetworkRuleState;
  readonly systemData: SqlSystemDataProxy;
  virtualNetworkSubnetId: BicepValueProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearIgnoreMissingVnetServiceEndpoint(): void;
  clearName(): void;
  clearVirtualNetworkSubnetId(): void;
}
```

## Properties

- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `ignoreMissingVnetServiceEndpoint`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IgnoreMissingVnetServiceEndpoint provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `parent`: [SqlServerProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlserverproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `state`: `BicepValueProxy | SqlServerVirtualNetworkRuleState` `get` -- Gets the State provisioning property.
- `systemData`: [SqlSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlsystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `virtualNetworkSubnetId`: `BicepValueProxy` `get - set` -- Gets or sets the VirtualNetworkSubnetId provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlservervirtualnetworkruleproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearIgnoreMissingVnetServiceEndpoint](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlservervirtualnetworkruleproxy/clearignoremissingvnetserviceendpoint.md) -- `method` -- Clears the IgnoreMissingVnetServiceEndpoint provisioning property.
    ```typescript
  clearIgnoreMissingVnetServiceEndpoint(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlservervirtualnetworkruleproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearVirtualNetworkSubnetId](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlservervirtualnetworkruleproxy/clearvirtualnetworksubnetid.md) -- `method` -- Clears the VirtualNetworkSubnetId provisioning property.
    ```typescript
  clearVirtualNetworkSubnetId(): void
  ```
