File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/CLU/Microsoft.Azure.Commands.Management.Storage/Models Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -82,10 +82,10 @@ public static PSStorageAccount Create(StorageModels.StorageAccount storageAccoun
82
82
var credentials = StorageUtilities . GenerateStorageCredentials ( client , result . ResourceGroupName , result . StorageAccountName ) ;
83
83
CloudStorageAccount account = new CloudStorageAccount (
84
84
credentials ,
85
- new Uri ( storageAccount . PrimaryEndpoints . Blob ) ,
86
- new Uri ( storageAccount . PrimaryEndpoints . Queue ) ,
87
- new Uri ( storageAccount . PrimaryEndpoints . Table ) ,
88
- new Uri ( storageAccount . PrimaryEndpoints . File ) ) ;
85
+ null == storageAccount . PrimaryEndpoints . Blob ? null : new Uri ( storageAccount . PrimaryEndpoints . Blob ) ,
86
+ null == storageAccount . PrimaryEndpoints . Queue ? null : new Uri ( storageAccount . PrimaryEndpoints . Queue ) ,
87
+ null == storageAccount . PrimaryEndpoints . Table ? null : new Uri ( storageAccount . PrimaryEndpoints . Table ) ,
88
+ null == storageAccount . PrimaryEndpoints . File ? null : new Uri ( storageAccount . PrimaryEndpoints . File ) ) ;
89
89
result . Context = new AzureStorageContext ( account ) ;
90
90
return result ;
91
91
}
You can’t perform that action at this time.
0 commit comments