# EventHubsNetworkRuleSetVirtualNetworkRulesProxy.clearSubnetId

- Module: [Aspire.Hosting.Azure.Provisioning.EventHubs](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs.md)
- Defined on: [EventHubsNetworkRuleSetVirtualNetworkRulesProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubsnetworkrulesetvirtualnetworkrulesproxy.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `method`

Clears the SubnetId provisioning property.

## Definition

```typescript
interface EventHubsNetworkRuleSetVirtualNetworkRulesProxy {
  // ... omitted for brevity
  clearSubnetId(): void;
}
```

## Signature

```typescript
clearSubnetId(): void
```

## Defined on

- [EventHubsNetworkRuleSetVirtualNetworkRulesProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubsnetworkrulesetvirtualnetworkrulesproxy.md) -- `handle`
