In my local IIS server, i have created a IIS website and deployed 3 ASP.NET web application such that they will have URL like
IIS URL/webapp1 , IIS URL/webapp2 , IIS URL/webapp3 and it works like charm. I am able to deploy only one web application in Azure webapp and not others.
Can i deploy more than one web application in one Azure web app ? If yes, then how ?
My solution is described below. First create a sample AzureWebsite -
Setup up an additional application in the AzureWebsite as follows. Navigate to Configuration tab and create an application as shown below –
By creating above application we reserved / to MVC site and then /webapi to webapi endpoints.
Lets say you want to publish MVC and Web API projects from VS Solution as shown below.
Download publishsettings file of above created AzureWebsite. Import the publishsettings file to the Visual studio MVC project (right click the project and select publish) as shown below -
Similarly publish the WebApi project by importing the same publishsettings file. But we need to change the Destination URL and Site name to the newly created application details. Please check below screenshot –
Publish both the projects.
Now navigate to http://ramidev1.azurewebsites.net for the MVC site. And navigate to http://ramidev1.azurewebsites.net/webapi/api for WebApi endpoints.
Yes, you can do that with virtual directory.
Quote from Add virtual directory to existing website on Azure
Virtual Directories are supported for Azure Websites. See Configuring
Azure Websites for what you can do through the Azure Management
Portal. From the Azure Portal, click on the Website and go to
Configure, then scroll down to virtual applications and directories
(the last config section). Just enter your virtual directory and the
physical path relative to the site root and click Save.
Related
I published one project from visual studio in one of the app service that I existed in my azure account. Now, I want to check that project in the app service on the azure portal. How to verify that if that project exists (web app) in app service.
Presumably simply by accessing the website - if your intended project loads in your browser then it must be there.
But you can view the raw files that make-up an Azure App Service by going:
portal.azure.com
Left-hand sidebar > App Services
Click on your website
Scroll down the App Service "blade"'s left-hand menu to Development Tools > Advanced Tools (icon is a blue swiss-army knife)
A link will appear on the right pane that says "Go 🢂"
This will open Kudu, the web address will be of the form https://{appServiceName}.scm.azurewebsites.net
In the top navigation bar, choose Debug Console > CMD (or PowerShell, depending on your preference)
The filesystem in an Azure Website is virtualised and segregated on the D:\ volume.
Navigate to D:\home\site\wwwroot. This is the root of your website. Your Web Deploy files will be located under there, varying based on your Web Deploy configuration.
Here are some helpful articles for further reading about Kudu:
https://azure.microsoft.com/en-us/resources/videos/what-is-kudu-with-david-ebbo/
https://blogs.msdn.microsoft.com/benjaminperkins/2014/03/24/using-kudu-with-windows-azure-web-sites/
https://github.com/projectkudu/kudu
I Used Azure Website Migration Assistance to migrate my web service that was running on my Local VM's IIS. My Migration process was successful and also I was able to use this web service. But I can't find where to find the migrated source code in azure portal. All I can see is some 20Mb of data in on the dashboard graph of azure portal. If I need to changed some of my code where to do this?
What is on the Azure Web App should now match what was on your IIS server. Now, to update the web app, you can use the deployment techniques here: https://azure.microsoft.com/en-us/documentation/articles/web-sites-deploy/
The simplest method to deploy to check what content is on your web app would be to use the SCM site. This is available at: https://your-site-name.scm.azurewebsites.net. Go to Debug Console > CMD and then the site > wwwroot folder to see your web app content. You can also upload to the site via drag and drop.
Alternatively, you can download the publishing settings for your web app via the portal and then re-use the migration tool, select the site, and then upload the publishing settings. However I would suggest using the deployment techniques above first. (Disclaimer: I wrote the migration tool.)
There are multiple ways to push changes to your Azure Website/Web App. They are listed here: https://azure.microsoft.com/en-us/documentation/articles/web-sites-deploy/
One simple way is to use an FTP client like FileZilla. In the classic portal, you will find the FTP address (hostname) and the credentials in the dashboard tab. In the new portal, select your Web App and the FTP address will be displayed in the Essentials section at the top of the page. Click on Settings and Deployment credentials to set your FTP user password.
Another simple alternative is to use Dropbox. Take a look at this video for how to set instructions: https://channel9.msdn.com/Series/Windows-Azure-Web-Sites-Tutorials/Dropbox-Deployment-to-Windows-Azure-Web-Sites
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 am an azure customer, however when I log into the azure portal I see the old azure portal interface without anyway of upgrading or updating it. I want to download my publish settings to use in webmatrix to upload node.js website.
How do I get the publish settings for my azure website using the old portal interface?
I have tried using powershell cmdlet Get-AzurePublishSettingsFile however when I instructed webmatrix to use the downloaded publish settings file I got an error from webmatrix saying there was an error with the publish settings file.
Is there any other way to upload my webmatrix node.js website to my windows azure website ?
To access the new (preview) portal you have to use https://manage.windowsazure.com/ instead of https://windows.azure.com/. This will allow you to access your web sites and download the publish profile (in the dashboard of your website, under quick glance).
Cloud Services are different than Windows Azure Web Sites. At the bottom of the new portal there will be a "+ New" button, when you click it you should get the attached view. That is where you create a website. It will then have a location to download publish settings from the dashboard. That is the publish setting which can be imported into WebMatrix to deploy your node.js site to Azure. Hope this helps.
-Vishal R. Joshi | http://vishalrjoshi.com | #vishalrjoshi
I have two VS 2010 projects. The 1st is an existing WEB Site while the 2nd is Web project. Should I select b) and ask for Publish I do have the option for Web Deploy to an Azure Web Role Accelerator service and it works fine.
But, I am not able to do the same for the 1st. There is no Publish option in the corresponding context menu, just "Publish Web Site ..." which is the old known one. I do not have the option to web deploy the site.
How can I do it?
Thanks in advance,
You can't publish a web site to Azure directly. Take a look at this for how to convert the site to an application:
http://msdn.microsoft.com/en-us/library/aa983476.aspx
If you really need to publish a web site, you can try:
http://www.davidaiken.com/2010/07/14/how-to-deploy-an-asp-net-web-site-to-windows-azure/