![](/img/trans.png)
[英]How to connect to Development Azure Storage (local) with the new NodeJS @azure/storage-queue library?
[英]How to connect azure development storage in f#?
目前,我正在努力針對本地天青表存儲(developmentstorage)進行連接並在f#中進行操作。
我可以找到的唯一與存儲Auth.StorageCredentials(accountName,accountKey)連接的方法似乎不接受我在C#解析方法中使用的developmentstorage = true字符串。
我試圖使用相應的帳戶名和密鑰(devstoreaccount1,Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq / K1SZFPTOtr / KBHBeksoGMGw ==)無法正常工作。
關於如何解決此問題的任何想法?
您可以使用CloudStorageAccount.DevelopmentStorageAccount
來獲取對指向開發存儲帳戶的CloudStorageAccount
對象的引用。
open Microsoft.WindowsAzure.Storage
open Microsoft.WindowsAzure.Storage.Auth
[<EntryPoint>]
let main argv =
let cloudStorageAccount = CloudStorageAccount.DevelopmentStorageAccount;
let cloudTableClient = cloudStorageAccount.CreateCloudTableClient();
let tableName = "dummy";
let table = cloudTableClient.GetTableReference(tableName);
let tableCreated = table.CreateIfNotExists();
該庫可以滿足您的要求: http : //dmohl.github.io/Fog/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.