azure-storage

Asp.net core CloudConfigurationManager.GetSetting() is null

房东的猫 提交于 2021-02-08 19:07:58
问题 I have an asp.net 4 application where it works fine, but I can't get it working for asp.net core. The documentation says that GetSetting looks in either web.config or app.config file. Storage emulator is turned on. public void ConfigureServices(IServiceCollection services) { AzureConfig.Initialize(); } public static void Initialize() { //Always null var connectionString = CloudConfigurationManager.GetSetting("StorageConnectionString"); } root web.config file: <configuration> <appSettings>

Asp.net core CloudConfigurationManager.GetSetting() is null

妖精的绣舞 提交于 2021-02-08 19:07:39
问题 I have an asp.net 4 application where it works fine, but I can't get it working for asp.net core. The documentation says that GetSetting looks in either web.config or app.config file. Storage emulator is turned on. public void ConfigureServices(IServiceCollection services) { AzureConfig.Initialize(); } public static void Initialize() { //Always null var connectionString = CloudConfigurationManager.GetSetting("StorageConnectionString"); } root web.config file: <configuration> <appSettings>

Azure functions : Getting 403 error while accessing the storage account

五迷三道 提交于 2021-02-07 20:21:07
问题 I have been using azure timer based function in my project. Since I started using the function, I was getting error 403 related to access forbidden from Azure storage account. I tried adding AzureWebJobsStorage Key in function's configuration I tried adding outbound IPs of Allowed ip ranges of azure storage accounts I tried checking the option of allowing azure managed services to the storage account. However, I'm still getting the error in that particular timer function of my function app.

Azure functions : Getting 403 error while accessing the storage account

橙三吉。 提交于 2021-02-07 20:20:02
问题 I have been using azure timer based function in my project. Since I started using the function, I was getting error 403 related to access forbidden from Azure storage account. I tried adding AzureWebJobsStorage Key in function's configuration I tried adding outbound IPs of Allowed ip ranges of azure storage accounts I tried checking the option of allowing azure managed services to the storage account. However, I'm still getting the error in that particular timer function of my function app.

Azure - is one 'block blob' seen as one file?

我怕爱的太早我们不能终老 提交于 2021-02-07 20:17:07
问题 Question background: This may be a simple question but I cant find an answer to it. I've just started using Azure storage (for storing images) and want to know if one 'blob' holds a maximum of one file? This is my container called fmfcpics : Within the container I have a block blob named myBlob and within this I have one image: Through the following code, if I upload another image file to the myBlob block blob then it overwrites the image already in there: CloudBlockBlob blockBlob = container

Azure REST API Create Container, .NET Client Profile, 403 Forbidden, The MAC signature found is not the same as any computed signature

与世无争的帅哥 提交于 2021-02-07 07:35:18
问题 after reading all posts that come close to this, I still find no solution and after "fiddling" around for hours, here goes a post, in hopes that someone has an idea: The closest response I have found is here but two things from these posts do not apply: 1. I'm using example code that certainly works in most cases. 2. I do not have access to any Azure StorageClient simplifiers, since I am required to use the .NET client profile. 3. It is probably a stupid error that I just don't see :-) Here

Azure REST API Create Container, .NET Client Profile, 403 Forbidden, The MAC signature found is not the same as any computed signature

随声附和 提交于 2021-02-07 07:35:00
问题 after reading all posts that come close to this, I still find no solution and after "fiddling" around for hours, here goes a post, in hopes that someone has an idea: The closest response I have found is here but two things from these posts do not apply: 1. I'm using example code that certainly works in most cases. 2. I do not have access to any Azure StorageClient simplifiers, since I am required to use the .NET client profile. 3. It is probably a stupid error that I just don't see :-) Here

Is it possible to read File from same folder where Azure function exists

六眼飞鱼酱① 提交于 2021-02-06 01:42:43
问题 In my Azure C# function I need to read a .txt file. I make the .txt file in Visual studio and set it to "copy Always". Now I am using this code to read the file var dir = System.IO.Path.GetDirectoryName( System.Reflection.Assembly.GetEntryAssembly().Location); var path = System.IO.Path.Combine(dir, "twinkle.txt"); this code doesn't work. When I open the folder which is the value of dir. It lead me to this directory ""C:\Users{username}\AppData\Local\Azure.Functions.Cli\1.0.9"" How I can store

Is it possible to read File from same folder where Azure function exists

你离开我真会死。 提交于 2021-02-06 01:38:34
问题 In my Azure C# function I need to read a .txt file. I make the .txt file in Visual studio and set it to "copy Always". Now I am using this code to read the file var dir = System.IO.Path.GetDirectoryName( System.Reflection.Assembly.GetEntryAssembly().Location); var path = System.IO.Path.Combine(dir, "twinkle.txt"); this code doesn't work. When I open the folder which is the value of dir. It lead me to this directory ""C:\Users{username}\AppData\Local\Azure.Functions.Cli\1.0.9"" How I can store

Is it possible to read File from same folder where Azure function exists

ε祈祈猫儿з 提交于 2021-02-06 01:35:59
问题 In my Azure C# function I need to read a .txt file. I make the .txt file in Visual studio and set it to "copy Always". Now I am using this code to read the file var dir = System.IO.Path.GetDirectoryName( System.Reflection.Assembly.GetEntryAssembly().Location); var path = System.IO.Path.Combine(dir, "twinkle.txt"); this code doesn't work. When I open the folder which is the value of dir. It lead me to this directory ""C:\Users{username}\AppData\Local\Azure.Functions.Cli\1.0.9"" How I can store