# SqlRoleAssignmentProxy

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

## Definition

```typescript
interface SqlRoleAssignmentProxy {
  condition: BicepValueProxy | string;
  conditionVersion: BicepValueProxy | string;
  readonly createdBy: BicepValueProxy | string;
  readonly createdOn: BicepValueProxy | datetimeoffset;
  delegatedManagedIdentityResourceId: BicepValueProxy;
  description: BicepValueProxy | string;
  readonly id: BicepValueProxy;
  name: BicepValueProxy | string;
  principalId: BicepValueProxy | guid;
  principalType: BicepValueProxy | RoleManagementPrincipalType;
  roleDefinitionId: BicepValueProxy;
  scope: BicepValueProxy | string;
  readonly systemData: SqlSystemDataProxy;
  readonly updatedBy: BicepValueProxy | string;
  readonly updatedOn: BicepValueProxy | datetimeoffset;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearCondition(): void;
  clearConditionVersion(): void;
  clearDelegatedManagedIdentityResourceId(): void;
  clearDescription(): void;
  clearName(): void;
  clearPrincipalId(): void;
  clearPrincipalType(): void;
  clearRoleDefinitionId(): void;
  clearScope(): void;
}
```

## Properties

- `condition`: `BicepValueProxy | string` `get - set` -- Gets or sets the Condition provisioning property.
- `conditionVersion`: `BicepValueProxy | string` `get - set` -- Gets or sets the ConditionVersion provisioning property.
- `createdBy`: `BicepValueProxy | string` `get` -- Gets the CreatedBy provisioning property.
- `createdOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the CreatedOn provisioning property.
- `delegatedManagedIdentityResourceId`: `BicepValueProxy` `get - set` -- Gets or sets the DelegatedManagedIdentityResourceId provisioning property.
- `description`: `BicepValueProxy | string` `get - set` -- Gets or sets the Description provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `principalId`: `BicepValueProxy | guid` `get - set` -- Gets or sets the PrincipalId provisioning property.
- `principalType`: `BicepValueProxy | RoleManagementPrincipalType` `get - set` -- Gets or sets the PrincipalType provisioning property.
- `roleDefinitionId`: `BicepValueProxy` `get - set` -- Gets or sets the RoleDefinitionId provisioning property.
- `scope`: `BicepValueProxy | string` `get - set` -- Gets or sets the Scope provisioning property.
- `systemData`: [SqlSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlsystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `updatedBy`: `BicepValueProxy | string` `get` -- Gets the UpdatedBy provisioning property.
- `updatedOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the UpdatedOn provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlroleassignmentproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearCondition](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlroleassignmentproxy/clearcondition.md) -- `method` -- Clears the Condition provisioning property.
    ```typescript
  clearCondition(): void
  ```
- [clearConditionVersion](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlroleassignmentproxy/clearconditionversion.md) -- `method` -- Clears the ConditionVersion provisioning property.
    ```typescript
  clearConditionVersion(): void
  ```
- [clearDelegatedManagedIdentityResourceId](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlroleassignmentproxy/cleardelegatedmanagedidentityresourceid.md) -- `method` -- Clears the DelegatedManagedIdentityResourceId provisioning property.
    ```typescript
  clearDelegatedManagedIdentityResourceId(): void
  ```
- [clearDescription](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlroleassignmentproxy/cleardescription.md) -- `method` -- Clears the Description provisioning property.
    ```typescript
  clearDescription(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlroleassignmentproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearPrincipalId](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlroleassignmentproxy/clearprincipalid.md) -- `method` -- Clears the PrincipalId provisioning property.
    ```typescript
  clearPrincipalId(): void
  ```
- [clearPrincipalType](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlroleassignmentproxy/clearprincipaltype.md) -- `method` -- Clears the PrincipalType provisioning property.
    ```typescript
  clearPrincipalType(): void
  ```
- [clearRoleDefinitionId](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlroleassignmentproxy/clearroledefinitionid.md) -- `method` -- Clears the RoleDefinitionId provisioning property.
    ```typescript
  clearRoleDefinitionId(): void
  ```
- [clearScope](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlroleassignmentproxy/clearscope.md) -- `method` -- Clears the Scope provisioning property.
    ```typescript
  clearScope(): void
  ```
