I have a web application that is running on my localhost and i want to use azure app service or azure vm to launch it online. which is the best choice?
Solution to host webapplication
There are ways to deploy your application to Azure Cloud.
Method 1 : Azure App Service is fully managed platform for deploying application and scaling apps. it has built-in web hosting feature and supports multiple languages and frameworks.
Please follow the steps to deploy application to App Service.
1.Create sample web application using Visual Studio application.
Create a new project
Right click on created application and choose Publish
Note: Before publish application to Azure, login to visual studio with Azure Account.
Select target-Azure Cloud.
5.Select target platform windows or Linux.
Click on App Service (Windows) > Create new (window)" in App Service (Windows) >Create new.
Select your subscription, resource group & hosting plan.
Check the Application deployment status in visual studio account.
9.Test the application with Azure App service URL once deploy the application to Azure app service.
Go to Azure Portal > Azure App Service > overview > Url.
Application working with App service Url
Method 2: Azure VM
To deploy an application in an Azure VM with IIS, you can follow below steps:
Create an Azure VM with required configuration such as the operating system and size.
Azure Portal > Create > Select Server OS.
2.Use RDP to connect to the Azure VM.
You can use FTP to upload your code to the Azure VM.
Now, open the IIS Manager and create a new website in that IIS.
After that, you can configure the website to point to the location of your application code on the VM.
Finally, test your application.
Related
An Azure App Service Web API using .NET Core was successfully deployed using the Visual Studio 2017 Publish function but now the URL needs to change. How can I do that?
You could map custom DNS name to Azure App Service
Go to the App Service blade.
On the blade, find the Custom domains or bind the SSL settings.
Then you could follow the Tutorial: Map an existing custom DNS name to Azure App Service and the Tutorial: Bind an existing custom SSL certificate to Azure App Service.
As both API Apps and Web Apps share the same underlying infrastructure.
Hope it helps.
I have successfully deployed my site into Azure Cloud Services. I would like to see the deployed files in azure portal now. Where I can see these files ? For Azure Web App I can see it from Kudu(mysite.scm.azurewebservices.net).
But how for azure Cloud services ?
There is no exact way you can access files just like web apps via Kudu Console. In order to access Cloud service files, you can enable a Remote Desktop connection in your role during development by including the Remote Desktop modules in your service definition or you can choose to enable Remote Desktop through the Remote Desktop Extension.
For more details, refer to Enable Remote Desktop Connection for a Role in Azure Cloud Services.
I would like to see the deployed files in azure portal now
As far as I know it is not supported by azure portal now. Azure cloud services allow us to remote the could services role, so we could remote the service to get the deployed files. About how to remote the cloud services role please refer to the azure document. We could see the published website under the IIS and we could get the physical path of files on the azure.
More details please refer to the screenshot.
The Architecture Design of Cloud service is different then App Service. Cloud Service is hosted on its own dedicated environment. Cloud Service is NOT hosted on Shared Server like App Service.
When you create package for the Cloud Service. it contains all information of it's roles, Size of roles, number of instances per role and what files needs to be hosted on that role. ( Other information also).
if you have multiple roles in your cloud service. there will be dedicated VM for each instance of the Role. so your files will be placed on each role of that VM.
if you want to change any file from the deployment, you need to change it on all instances.
Remember that if you restart the Cloud Service or Role all changes made in the file will be lost. Cloud Service will restore the old files. ( files at the time of deployment).
you can enable the remote login for roles and check the files.
How to Enable remote desktop for Cloud Service?
if you want to know more about cloud Service check : http://avipatils.blogspot.in/
I have an ASP.NET Web API Self-host console application and I want to publish it as a Azure Webjob service. Is it possible, is it advisable?.
I'm using Topshelf to install it as a windows service on my local server.
I haven't a web application only the console application.
In a Webjob, no. See Azure App Service sandbox limitations here - assuming you need to listen for inbound requests on a socket.
Installing stuff (think .msi or writing to registry) is also not supported.
Look at Cloud Services (Worker Role), Service Fabric or IaaS VMs.
They're all options.
EDIT (sometime in 2017):
Now there's even more option: Docker containers in Azure App Service Linux, Azure Container Service (DC/OS, Swarm or Kubernetes as orchestrator) or Azure Container Instance.
I am running a .NET website web app (App Service) and a separate windows Azure VM running onprem AD Domain controller.There is no connection between onprem AD with Azure AD.I want to access windows VM Active directory (Azure VM) objects under my WebApp/website. Is this possible to access Azure VM Active directory objects through my website ( web app) ? And if yes please suggest the secured way.
Thanks
Consider to use Azure Virtual Network to put your resources (Web App included) into the one virtual network. Then you should be able to query what you need. Tutorial. Or Web Apps Hybrid Connections.
How to create publishing profile for a website running on azure virtual machine?
I know how to do it for Azure Web Site, but can this be done if I have IIS running on a VM in azure?
I also have a console application running using task scheduler on this VM, it would be nice to automate that deployment too.
( After working with Rails and Php frameworks, I miss the common config file used by the website and CronJob to connect to the DB)
You need to set up Webdeploy in the azure VM. it is same as an on-premises server.
Web Deploy Installation.. You need to install prerequisites - .net framework.
Configuring IIS 7 with webdeploy / Or with IIS8
Set up endpoints on azure vm to do webdeploy. Port 8172 for Webdeploy.
Then you can create a publish profile in Visual Studio 2012/13 to deploy to this endpoint.
http://msdn.microsoft.com/en-us/library/dd465337(v=vs.110).aspx
or You can do it using Powershell scripts.
sample-
http://gallery.technet.microsoft.com/scriptcenter/Deploy-a-Web-App-to-Two-99f1a3bc