# SqlServerJobExecutionProxy

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

Represents the SqlServerJobExecution Azure Provisioning model.

## Definition

```typescript
interface SqlServerJobExecutionProxy {
  readonly createOn: BicepValueProxy | datetimeoffset;
  readonly currentAttempts: BicepValueProxy | number;
  readonly currentAttemptStartOn: BicepValueProxy | datetimeoffset;
  readonly endOn: BicepValueProxy | datetimeoffset;
  readonly id: BicepValueProxy;
  readonly jobExecutionId: BicepValueProxy | guid;
  readonly jobVersion: BicepValueProxy | number;
  readonly lastMessage: BicepValueProxy | string;
  readonly lifecycle: BicepValueProxy | JobExecutionLifecycle;
  readonly name: BicepValueProxy | string;
  parent: SqlServerJobProxy;
  readonly provisioningState: BicepValueProxy | JobExecutionProvisioningState;
  readonly startOn: BicepValueProxy | datetimeoffset;
  readonly stepId: BicepValueProxy | number;
  readonly stepName: BicepValueProxy | string;
  readonly systemData: SqlSystemDataProxy;
  readonly target: JobExecutionTargetProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
}
```

## Properties

- `createOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the CreateOn provisioning property.
- `currentAttempts`: `BicepValueProxy | number` `get` -- Gets the CurrentAttempts provisioning property.
- `currentAttemptStartOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the CurrentAttemptStartOn provisioning property.
- `endOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the EndOn provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `jobExecutionId`: `BicepValueProxy | guid` `get` -- Gets the JobExecutionId provisioning property.
- `jobVersion`: `BicepValueProxy | number` `get` -- Gets the JobVersion provisioning property.
- `lastMessage`: `BicepValueProxy | string` `get` -- Gets the LastMessage provisioning property.
- `lifecycle`: `BicepValueProxy | JobExecutionLifecycle` `get` -- Gets the Lifecycle provisioning property.
- `name`: `BicepValueProxy | string` `get` -- Gets the Name provisioning property.
- `parent`: [SqlServerJobProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlserverjobproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `provisioningState`: `BicepValueProxy | JobExecutionProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `startOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the StartOn provisioning property.
- `stepId`: `BicepValueProxy | number` `get` -- Gets the StepId provisioning property.
- `stepName`: `BicepValueProxy | string` `get` -- Gets the StepName provisioning property.
- `systemData`: [SqlSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlsystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `target`: [JobExecutionTargetProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/jobexecutiontargetproxy.md) `get` -- Gets the Target provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlserverjobexecutionproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
