Azure Cloud storage with Windows Azure Websites - azure

Is it possible to use Azure Cloud Storage with Windows Azure websites?
All of the code samples for Cloud Storage that I have found use Azure Cloud Services with a Web role.
I am using RavenDB embedded so I need Azure Cloud Storage, right?
I am currently using Azure Cloud Services + Azure Cloud Storage.
PS. this is for a small personal website with almost no traffic.

Azure Cloud Storage (Blob, Tables etc.) are ordinary network service which uses REST protocol under the hood. The Cloud Storage services can be accessed from Azure Cloud services as well as Azure Websites. Also you can use Azure Cloud Storage from you on-premiss applications (however, due to network latency it might be a bit slower than from the cloud).
Azure Cloud Storage API (which you probably mentioned) seems to be the best option to use when on Azure Websites.
Please note that the same applies to Azure SQL - it can be used from Azure Cloud service as well as Azure Website (including on-premiss applications)

Related

Azure DataFactory in GCP

I have a scenario where I need to synchronize multiple "on premise" Microsoft SQL server databases from business datacenters to cloud storage (let's call it blob storage).
In the past, I've used the Azure Data Factory on-premise client to bypass firewall considerations, not require a VPN, and delivery data directly to Azure Blob storage.
I need to do the same thing using Google tools (destination Google Cloud Storage). Is there an equivalent GCP tool that does not require a VPN? If not, any lowish-priced tool recommendations?
To send file from on prem to Google Cloud Storage (GCS) your need 2 things
gcloud SDK installed on your local environment
a service account key file. Keep it secrets!!
Then, follow these steps
Authenticate your service account in gcloud sdk gcloud auth activate-service-account <Service Account email> --key-file=<Service Account File>
Extract your data locally
Use gsutil to send the file to the cloud
The connexion is authenticated and don't required VPN.

Azure Web API requesting for storage account blobs

We have multiple mobile apps which displays images, documents from azure blob storage. Right now these storage account blob containers are public, so our mobile apps can access. But now we want to restrict all these containers to private. I am looking for a generic solution where I will create .NET webapi's deploy to azure app service. This app service should talk to storage account and return the blobs/images/documents. All mobile apps should talk to app services instead of directly talking to Storage accounts.
If you could suggest the high-level overview on how to approach this?
We already have mobile apps directly talking to azure storage accounts.
Yes, it is a practicable plan. In this scenario, your container and blob could be private, and your web api can access them via Azure Storage SDK, and your mobile apps will be clients which need to get authorized to call your web api.
To utilize the Azure AD, you need to create two applications in Azure AD. One is a web application which represents the web api, and the other is a native application (or several apps) which represents the client.
There is an official sample for get-started with this: Samples, you may refer to it first.

How do I configure which storage account my Web Apps and Function Apps use?

Is this even possible? I have a couple web apps and a couple of Azure Functions running under the same App Service Plan. I'd like to (ideally) have them use a specific Storage plan, so I can keep everything in one place. I envision them in different containers under the same plan.
If that's not possible...then where are the files? Are they on the storage that's built into the App Service Plan itself? If so, can I connect to this somehow, so I can manage the files through something like Storage Explorer?
Today when playing with the Azure Az Powershell tool I found I was able to provision a Function App without a Azure Storage back-end. This cannot be done via the UI. An easy way to provision a Function App with a storage account backend is by leveraging the Azure UI for provisioning.
When a Function App is provisioned via command line, the bits seem to be stored within the function app itself. There is an FTP URL given if you download the publish profile. The files can be read and written to using an FTP tool like WinSCP (as alternative to Kudu)
I'd like to (ideally) have them use a specific Storage plan, so I can keep everything in one place. I envision them in different containers under the same plan. If that's not possible...then where are the files? 
Every Azure Web App has a home directory stored/backed by Azure Storage. More detail info please refer to Azure WebApp sandbox. It is owned by Azure WebApp Service, we are not able to choose Azure Storage to setup WebApp by ourselves currently. But we could config storage account for Azure WebApp Diagnostic logs.
Are they on the storage that's built into the App Service Plan itself? If so, can I connect to this somehow, so I can manage the files through something like Storage Explorer?
Different WebApp Service Plan has different volume of the storage. We could use Kudu tool (https://yoursite.scm.azurewebsites.net) to manage the files. More detail info about Kudu please refer to the document.
Update:
We could access the home directory with the Kudu tool. More details please refer to the snapshoot

Can the new Azure File Service be used from Azure WebSites?

The title pretty much says it all...
Microsoft just launched the new File Services on Azure.
(http://blogs.msdn.com/b/windowsazurestorage/archive/2014/05/12/introducing-microsoft-azure-file-service.aspx)
Can I use it from within a Azure WebSite?
Or is it limited to use from VMs and CloudServices due to "net use" restrictions?
Thanks
Yes - use the REST API - the Azure website MUST be in the same region as the storage account.
Once your share is created, it can be accessed via the SMB or REST
protocol from any Azure node (VM/Worker/Web role) hosted in the same
region as the storage account hosting the share.

Moving Azure Instance to AWS

I have received $200 credit to host my 2 Windows Azure Cloud projects on AWS. Just wondering what the quick and dirty process is to migrate my Visual studio projects to being published on the AWS cloud?
I could seem to find much documentation available, with the exception that apparently it's possible.
Are you using Cloud Services (web role), an Azure Web Site, or a VM? Depending on how the ASP.NET MVC code is written, you could provision whatever compute capability you need in AWS and deploy there.
The blob storage would likely be the problem. That is unless the code has an abstraction layer to isolate the app from storage implementation details. Azure blob storage and whatever you using in AWS have different platform APIs.

Resources