I want to copy an existing "Share" Mode "Dev" Website to another "Test" "Share" Mode Website. Is this possible? I know one can do this with SQL Azure DBs using a T-SQL command.
At the moment I:
1) Create new Website.
2) FTP across Dev Azure Website to Test Azure Website. This is fine, but seems longwinded from a network perspective.
Thanks in advance.
depends on what you want to do, but have you looked at using the Staging slot instead of creating a new website? http://www.windowsazure.com/en-us/documentation/articles/web-sites-staged-publishing/
I just came across a nice little feature:
Create a new website
On "Configure"-tab: Enable "Edit in Visual Studio Online"
On your existing site
Enable "Edit in Visual Studio Online" (if not already enabled)
Click "Edit in Visual Studio Online" on "Dashboard"-tab
Click "..." in Explorer and choose "Download workspace"
Save the file to your desktop
On your new site
Click "Edit in Visual Studio Online" on "Dashboard"-tab
Delete "hostingstart.html"
Drag-n-drop your "wwwroot.zip" file into the explorer
Click the little icon at the very right
Await magic!
All your files are now copied to the new site
Remember to delete "wwwroot.zip"
For those looking to create a copy, not a deployment slot, it is now possible.
You can clone a web app though the azure portal, if you temporarily upgrade to a premium app service. Image of where to find web app copy
You can also copy an entire App Service though power shell https://learn.microsoft.com/en-us/azure/app-service/app-service-web-app-cloning
I just used this https://github.com/SunBuild/azure-clone-webapps. It worked great, was fast and simple. Much better and more sustainable than paying Microsoft crazy amounts for this relatively simple task.
Related
I was previously using Team Foundation services free account on the cloud with my Hotmail account. Now I am try to install TFS on a server computer. Everything worked fine. But then I noticed that I dont see the "Process" Menu option in my on Premise TFS account, while this shows up in the other account.
So, how can I enable "Process" menu option in my On Premise TFS web portal? So that I can configure the Work Item types and the process.
Below is my snapshot of my cloud account that does have the "Process" menu option.
While here is the image of On Premises account that has a very simple menu option.
The Process option menu only shows in Team Services (the cloud), there isn’t this option in On-Premises TFS web portal.
If you work in an on-premises TFS, and want to customize a process template,
you can download the zipped template file using the Process Template Manager. You'll need to use a version of Visual Studio that is at the same version level as TFS. You can install the latest version of Visual Studio Community for free.
Please see Upload or download a process template and Customize a process template for details.
To configure the Work Item types and the process please see Add or modify a work item type.
Is there a file "view" available in Azure?
When I log in to Azure to look at a website I've deployed there is no obvious see exactly what files Azure is hosting.
I can see there's the Visual Studio Online option which allows you to live edit your server code but that is more than I need. I just want to be able to check that certain files are deployed and others are not.
If you're just trying to look around, and see the various directories and files in your deployment, you can enter the site's "Kudu" dashboard, using the url format http://<yoursitename>.scm.azurewebsites.net
This will give you a web-based dashboard, including a debug console (web-based) where you can explore your various directories (and the directories will show up visually as well).
More info can be found in this post from the Azure Websites team.
In Visual Studio, in the window "Server Explorer" you click and connect on "Azure".
=> App Service
=> Your site name
=> Files
Here you see all your files and you can edit them directly in Visual Studio.
##### UPDATE 19/08/2019 #####
For some time now, it hasn't worked anymore.... :(
Here is another way to do it: By FTP !
From the Azure portal, in the "App Service" section of your website, go to "Deployment Center" > FTP > Dashboard
There is the FTPS Endpoint => ftp://.....ftp.azurewebsites.windows.net/site/wwwroot
And username, password information.
Install FileZilla Client! (https://filezilla-project.org/)
Enter Host with "FTPS Endpoint" the "username" and "password" and then login quickly!
You can use App Service Editor (previously known as Visual Studio Online). It can be found under your webapp -> Development Tools section in the Azure Portal.
I know this is old, but I just found it, and got some useful tips from it. If you are using an App Service, there is now a browser option to do this as well:
https://YourAppService.scm.azurewebsites.net/dev/wwwroot/
You can get there from the Azure portal, then go to your App service, then scroll down to Development Tools, and click on "App Service Editor".
In VS2017/2019, there's Cloud Explorer to view files in Azure, but each time open folder to view files will invoke connection to cloud, so you have to wait, that's a bit slow.
To open Cloud Explore, Right click on project > Publish > Manage in Cloud Explore, or Top Menu > View > Cloud Explorer.
Yes, you have many options to see that
By clicking Console option (run "dir" command, will list down all files)
By hitting App Service Editor(Preview) option,
Adding to the accepted answer,
you can open an ssh session by going to http://<yoursitename>.scm.azurewebsites.net/webssh/host.
For a long time, I've looked for a linux-style terminal to view my deployed files and environment variables. With this you can view the files, check and set environment variables, make db migrations directly, and a lot more. Hope this is useful.
That could be relevant: AppService->Console
You can use Visual Studio Code and the Azure extension
Since you are using Azure Websites, Azure wants to "manage" it for you, and as a result, you cannot connect to the VM itself. If you were using a Cloud Service, you can obtain the RDP information from the Azure Console and just remote into the machine.
For your situation, you can use FTP as an option. Here is blog that describes one approach:
http://blogs.msdn.com/b/avkashchauhan/archive/2012/06/19/windows-azure-website-uploading-downloading-files-over-ftp-and-collecting-diagnostics-logs.aspx
Here is another option using WebMatrix:
http://www.microsoft.com/web/post/how-to-edit-a-site-hosted-on-windows-azure-with-webmatrix
Does anyone know how to connect an MVC 5 application in Visual Studio 2013 to an Azure Access Control Service(ACS)? In Visual Studio 2012 it's possible to do this in Identity and Access Tool, but there is no such in Visual Studio 2013.
Thank you in advance for any help you can provide,
/Steve
Unfortunately, there's no way that I know of to add authentication to a VS2013 project after you've created it, but you can add it on project creation.
Create an ASP.NET project and then click "Change Authentication" when it prompts you to select a template.
You then want to choose "Organizational Accounts" and choose "On-Premises" from the drop-down menu. I know ACS isn't what you were normally think of as "on-premises" but that's what you want. Then enter your metadata document URL. You can leave the other spot blank or fill it in if you want. The metadata document URL is the FederationMetadata.xml file found in the ACS management portal under "Application integration."
Once you set that up, you may need to adjust your Web.config audience URLs to make everything match what you have in the Azure ACS.
Encountered the same problem. Was always returned back to "Configure Authentication". So I tried creating a new user in Azure Active Directory and made it a global administrator with the type New user in your organization. I tried the new user account and it worked. Hope this helps you also.
You can create the project in VS2013 as desired. Then open it in VS 2012 where you have access to the "Identity and Access Tool" extension (if you installed it). I tried this with VS2013 Asp.Net Web Application Template. You need to select "Enable web farm ready cookies" to make this work with Azure ACS. It would be better if this wizard worked in 2013 - but it does work this way.
I also found this post for doing it right in 2013
http://gauravmantri.com/2014/03/19/using-windows-azure-access-control-service-in-mvc-5-application-using-visual-studio-2013/. However the 2012 wizard is definitely easier.
Not sure if this could help but you may have a look at this:
Developing ASP.NET Apps with Windows Azure Active Directory
I enabled the Web Deploy feature for my Web Role and deployed it.
But how can I get hold of the .publishsettings file so I can create a Publishing Profile for it?
This 2 year old article states that it should have been created automatically, but I haven't got that in my profile manager.
Any ideas?
If you are using Visual Studio 2012 or greater, the server explorer to the left will have several Azure items.
Specifically the Windows Azure Compute is what we are looking for, right click on that and say 'add deployment environment'. You will then be prompted with a dialog that allows you to sign in and download publish settings file:
You can get publishsettings file from the following link: https://windows.azure.com/download/publishprofile.aspx
Well, the problem was really behind the keyboard.
So the publishing profile is actually provisioned correctly and automatically to the Web project as the documentation states.
The problem and confusion was that I have a secondary web application in my Solution that I also publish to the same Web Role (referenced as an additional Site in the ServiceDefinition.csdef file).
That Web Project does not get the Publishing Profile, and when I try to create a profile manually, it doesn't work since that (secondary) IIs instance is not configured for Web Deployment.
Oh well, back to the tedious Cloud Service deployment it is...
I have a single web project that I want deploy in Azure.
I want to create one IIS web site per country and I want to be able to deploy each web site independently (not all of them at a time). How to do this?
Well,
you have two options:
Use Windows Azure WebSites to host your websites
Use Windows Azure Accelerator for WebRoles or your own project similar to that approach.
However you have to note that the second option is a project that is no longer being supported due to avialability of Azure Websites. With Azure Websites, you can have almost everything you get with the Accelerator. You can host your websites on a dedicated instances, and manage them individually. You can update/deploy your website data via FTP/GIT/TFS/WebDeploy, whichever method you are most happy with. The only downside of websites which I see, is the lack of Startup Tasks and the ability to customize your environment (Windows, IIS settings, etc).
When you have set up your Azure account you can go the the web sites section and start the construction of your Azure web spaces, the interface in the preview is very straight forward to use and intuitive.
For deployment using the publish command in from Visual Studio 2012 (which I found the easiest) here are the steps you will need to undertake:
For each of your countries you will need to set up the web site
in azure.
Then for each of those web sites you have created go
to their dashboard page and download the publish profile settings.
It is these settings that you can import into you Visual Studio
solution by selecting the publish command and browsing for the
settings profile file you downloaded and importing it.
Then in future when
you right click on the web site in your solution and select publish
it will publish to your web site in Azure.
I have created a fictional website for Spain below is the link you will need in order to initiate a publish from Visual Studio.
------------ EDIT -------------
For Visual Studio 2010 I met some difficulties trying to publish, in fact the publish profile you can download was not importable to Visual Studio 2010, well at least I could not figure it out.
Instead I created a deployment user by clicking on the 'Reset Deployment Credentials' link on the Azure dashboard (see the link in the image), created the user and then published via FTP from Visual Studio 2010.
What I would like to flag up is the maintenance issue of having one site for each country rather than one site with Localization, (if it is a language issue). A small change multiplied just 20 times for 20 different countries becomes a larger task and if you have lots of little changes it soon becomes a large task to maintain them all.