Debug Azure application without using Azure Storage Emulator - azure-storage

When debugging in Visual Studio, Azure Storage Emulator always starts automatically, even if my web role configuration points to the storage account credentials (*.blob.core.windows.net) and not the storage emulator. Is there any way to debug and not use the development storage at all?

The emulator starts for your web roles probably. What application is using storage? You can't debug Azure storage. You can only debug an app that is calling storage.

Related

How to connect Azure App service to Azure VM?

I have a Selenium Java project which is a web services project. This project has 3 web services.
this project is hosted on azure app service. But Azure app service does not have its own Virtual machine where I can install chrome.
I am very much new to all this. Can anyone help me in linking azure app service to an azure VM where I can install a chrome browser and run automation test cases?
If the VM is allowed to access external webste, of course you can install a chrome browser and run automation test cases.
If the VM is not allowed to access external website, and you want to access Azure App service internally. You can link them via the vnet.
Reference:
Configure VNet Integration with your app

Is There a Local Emulator for the Azure Data Lake Store

When developing for Azure storage accounts, I can run the Microsoft Storage Emulator to locally keep Blobs, Queues, and Tables without having to connect to Azure online.
Is there something equivalent for the Azure Data Lake Store? It would be nice to develop locally for a while without having to connect to Azure online.
Have you tried Visual Studio with the Azure Data Lake Tools plug-in?
As pointed out by David, you can develop Azure Data Lake Analytics (ADLA) projects locally without needing connectivity to Azure for the ADLA account or the associated Azure Data Lake Store (ADLS) account. Is there some other application you would like to use with ADLS?
Thanks,
Sachin Sheth
Azure Data Lake team
Same problem here.
AFAIK the Storage Emulator is not yet able to really handle Data Lake (ADSL Gen2) Requests.
This Uri works (but looks for a file, not a dir):
http://127.0.0.1:10000/devstoreaccount1/packages-container/Dir/SubDir?sv=2020-04-08&se=2022-10-13T14%3A43%3A39Z&sr=b&sp=rcwl&sig=d2SxwYCkJGyx%2BHac9vntYQZOTt5QVs1bKgKb4%2FgcQ9k%3D
This one doesn't:
Error: Status: 403 (Server failed to authenticate the request. Make sure the value of the Authorization header is formed correctly including the signature.)
ErrorCode: AuthorizationFailure
http://127.0.0.1:10000/devstoreaccount1/packages-container/Dir/SubDir?sv=2020-04-08&se=2022-10-13T14%3A43%3A39Z&sr=d&sp=rcwl&sdd=2&sig=KU%2Fcu6W0Nsv8CucMgusubo8RbXWabFO8nDMkFxU1tTw%3D
The difference is that the second one uses the resource 'sr=d' (directory) while the first uses 'sr=b' (blob).
Both items are working on real Azure Storage (with ADSL Gen2).
The request is already tracked here: https://github.com/Azure/Azurite/issues/553
Tested on VS 2022 17.3.6 using Server: Azurite-Blob/3.18.0

Cannot browse local Azure Storage Emulator in VS2013 - Azure SDK 2.4/2.5

When using the Server Explorer in VS2013, I cannot browse the Blob Storage under Development.
I receive this error: "Failed To Connect To Microsoft Azure storage emulator"
I have started VS as Administrator.
I was having this issue using Azure SDK 2.4 so I updated to 2.5 and I am getting the same result. However, I can browse the emulator using Azure Storage Explorer 6.
Any ideas?

Logging in Web role MVC

I have an ASP.NET MVC 4 web application. I need to be able to log controller logic.
Now i have created a Windows Azure project and added a web role and added this web application as a web-role.
How can I log when the the website is running as a cloud service?
Windows Azure Diagnostics enables you to collect diagnostic data from a worker role or web role running in Windows Azure.
The Windows Azure diagnostic monitor runs in Windows Azure and in the compute emulator to collect diagnostic data for a role instance. Log data will be periodically saved to a storage account where it can be examined.
For step-by-step instructions refer to Enabling Diagnostics in Windows Azure.
For additional information refer to Collect Logging Data by Using Windows Azure Diagnostics, Diagnostics and Debugging in Windows Azure and Windows Azure Diagnostics–From the Ground Up.
For advanced dianostic management features check Azure Diagnostics Manager (free trial available).

Accessing Local Storage in azure

I have a website in azure which I want to create pdfs from templates. I need some where to store the pdf while I'm creating it. After some searching round I thought the best way to handle this would be through Local Storage. I added a Windows azure cloud service project to my web app. I then added local storage to the role for my web app. Locally I can now create pdfs from templates and store them in blob storage. However when I publish the app to azure it no longer works. I thought I might need to create a cloud service in azure from my local cloud service project so created a package to do this. The cloud service is now running but I still can't access local storage.
The line:
Dim myReportsStorage As LocalResource = RoleEnvironment.GetLocalResource("myReports")
works locally but fails when I publish the website to azure. I'm not sure if I somehow need to link my website and my cloud service in azure but I can't see how to do this.
If anyone can help with this I would be very grateful.