azure-storage

Windows Azure Storage Table connection timed out

点点圈 提交于 2019-12-12 17:36:20
问题 When running a service for a long time (a couple of days) I receive a connection timeout exception from Windows Azure Table Storage. Even the get table api returns this exception. Why does it occur and how can I solve this? 回答1: In addition to Gaurav's answer, the other common cause of this issue is port exhaustion. See http://blogs.msdn.com/b/windowsazurestorage/archive/2013/08/08/net-clients-encountering-port-exhaustion-after-installing-kb2750149-or-kb2805227.aspx for more information. 回答2:

Azure CLI storage set cors - Unexpected token

[亡魂溺海] 提交于 2019-12-12 17:17:14
问题 I'm trying set CORS as mentioned here but have an error: $ azure storage cors set --blob static --cors [{\"AllowedOrigins\":\"*\",\"AllowedMethods\":\"GET\"}] info: Executing command storage cors set + Setting storage CORS rules for service: blob error: Unexpected token : What's wrong with [{\"AllowedOrigins\":\"*\",\"AllowedMethods\":\"GET\"}] ? 回答1: I believe you're missing MaxAgeInSeconds parameter. If I try without this parameter, I get an error. However the following worked for me: azure

How to set infinite shared access signature policy in azure?

淺唱寂寞╮ 提交于 2019-12-12 17:17:12
问题 I am trying to set a shared access policy so that the user has infinite SharedAccessExpiryTime. I will track their access policies so that they can be revoked if needed. From this thread, the answer states there is a mechanism for setting an infinite expiration time. I did some searching and was not able to find this, how can this be done? Currently, I simulate infinite by providing some large values for expiration time: SharedAccessTablePolicy policy = new SharedAccessTablePolicy() {

Azure Storage Account - Read Only Group

China☆狼群 提交于 2019-12-12 14:24:51
问题 I have an Azure Storage account, and a group of users called 'Readers' I want to give the Readers group read-only access to all blobs and containers in the storage account. I've tried: In the Storage Account > Access Control > Add > Role: Storage Blob Data Reader Assign access to: Azure AD user, group, or application Select: Readers But users in the Readers group could not even see the storage account to try and access it. I then removed the above access control and tried: I've tried: In the

getting 404 error when connecting to azure storage account

依然范特西╮ 提交于 2019-12-12 14:07:25
问题 I am going through the tutorial for blobs with azure storage accounts found here Azure Storage Tutorial I have created the storage account on azure and it says it is up. I have copied the key and account name to my config file. I have verified the endpoint address in my application matches the one on my azure storage account. but when I run the code I get a 404 error. And when I copy and past the endpoint address from my azure account into a browser I also get a 404 error here I the code.

How to check wether a CloudBlobDirectory exists or not?

放肆的年华 提交于 2019-12-12 11:26:23
问题 In the software that I am programming, I am attempting to create a virtual file system over the blobs structure of Azure. Many times in the process, I get a path from the system and I need to tell whether the path is of a Blob or just a virtual BlobDirectory that azure provides. I did this by casting it from one form to another and handling the error. But now, if I know that a path points to a virtual directory, how can I check whether this virtual directory exists or not? I can get the

Azure storage non Classic (V2) - How to configure custom domain

时光总嘲笑我的痴心妄想 提交于 2019-12-12 11:01:21
问题 In new Azure portal there are 2 storage account: non classic and classic account. as I think the classic is old version then I choose the non classic. The problem is, I cannot configure the custom domain on the new portal, it redirected me to the old azure portal (manage.windowszuare.com) . and the problem continue.. the old azure portal not recognizing the new/nonClassic Azure storage. Kindly advise, how can I configure the custom domain for storage blob V2 (non classic). Thank you. 回答1: It

Creating Azure VM from custom image

社会主义新天地 提交于 2019-12-12 10:16:19
问题 I have an image stored in Azure that I want to spin up multiple VMs from. I've created a template that will create the necessary resources for me and all of them succeed except the VM creation. Using CreateOption.FromImage runs the deployment for around 40 minutes until I get the error: 'OS Provisioning for VM 'vmName' did not finish in the allotted time. However, the VM guest agent was detected running. This suggests the guest OS has not been properly prepared to be used as a VM image (with

Where is the “tableClient.CreateTableIfNotExist” in AzureStorage library v2?

你离开我真会死。 提交于 2019-12-12 08:26:48
问题 In Windows Azure Storage, we used to do this to create a table : var tableClient = account.CreateCloudTableClient(); tableClient.CreateTableIfNotExist(TableName); I just downloaded the last version of the azure storage library (v2), and my previous code doesn't work anymore : 'Microsoft.WindowsAzure.Storage.Table.CloudTableClient' does not contain a definition for 'CreateTableIfNotExist' and no extension method 'CreateTableIfNotExist' accepting a first argument of type 'Microsoft.WindowsAzure

Create a blob storage container programmatically

余生长醉 提交于 2019-12-12 08:24:28
问题 I have a requirement whereby on creation of a company an associated blob storage container is created in my storageaccount with the container name set to the string variable passed in. I have tried the following: public void AddCompanyStorage(string subDomain) { //get the storage account. CloudStorageAccount storageAccount = CloudStorageAccount.Parse( System.Configuration.ConfigurationManager.AppSettings["StorageConnectionString"].ToString()); //blob client now CloudBlobClient blobClient =