# AzureStorageOperationOptions Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.reminders.azurestorage/orleans.reminders.azurestorage.azurestorageoperationoptions/)

## ConfigureTableServiceClient(Func&lt;Task&lt;TableServiceClient&gt;&gt;) {#configuretableserviceclient-system-func-system-threading-tasks-task-azure-data-t-18369f51}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders.azurestorage/orleans.reminders.azurestorage.azurestorageoperationoptions/methods/configuretableserviceclient-system-func-system-threading-tasks-task-azure-data-t-18369f51/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Shared/Storage/AzureStorageOperationOptions.cs#L91-L92)

```csharp
[System.Obsolete(Set the TableServiceClient property directly.)]
public void ConfigureTableServiceClient(Func<Task<TableServiceClient>> createClientCallback)
```

Configures the [AzureStorageOperationOptions](/orleans/docs/api/csharp/microsoft.orleans.reminders.azurestorage/orleans.reminders.azurestorage.azurestorageoperationoptions/) using the provided callback.

### Parameters

- `createClientCallback` (`Func<Task<TableServiceClient>>`)

## ConfigureTableServiceClient(Uri) {#configuretableserviceclient-system-uri-db847d6d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders.azurestorage/orleans.reminders.azurestorage.azurestorageoperationoptions/methods/configuretableserviceclient-system-uri-db847d6d/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Shared/Storage/AzureStorageOperationOptions.cs#L82-L83)

```csharp
[System.Obsolete(Set the TableServiceClient property directly.)]
public void ConfigureTableServiceClient(Uri serviceUri)
```

Configures the [AzureStorageOperationOptions](/orleans/docs/api/csharp/microsoft.orleans.reminders.azurestorage/orleans.reminders.azurestorage.azurestorageoperationoptions/) using an authenticated service URI.

### Parameters

- `serviceUri` (`Uri`)

## ConfigureTableServiceClient(Uri, AzureSasCredential) {#configuretableserviceclient-system-uri-azure-azuresascredential-6df39483}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders.azurestorage/orleans.reminders.azurestorage.azurestorageoperationoptions/methods/configuretableserviceclient-system-uri-azure-azuresascredential-6df39483/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Shared/Storage/AzureStorageOperationOptions.cs#L109-L110)

```csharp
[System.Obsolete(Set the TableServiceClient property directly.)]
public void ConfigureTableServiceClient(Uri serviceUri, AzureSasCredential azureSasCredential)
```

Configures the [AzureStorageOperationOptions](/orleans/docs/api/csharp/microsoft.orleans.reminders.azurestorage/orleans.reminders.azurestorage.azurestorageoperationoptions/) using an authenticated service URI and a `Azure.AzureSasCredential`.

### Parameters

- `serviceUri` (`Uri`)
- `azureSasCredential` (`AzureSasCredential`)

## ConfigureTableServiceClient(Uri, TableSharedKeyCredential) {#configuretableserviceclient-system-uri-azure-data-tables-tablesharedkeycredentia-49a9f7c9}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders.azurestorage/orleans.reminders.azurestorage.azurestorageoperationoptions/methods/configuretableserviceclient-system-uri-azure-data-tables-tablesharedkeycredentia-49a9f7c9/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Shared/Storage/AzureStorageOperationOptions.cs#L118-L119)

```csharp
[System.Obsolete(Set the TableServiceClient property directly.)]
public void ConfigureTableServiceClient(Uri serviceUri, TableSharedKeyCredential sharedKeyCredential)
```

Configures the [AzureStorageOperationOptions](/orleans/docs/api/csharp/microsoft.orleans.reminders.azurestorage/orleans.reminders.azurestorage.azurestorageoperationoptions/) using an authenticated service URI and a `Azure.Data.Tables.TableSharedKeyCredential`.

### Parameters

- `serviceUri` (`Uri`)
- `sharedKeyCredential` (`TableSharedKeyCredential`)

## ConfigureTableServiceClient(Uri, TokenCredential) {#configuretableserviceclient-system-uri-azure-core-tokencredential-b1d1edf5}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders.azurestorage/orleans.reminders.azurestorage.azurestorageoperationoptions/methods/configuretableserviceclient-system-uri-azure-core-tokencredential-b1d1edf5/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Shared/Storage/AzureStorageOperationOptions.cs#L100-L101)

```csharp
[System.Obsolete(Set the TableServiceClient property directly.)]
public void ConfigureTableServiceClient(Uri serviceUri, TokenCredential tokenCredential)
```

Configures the [AzureStorageOperationOptions](/orleans/docs/api/csharp/microsoft.orleans.reminders.azurestorage/orleans.reminders.azurestorage.azurestorageoperationoptions/) using an authenticated service URI and a `Azure.Core.TokenCredential`.

### Parameters

- `serviceUri` (`Uri`)
- `tokenCredential` (`TokenCredential`)

## ConfigureTableServiceClient(string) {#configuretableserviceclient-string-5de83b56}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders.azurestorage/orleans.reminders.azurestorage.azurestorageoperationoptions/methods/configuretableserviceclient-string-5de83b56/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Shared/Storage/AzureStorageOperationOptions.cs#L73-L74)

```csharp
[System.Obsolete(Set the TableServiceClient property directly.)]
public void ConfigureTableServiceClient(string connectionString)
```

Configures the [AzureStorageOperationOptions](/orleans/docs/api/csharp/microsoft.orleans.reminders.azurestorage/orleans.reminders.azurestorage.azurestorageoperationoptions/) using a connection string.

### Parameters

- `connectionString` (`string`)
