# AzureBlobStorageOptions Properties

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

## BlobServiceClient {#blobserviceclient-0a8935ef}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.persistence.azurestorage/orleans.configuration.azureblobstorageoptions/properties/blobserviceclient-0a8935ef/)

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

```csharp
public BlobServiceClient BlobServiceClient
```

Gets or sets the client used to access the Azure Blob Service.

## BuildContainerFactory {#buildcontainerfactory-6bd9a3fd}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.persistence.azurestorage/orleans.configuration.azureblobstorageoptions/properties/buildcontainerfactory-6bd9a3fd/)

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

```csharp
public Func<IServiceProvider, AzureBlobStorageOptions, IBlobContainerFactory> BuildContainerFactory
```

A function for building container factory instances

## ClientOptions {#clientoptions-9475135a}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.persistence.azurestorage/orleans.configuration.azureblobstorageoptions/properties/clientoptions-9475135a/)

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

```csharp
public BlobClientOptions ClientOptions
```

Options to be used when configuring the blob storage client, or `null` to use the default options.

## ContainerName {#containername-8d79a0be}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.persistence.azurestorage/orleans.configuration.azureblobstorageoptions/properties/containername-8d79a0be/)

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

```csharp
public string ContainerName
```

Container name where grain stage is stored

## DeleteStateOnClear {#deletestateonclear-9bd11f03}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.persistence.azurestorage/orleans.configuration.azureblobstorageoptions/properties/deletestateonclear-9bd11f03/)

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

```csharp
public bool DeleteStateOnClear
```

Gets or sets a value indicating whether to delete the state when [IGrainStorage](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.storage.igrainstorage/) is called. Defaults to true.

## GrainStorageSerializer {#grainstorageserializer-2eb32078}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.persistence.azurestorage/orleans.configuration.azureblobstorageoptions/properties/grainstorageserializer-2eb32078/)

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

```csharp
public IGrainStorageSerializer GrainStorageSerializer
```

Gets or sets the serializer to use for this storage provider.

## InitStage {#initstage-3dff7c2a}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.persistence.azurestorage/orleans.configuration.azureblobstorageoptions/properties/initstage-3dff7c2a/)

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

```csharp
public int InitStage
```

Stage of silo lifecycle where storage should be initialized. Storage must be initialized prior to use.
