# AzureBlobStorageOptions Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.persistence.azurestorage/orleans.configuration.azureblobstorageoptions/)

## ConfigureBlobServiceClient(Func&lt;Task&lt;BlobServiceClient&gt;&gt;) {#configureblobserviceclient-system-func-system-threading-tasks-task-azure-storage-7879ae87}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.persistence.azurestorage/orleans.configuration.azureblobstorageoptions/methods/configureblobserviceclient-system-func-system-threading-tasks-task-azure-storage-7879ae87/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Persistence.AzureStorage/Providers/Storage/AzureBlobStorageOptions.cs#L91-L92)

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

Configures the [AzureBlobStorageOptions](/orleans/docs/api/csharp/microsoft.orleans.persistence.azurestorage/orleans.configuration.azureblobstorageoptions/) using the provided callback.

### Parameters

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

## ConfigureBlobServiceClient(Uri) {#configureblobserviceclient-system-uri-7494fc66}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.persistence.azurestorage/orleans.configuration.azureblobstorageoptions/methods/configureblobserviceclient-system-uri-7494fc66/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Persistence.AzureStorage/Providers/Storage/AzureBlobStorageOptions.cs#L82-L83)

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

Configures the [AzureBlobStorageOptions](/orleans/docs/api/csharp/microsoft.orleans.persistence.azurestorage/orleans.configuration.azureblobstorageoptions/) using an authenticated service URI.

### Parameters

- `serviceUri` (`Uri`)

## ConfigureBlobServiceClient(Uri, AzureSasCredential) {#configureblobserviceclient-system-uri-azure-azuresascredential-07d33342}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.persistence.azurestorage/orleans.configuration.azureblobstorageoptions/methods/configureblobserviceclient-system-uri-azure-azuresascredential-07d33342/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Persistence.AzureStorage/Providers/Storage/AzureBlobStorageOptions.cs#L109-L110)

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

Configures the [AzureBlobStorageOptions](/orleans/docs/api/csharp/microsoft.orleans.persistence.azurestorage/orleans.configuration.azureblobstorageoptions/) using an authenticated service URI and a `Azure.AzureSasCredential`.

### Parameters

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

## ConfigureBlobServiceClient(Uri, StorageSharedKeyCredential) {#configureblobserviceclient-system-uri-azure-storage-storagesharedkeycredential-39d9577f}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.persistence.azurestorage/orleans.configuration.azureblobstorageoptions/methods/configureblobserviceclient-system-uri-azure-storage-storagesharedkeycredential-39d9577f/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Persistence.AzureStorage/Providers/Storage/AzureBlobStorageOptions.cs#L118-L119)

```csharp
[System.Obsolete(Set the BlobServiceClient property directly.)]
public void ConfigureBlobServiceClient(Uri serviceUri, StorageSharedKeyCredential sharedKeyCredential)
```

Configures the [AzureBlobStorageOptions](/orleans/docs/api/csharp/microsoft.orleans.persistence.azurestorage/orleans.configuration.azureblobstorageoptions/) using an authenticated service URI and a `Azure.Storage.StorageSharedKeyCredential`.

### Parameters

- `serviceUri` (`Uri`)
- `sharedKeyCredential` (`StorageSharedKeyCredential`)

## ConfigureBlobServiceClient(Uri, TokenCredential) {#configureblobserviceclient-system-uri-azure-core-tokencredential-581221e4}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.persistence.azurestorage/orleans.configuration.azureblobstorageoptions/methods/configureblobserviceclient-system-uri-azure-core-tokencredential-581221e4/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Persistence.AzureStorage/Providers/Storage/AzureBlobStorageOptions.cs#L100-L101)

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

Configures the [AzureBlobStorageOptions](/orleans/docs/api/csharp/microsoft.orleans.persistence.azurestorage/orleans.configuration.azureblobstorageoptions/) using an authenticated service URI and a `Azure.Core.TokenCredential`.

### Parameters

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

## ConfigureBlobServiceClient(string) {#configureblobserviceclient-string-d03f378f}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.persistence.azurestorage/orleans.configuration.azureblobstorageoptions/methods/configureblobserviceclient-string-d03f378f/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Persistence.AzureStorage/Providers/Storage/AzureBlobStorageOptions.cs#L73-L74)

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

Configures the [AzureBlobStorageOptions](/orleans/docs/api/csharp/microsoft.orleans.persistence.azurestorage/orleans.configuration.azureblobstorageoptions/) using a connection string.

### Parameters

- `connectionString` (`string`)
