Skip to content
Closed
Prev Previous commit
Next Next commit
feature: support azure MangedIdentity TokenCredential
  • Loading branch information
Meir017 committed Aug 14, 2024
commit 4c06110e99a913e5c21e1f8ab5490649a694b788
2 changes: 1 addition & 1 deletion libs/host/Configuration/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ public GarnetServerOptions GetServerOptions(ILogger logger = null)
{
throw new InvalidAzureConfiguration("Cannot enable use-azure-storage without supplying storage-string or storage-service-uri & storage-managed-identity");
}
if (useAzureStorage && !string.IsNullOrEmpty(AzureStorageConnectionString)
if (useAzureStorage && !string.IsNullOrEmpty(AzureStorageConnectionString)
&& (!string.IsNullOrEmpty(AzureStorageServiceUri) || !string.IsNullOrEmpty(AzureStorageManagedIdentity)))
{
throw new InvalidAzureConfiguration("Cannot enable use-azure-storage with both storage-string and storage-service-uri or storage-managed-identity");
Expand Down