I have been looking all over the place but I'm having a hard time finding out how to upload a file to Dropbox from an Azure webjob. Is this even possible? I will be creating an excel file and a text document in my webjob that i will need to place in a certain Dropbox account (which i have access) folder.
According to your requirement, I assumed that you could follow the possible approaches below to achieve your purpose.
1.Call Dropbox API in your WebJob
You could leverage Dropbox.NET which is a portable Class Library for you to easily integrate Dropbox into your WebJob.
2. ApiHub extension for Azure WebJob
You could leverage Microsoft.Azure.WebJobs.Extensions.ApiHub which is a pre-release version for you to integrate Dropbox with WebJob. For more details, you could refer to Azure WebJobs extensions sample.
Alternatively (if you don't want to deal with DropBox API) you can build a logic app being triggered for example by HTTP request from your web job as DropBox connector exists:
https://learn.microsoft.com/en-us/azure/connectors/connectors-create-api-dropbox
Related
So I have a requirement to process a file when it is uploaded to a particular folder in OneDrive. An Azure Function would be nice to use for this purpose.
Here's what I see when trying to set this up in the Azure portal:
Is it even possible to do this in the portal either v3 or v2 of the Azure Functions runtime? I tried to follow the steps documented here but I find them a little less-explicit and difficult to interpret/follow.
If anyone has any better examples to follow, please be so kind to share. I'm confused as to what approach to take (e.g. portal, VS Code, VS)
Currently it is recommended that we use the classic function UI in azure portal as there are some issues in the new UI.
And I found that Microsoft Graph bindings are currently in preview for Azure Functions version 2.x and higher. For preview version, we don't recommend that you use them in your production apps.
The workaround is that you use Azure Logic Apps instead.
Reference:
Access and manage files in OneDrive connector by using Azure Logic Apps
I cannot clearly see it on the website but via the CloudRail API, I am able to migrate files to another cloud server from a user's Dropbox, Google Drive, OneDrive, etc.? Is it a cloud file migration API?
CloudRail enables you, among other things, to upload and download files to and from Dropbox, Google Drive etc. in an abstracted, uniform manner.
It is an SDK based solution currently available for Android, Java, iOS and Node.js.
It is not a migration solution but it can make building one much easier since you'd only have to take care of UI and logic.
Source: I am working for CloudRail
I want to upload files to a specific folder on my onedrive using C# in web application. I am not able to find any sdk for that. All i can find is sdk for windows phone application. Thanks you in advance.
The OneDrive SDK is still valid for use in any .NET language/platform, including ASP.NET.
For web-based applications, you'll need to handle authentication yourself though. Because of the various ways of authentication a web app, the SDK didn't provide a prescriptive authentication solution for web apps.
You can either code the OAuth 2 implementation or use an existing library to connect it up (like using OWIN). Once you have an access token for OneDrive, you can provide the token to the SDK and then use the SDK as normal.
The webhook sample project in the OneDrive org has an example of how to provide an access token directly to the OneDrive SDK by way of creating a OneDriveAccountServiceProvider.
I have been struggling to find some resources that help explain, how we use the File Storage with Web App Service.
There are ways to use it with the old Web Roles, Check here (Using the Azure File Service in your Cloud Services (Web and Worker Roles)).
However, there is NO OnStart() methods in "Azure Web Service".
If you're looking for mapping a drive to your Azure File Service share in your Web App using SMB protocol, then I don't think you can do as of today.
What you could do is make use of Azure File Service REST API and manipulate shares and files that way. You don't have to actually use the REST API per se; you can simply use the latest version of .Net Storage Client library which is a wrapper over REST API.
Please see this link for more details on how to use this using Storage Client library: https://azure.microsoft.com/en-in/documentation/articles/storage-dotnet-how-to-use-files/.
Yes, you can. In Linux Web Apps and Windows Containers Web Apps only.
In the Web App, under Application Settings you will find Mount storage (Preview) section where you can mount Storage account. Works like a charm.
Below is the task i have to complete in a few weeks, my question is does anyone know of any tutorials or books which will be of use to me? I also only have little knowledge of C#.
You will design the relevant code in ASP.NET and C# so that you can
deploy a web role on Azure that can:
a) read in a zip file from input on the web page
b) uncompress the zip file which will have an executable, an
arbitrary list of arguments and data files
c) run the executable with the arguments (and hence read in the
data files).
d) store the output logs for access later.
You will test this by running a piece of code that reads in a set of
arguments which correspond to test files.
The executable will then read in the text files and then print them
out.
You will also have to design an appropriate UML to explain how the
different classes you have written interact.
You can deploy your service/role to Azure using Service Management API. Write a module which does the deployment and call this in your web.
Check these links that may help you.
Deploying An Azure Application
Publish Azure WebRole using Installer (like WIX)
About the Service Management API
The Windows Azure Accelerator for Web Roles makes it quick and easy
for you to deploy one or more websites across multiple Web Role
instances using Web Deploy. The accelerator includes a Visual Studio
project template that creates a Windows Azure web role to host one or
more websites.
Azure Tutorial; Be in cloud (Part 3) [Web Role]
Windows Azure and SQL Azure Tutorials - Tutorial 1: Using Windows Azure Web Role and Windows Azure Table Service
Check Azure in Action Book and it's content.
Hope these help you to get an idea that you want to implement.
That's hard homework: Upload a zip file to a cloud based server and run the .exe. Interesting...
Anyway, the Azure SDK is a great place to start. Also scan through Smarx's Cloud Cover shows. They cover pretty much everything.