OneDrive for Azure web site deployment - azure

I have a file to large for Git, and my Dropbox storage dropped, so it now full.
Can OneDrive for Business be used like a DropBox for deploying web sites?

OneDrive is now supported. It creates a Apps > Azure Web Apps > YourSiteName folder in your OneDrive root.
Then just drop your web files in that folder, and then hit the Synch button in the azure portal and it will pull the files from the folder.
I just deployed a node.js app from my OneDrive.

As of October 2016 onedrive has been added to the deployment option source on azure.

Simple answer is NO, currently we have only below options for source control that are supported by Azure:
Visual Studio Online
GitHub
Bitbucket
Local Git
Dropbox
CodePlex
List item
Mercurial repository

Continuous development allows this origins:
Visual Studio Online
OneDrive
Local Git Repository
Github
Bitbucket
Dropbox
External Repository
In the case of OneDrive, you only have to log in using the credentials of the OneDrive account from where you want to deploy the website from, and then select the folder.

OneDrive doesn't work for CD as you have to manually sync in the portal :( I've not tried DropBox.
It's seems VC is the only workable solution which is not ideal as you have to check in built artifacts - that's an anti pattern

Related

How do I protect a target Directory in Azure from deployment

I am using VS Team Services to build and deploy my Asp.net MVC application to Azure. When the application is running, users can upload files to a directory.
The problem is that when I run a new build and deploy task in Team Services it overwrites or deletes the files that were uploaded by my users.
It seems like Team Services erases the target location before it does the deployment.
Is there a way in Team Services to tell it not to delete a specific directory when it is deploying an update to the application?
If I cant do that then is there a way to automate the copying of the original files before the deployment, then write them back after the deployment?
I've been searching google most of the day and cant seem to find an answer.
Thanks
Tony
I believe there is a better approach. Your user data should be saved to Azure blob storage, not uploaded to the web deployment location.
Here is a good getting started tutorial on using Azure storage: https://learn.microsoft.com/en-us/azure/storage/storage-dotnet-how-to-use-blobs
It is not recommended for user files to be stored in the same directory as the web site. Even if you simply load them into file storage on your VM, it should be in its own location.
There is Remove Additional Files at Destination option in Additional Deployment Options of Azure App Service Deploy step/task.
So If you check this option, it will delete additional files on AzureRM Web APP otherwise, it won’t delete additional files.

Download Azure web app?

I just opened a free Azure trial account and went through the various forms to create a test web app. I would like to edit the source files locally with Visual Studio 2015 however. Is it possible to download the files generated during sign-up, and if so, how? Thanks for any help!
You can download your project file using KUDU site: https://blogs.msdn.microsoft.com/benjaminperkins/2014/03/24/using-kudu-with-windows-azure-web-sites/
Select Debug console -> CMD
from there you can go inside site -> wwwroot and select download button to the left of any folder:
It will zip up all the files under that folder and start downloading.
Web apps are accessible via ftp, so you can download/upload individual files.
However: The idea is that you should be editing locally, then pushing your changes to your web app deployment, not pulling from. To facilitate this, not only do you have ftp, but you also have git/github,bitbucket, dropbox, etc. just look under your Publishing settings, for Deployment Source:
Ok I decided to just delete the app I created while signing up and re-create it from within Visual Studio; worked fine.
From azure console or kudo console , you can push using git to your azure devops repository or any repository
git init
git remote add <url>
git add .
git push origin master

Azure Deployed Web App Trying to Locate deployed files

I have a deployed web application on Azure that I seem to have lost local copied of the source files.
I'm logged onto Azure portal but can't seem to find any of the deployed files.
Anyone give me some pointers in where I should be looking to locate the deployed files.
The easiest thing to do would be to either connect via FTP to download all of your files or create a local Git repository and clone the site.
First thing you will need to do is reset your deployment credentials if you do not know what they are. You can do this by clicking on more commands on the web app info blade and then clicking "reset publish profile"
To connect via FTP use an ftp program such as FileZilla to connect and download.
To clone your files to a local Git repo, setup your web app for continuous deployment using the following button on the web app settings blade.
You can also find detailed instructions here: Continuous deployment using Git in Azure App Service
Both methods will let you acquire all your files that are published to the web app.
It's easy to download your files using the SCM site. Go to:
https://.scm.azurewebsites.net
and then click on CMD on the top bar.
Then you can download all of your site content in a zip. Note that the actual site content will be in the wwwroot folder in the directory "site".

Converted MVC app to Azure Cloud Service Project - cant get latest

I converted an MVC5 app to an Azure Cloud service project and it created the Azure project (used this page for instructions http://msdn.microsoft.com/en-us/library/azure/hh420322.aspx#ProjectTemplates
)
I checked in the newly added project to TFS by right-clicking the project and selecting Check-in. When I tried to get latest from another dev machine, the Azure project does not show up in the solution explorer. What am I missing? Does each dev machine need to create the Azure project independently? I can see the files in TFS and they were copied down to my local drive, but the project doesn't show up under the solution.
thanks,
Andy
You need to checkin the changes to the sln file also, and ensure your workspace mapping includes the solution file.

Why can't Azure find my TFS project?

I'm trying to setup TFS publishing from within the Azure Management Portal.
After authorization, one is suppose to select a project. But all I get is:
Your TFS account has no projects
But my TFS account certainly has many projects, I can see them when logging in there.
What have I missed?
Oh, just found this.
Nothing you did wrong. Deploying from TFS's git repository to Windows
Azure is not yet supported. It is on our radar tentatively mid of
this year.
The reason seems to be that my project(s) are Git repositories. (Not TFS repositories)
(turning a comment into an answer)
Until Azure supports web site deployments directly from TFService hosted Git repositories you can use an automated build to do the deployment.
Details on how are at http://www.richard-banks.org/2013/08/how-to-deploy-azure-website-from-git_21.html

Resources