# AppServiceDomainProxy

- Module: [Aspire.Hosting.Azure.Provisioning.AppService](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice.md)
- Version: `13.6.0-preview.1.26478.8`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62)

Represents the AppServiceDomain Azure Provisioning model.

## Definition

```typescript
interface AppServiceDomainProxy {
  authCode: BicepValueProxy | string;
  consent: DomainPurchaseConsentProxy;
  contactAdmin: RegistrationContactInfoProxy;
  contactBilling: RegistrationContactInfoProxy;
  contactRegistrant: RegistrationContactInfoProxy;
  contactTech: RegistrationContactInfoProxy;
  readonly createdOn: BicepValueProxy | datetimeoffset;
  dnsType: BicepValueProxy | AppServiceDnsType;
  dnsZoneId: BicepValueProxy | string;
  readonly domainNotRenewableReasons: Aspire_Hosting_Azure_Provisioning_AppService_Generated_ListOfDomainNotRenewableReasonProxy;
  readonly expireOn: BicepValueProxy | datetimeoffset;
  readonly id: BicepValueProxy;
  isAutoRenew: BicepValueProxy | boolean;
  readonly isDnsRecordManagementReady: BicepValueProxy | boolean;
  isDomainPrivacyEnabled: BicepValueProxy | boolean;
  kind: BicepValueProxy | string;
  readonly lastRenewedOn: BicepValueProxy | datetimeoffset;
  location: BicepValueProxy;
  readonly managedHostNames: Aspire_Hosting_Azure_Provisioning_AppService_Generated_ListOfAppServiceHostNameProxy;
  name: BicepValueProxy | string;
  readonly nameServers: Aspire_Hosting_Azure_Provisioning_AppService_Generated_ListOfStringProxy;
  readonly provisioningState: BicepValueProxy | ProvisioningState;
  readonly registrationStatus: BicepValueProxy | AppServiceDomainStatus;
  readonly systemData: AppServiceSystemDataProxy;
  tags: Aspire_Hosting_Azure_Provisioning_AppService_Generated_DictionaryOfStringProxy;
  targetDnsType: BicepValueProxy | AppServiceDnsType;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearAuthCode(): void;
  clearDnsType(): void;
  clearDnsZoneId(): void;
  clearIsAutoRenew(): void;
  clearIsDomainPrivacyEnabled(): void;
  clearKind(): void;
  clearLocation(): void;
  clearName(): void;
  clearTargetDnsType(): void;
}
```

## Properties

- `authCode`: `BicepValueProxy | string` `get - set` -- Gets or sets the AuthCode provisioning property.
- `consent`: [DomainPurchaseConsentProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/domainpurchaseconsentproxy.md) `get - set` -- Gets or sets the Consent provisioning property.
- `contactAdmin`: [RegistrationContactInfoProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/registrationcontactinfoproxy.md) `get - set` -- Gets or sets the ContactAdmin provisioning property.
- `contactBilling`: [RegistrationContactInfoProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/registrationcontactinfoproxy.md) `get - set` -- Gets or sets the ContactBilling provisioning property.
- `contactRegistrant`: [RegistrationContactInfoProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/registrationcontactinfoproxy.md) `get - set` -- Gets or sets the ContactRegistrant provisioning property.
- `contactTech`: [RegistrationContactInfoProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/registrationcontactinfoproxy.md) `get - set` -- Gets or sets the ContactTech provisioning property.
- `createdOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the CreatedOn provisioning property.
- `dnsType`: `BicepValueProxy | AppServiceDnsType` `get - set` -- Gets or sets the DnsType provisioning property.
- `dnsZoneId`: `BicepValueProxy | string` `get - set` -- Gets or sets the DnsZoneId provisioning property.
- `domainNotRenewableReasons`: [Aspire_Hosting_Azure_Provisioning_AppService_Generated_ListOfDomainNotRenewableReasonProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/aspire-hosting-azure-provisioning-appservice-generated-listofdomainnotrenewablereasonproxy.md) `get` -- Gets the DomainNotRenewableReasons provisioning property.
- `expireOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the ExpireOn provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `isAutoRenew`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsAutoRenew provisioning property.
- `isDnsRecordManagementReady`: `BicepValueProxy | boolean` `get` -- Gets the IsDnsRecordManagementReady provisioning property.
- `isDomainPrivacyEnabled`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsDomainPrivacyEnabled provisioning property.
- `kind`: `BicepValueProxy | string` `get - set` -- Gets or sets the Kind provisioning property.
- `lastRenewedOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the LastRenewedOn provisioning property.
- `location`: `BicepValueProxy` `get - set` -- Gets or sets the Location provisioning property.
- `managedHostNames`: [Aspire_Hosting_Azure_Provisioning_AppService_Generated_ListOfAppServiceHostNameProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/aspire-hosting-azure-provisioning-appservice-generated-listofappservicehostnameproxy.md) `get` -- Gets the ManagedHostNames provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `nameServers`: [Aspire_Hosting_Azure_Provisioning_AppService_Generated_ListOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/aspire-hosting-azure-provisioning-appservice-generated-listofstringproxy.md) `get` -- Gets the NameServers provisioning property.
- `provisioningState`: `BicepValueProxy | ProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `registrationStatus`: `BicepValueProxy | AppServiceDomainStatus` `get` -- Gets the RegistrationStatus provisioning property.
- `systemData`: [AppServiceSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appservicesystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `tags`: [Aspire_Hosting_Azure_Provisioning_AppService_Generated_DictionaryOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/aspire-hosting-azure-provisioning-appservice-generated-dictionaryofstringproxy.md) `get - set` -- Gets or sets the Tags provisioning property.
- `targetDnsType`: `BicepValueProxy | AppServiceDnsType` `get - set` -- Gets or sets the TargetDnsType provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appservicedomainproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearAuthCode](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appservicedomainproxy/clearauthcode.md) -- `method` -- Clears the AuthCode provisioning property.
    ```typescript
  clearAuthCode(): void
  ```
- [clearDnsType](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appservicedomainproxy/cleardnstype.md) -- `method` -- Clears the DnsType provisioning property.
    ```typescript
  clearDnsType(): void
  ```
- [clearDnsZoneId](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appservicedomainproxy/cleardnszoneid.md) -- `method` -- Clears the DnsZoneId provisioning property.
    ```typescript
  clearDnsZoneId(): void
  ```
- [clearIsAutoRenew](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appservicedomainproxy/clearisautorenew.md) -- `method` -- Clears the IsAutoRenew provisioning property.
    ```typescript
  clearIsAutoRenew(): void
  ```
- [clearIsDomainPrivacyEnabled](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appservicedomainproxy/clearisdomainprivacyenabled.md) -- `method` -- Clears the IsDomainPrivacyEnabled provisioning property.
    ```typescript
  clearIsDomainPrivacyEnabled(): void
  ```
- [clearKind](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appservicedomainproxy/clearkind.md) -- `method` -- Clears the Kind provisioning property.
    ```typescript
  clearKind(): void
  ```
- [clearLocation](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appservicedomainproxy/clearlocation.md) -- `method` -- Clears the Location provisioning property.
    ```typescript
  clearLocation(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appservicedomainproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearTargetDnsType](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/appservicedomainproxy/cleartargetdnstype.md) -- `method` -- Clears the TargetDnsType provisioning property.
    ```typescript
  clearTargetDnsType(): void
  ```
