I'm training with Azure environment and I have some trouble with the object CloudDriver.
I have mounted a drive on a blob (on the Storage Emulator) but I can't see it with a GUI as CloudBerry or Azure Storage Explorer.
If I understand properly this topic client-side-accessing-windows-azure-drive, the blob which store the driver data looks like an other blob ?
So if the drive is really create, I can see him with CloudBerry ?
Other linked question :
Did you know a GUI which can upload page blob (and not block blob) ?
To create my CloudDrive I use this web site : http://archive.loicrebours.fr/index.php/2012/01/29/azure-storage-drive-55/
(but it's a french web page).
When using the storage emulator, the cloud drive is simulated using local storage on your disk. To see its contents, you can open the storage emulator and choose to view cloud drive contents (which opens an explorer window to the correct temporary directory). See this article for more details.
Note: The Windows Azure Drives lab is also in the Windows Azure Training Kit.
The cloud drive is simply a VHD stored in your storage account as Page Blob. Like David explains, if you're working in the emulator the cloud drive is simulated. But if you run the application in Windows Azure the VHD file will be present in your storage account (I assume you'll be able to see it in CloudBerry, but I don't know if it supports page blobs).
I don't know if there's a GUI allowing you to upload page blobs, but there's a console application that allows you to upload VHD files as page blobs like this:
vhdupload.exe input-file http://accountname.blob.core.windows.net/container/blobname key.txt
ClumsyLeaf CloudXplorer uploads page blobs nicely, so it's a good way to get your VHD into blob storage to use as a Drive.
Related
How can I bring Azure a local path?
I'm trying to perform an HTTP call using Azure Function Apps (on Azure Portal), & I have to bring a path from my PC, in order this local image to be uploaded.
The request body looks something like this:
{
'url' : 'C:/Users/User/Pictures/example.jpg'
}
I tried to search about it & I found a solution which tells to run the Azure on local, but I want it to run on Azure portal.
I found more answer which tells that when I run a function on azure portal, the function path changes to D:\home\site\wwwroot> & by this way - I can put the image in this location; but I have no such as this path in my PC.
Thanks a lot!!!
You need to make use of Azure blob storage to store the files that should be used by the user function. You won't know if your function will use the same files every time it is executed if it is using Consumption plan. Uploaded images should go to Blob Storage an example
https://learn.microsoft.com/en-us/azure/storage/blobs/storage-upload-process-images?tabs=dotnet
I have a doubt for purchase a microsoft azure app service to host my app. I have already tested the free profile and i am concerned to switch to a basic profile.
That's my question.
I have seen on this table on azure website here which i'll have 10GB of disk space for my application files.
When i went on price calculator i see this
Well my question is:
Why here i see 10GB of temporary storage? will i lose my application files located in the wwwroot folder anytime?
will i lose my application files located in the wwwroot folder anytime?
It will not be lost if you application files located in the wwwroot folder.We could get the answer from the document.
Persisted files
This is what you can view as your web site's files. They follow a structure described here. They are rooted in d:\home, which can also be found using the %HOME% environment variable.
These files are persistent, meaning that you can rely on them staying there until you do something to change them. Also, they are shared between all instances of your site (when you scale it up to multiple instances). Internally, the way this works is that they are stored in Azure Storage instead of living on the local file system.
Free and Shared sites get 1GB of space, Basic sites get 10GB, and Standard sites get 50GB
Temporary files
A number of common Windows locations are using temporary storage on the local machine. For instance
%APPDATA% points to something like D:\local\AppData.
%TMP% goes to D:\local\Temp.
Unlike Persisted files, these files are not shared among site instances. Also, you cannot rely on them staying there. For instance, if you restart a web app, you'll find that all of these folders get reset to their original state.
For Free, Shared and Consumption (Functions) sites, there is a 500MB limit for all these locations together (i.e. not per-folder). For Standard and Basic sites, the limit is very high (over 100GB).
We could check the application files in the D:\home\site\wwwroot from the Azure kudu tool(https://yoursite.scm.azurewebsites.net/).
Available disk space is shown on the Environment page:
I had a Kentico site that I was using at first without any cloud storage. Now that I have switched to Amazon S3 using their documentation (https://docs.kentico.com/display/K8/Configuring+Amazon+S3), I have a lot of files that are still being stored locally. I want to move them into the cloud automatically without having to touch each file.
Is there an easy way to automatically push files in media library, app_theme, attachments, images, etc into the new bucket in the Amazon S3 cloud storage?
It should be possible to move all the files to Amazon S3 storage but it is important to note there are a few downsides in the process as well.
First of all, you could copy all the files you want to move to the corresponding bucket in the storage which should ensure system would look for and retrieve all files from the storage instead of a local file system. However, I would also recommend that you delete the files from your local filesystem afterwards because it might cause some conflicts in specific scenarios.
The downside is the fact that Amazon S3 storage does not support some special characters so you might need to adjust file names manually which would mean the references would need to be changed accordingly.
Hi I bought a cheap Android phone to do app debugging on, and I would like to know how to access the internal memory folder, which is rejecting my advances.
When I first got the phone I downloaded some pictures from the internet using the browser. I also took a photo with the camera. They were stored in internal memory because I had not installed a SD card.
Then I installed an SD card, and downloaded some more images with the browser, which were stored on the SD card. Now when I look in the gallery there are different folders for the images on the SD card and the ones in internal memory.
I am writing a C# application using Xamarin to browse the pictures, but when I try to reach /data/internal_memory, I receive a permissions error. I can however access the folder using a file manager app (Easy Files Finder). I assume that this is because Easy Files Finder made me accept various permission exceptions before installation.
What do I have to do in my application to give me read access to the internal storage? Thanks for any advice!
As Google says:
"You can save files directly on the device's internal storage. By default, files saved to the internal storage are private to your application and other applications cannot access them (nor can the user). When the user uninstalls your application, these files are removed."
But you can try this:
Call openFileInput() and pass it the name of the file to read. This returns a FileInputStream.
Read bytes from the file with read().
Then close the stream with close().
See this
Accessing internal memory may be restricted. I'd try searching here:
string path = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
To access files on the SD card use Android.OS.Environment.ExternalStorageDirectory.AbsolutePath.
Using XAML C# in Windows "Metro" Apps how do I go about playing a certain video file. Examples:
D:\video1.wmv
\\MEDIAPC\video2.wmv
The only way I managed to get this working so far is by using FilePicker, but I don't want to use this as I already have a list of files to play.
I have tried to use GetFileFromPathAsync but I keep getting permission / access issues
await StorageFile.GetFileFromPathAsync(#"D:\video1.wmv");
Apologies if this has been answered I just couldn't find an answer that fits my problem.
If your D:\ drive is a non-network resource try adding the Removable storage application capability. This can be accomplished by double-clicking on the Package.appxmanifest and navigating to the Capabilities tab. By default your application (assuming it is a Windows Store app) only has access to local files packaged with your app or files stored in local/roaming/temp folders (usually reserved for Application state).
If your data is stored on a Network resource that requires authentication you will want to enable the Enterprise Authentication capability.
You may also want to fiddle with the Home and Work Networks for the \MEDIAPC\ files if you aren't accessing resources that require network authentication.
Further Reads:
Accessing data and files
How to load data from files
App Capabilities Overview