We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e49b882 commit 34b806bCopy full SHA for 34b806b
1 file changed
Storages/ManagedCode.Storage.Azure/AzureStorage.cs
@@ -154,8 +154,17 @@ protected override async Task<Result> CreateContainerInternalAsync(CancellationT
154
await StorageClient.SetAccessPolicyAsync(StorageOptions.PublicAccessType, cancellationToken: cancellationToken);
155
}
156
157
- IsContainerCreated = await StorageClient.ExistsAsync(cancellationToken);
158
- ;
+ try
+ {
159
+ IsContainerCreated = await StorageClient.ExistsAsync(cancellationToken);
160
+ }
161
+ catch (RequestFailedException e)
162
163
+ logger.LogException(e);
164
+ //probably we don't have permission to check if container exists
165
+ IsContainerCreated = true;
166
167
+
168
169
return Result.Succeed();
170
0 commit comments