Deploy .NET web application on AWS using ElasticBeastalk - iis

I have a web application that is to be hosted on AWS using ElasticBeanstalk. There are two options supported for deployment: Web Website or Web Application. In my case, I am trying to deploy a web application on Windows Server environment. I suppose this deployment eventually ends up in IIS within the Windows operating system.
The problem is, "IIS" is not listed as an option when I select "Web Application" on AWS ElasticBeanstalk console. Is this the right approach?
EDIT:
The description of both is described here:
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/concepts.concepts.architecture.html

You need to create a 'New Application' and then a 'New Environment'. When you are creating a new environment, under 'Environment Type' the option is there to select IIS, see screen grab below:

Related

TFS 2018 Release Management to IIS

I am setting up a release for the first time in 2018 Release Management. We have a website that we want deployed to IIS.
The build definition is setup and has created the artifacts. When I setup the release definition I select the IIS Website Deployment template which gives me two tasks.
IIS Web App Manage
IIS Web App Deploy
They seem to cover similar ground, but I cannot find documentation to tell me how they are different. Do I need both?
When I configure IIS Web App Deploy, the Website Name field is grayed out. The link icon tells me
This setting is linked to the 'Website name' (Parameters.WebsiteName)
process parameter.
So I created the process parameter in the release definition and the build definition with a different name. However the Website Name does not update. Is there a way to manually edit this field?
In short:
IIS Web App Manage
This task does provisioning, for example creating an IIS Web Site and Application Pool. Typically this is only needed the first time deploying to a target machine, but there is no harm in running it on every deploy, since it then just skips creating already existing items.
IIS Web App Deploy
This task deploys your code.
You need to create a Deployment Group before using the IIS Website Deployment template. Deployment groups in VSTS/TFS make it easier to organize the servers that you want to use to host your app. A deployment group is a collection of machines with a VSTS/TFS agent on each of them. Each machine interacts with VSTS/TFS to coordinate deployment of your app.
Useful link and blog for your reference:
https://learn.microsoft.com/en-us/vsts/build-release/archive/apps/aspnet/aspnet-from-vsts-to-windows-vm?view=vsts
https://abelsquidhead.com/index.php/2017/11/28/build-and-deploy-to-multiple-iis-servers-and-sql-server-using-vsts/
If you don't want to use this template, you could also try other extensions, such as IIS Web App Deployment Using WinRM.
Both tasks are needed. The website name is set on the Environment level then referenced in all of the tasks within.

How can a node.js app be deployed to azure via appveyor (pulled from github)?

I currently have a .net and an angular app, both deployed to azure via appveyor. Now I want to add a node.js app, also in a github repo, also to be deployed via appveyor and into azure.
However I have no idea where to start.
What kind of azure app should I create? Just the standard web app service?
How do I deploy this to azure via appveyor?
What kind of azure app should I create? Just the standard web app
service?
At first, I could share Azure App Service plan and when we selected one of them with you. Please refer to this document(https://azure.microsoft.com/en-us/documentation/articles/azure-web-sites-web-hosting-plans-in-depth-overview/ ). Then, for selecting which one service plan, it depended on the site load and requirements. It is not relation to deployment channel.
How do I deploy this to azure via appveyor?
You can try to follow this guide Deploying using Web Deploy, mark Package Web Applications for Web Deploy check box in the settings=>build tab of your project in appveyor.
Then login Azure Management Portal and download publish profile.Specify the following deployment settings in AppVeyor:
Server: https://<publishUrl>/msdeploy.axd?site=<msdeploySite>
Website name: <msdeploySite>
Username: <userName>
Password: <userPWD>
NTLM: disabled
Replace <publishUrl>, <msdeploySite>, <userName> and <userPWD> with values from downloaded publishing profile XML file, in the deployment tab.

Azure Web App of nodejs application loads blank screen after deployment

I'm trying to learn to use the azure web app services to deploy a MEAN stack application.
I connected Web App deployments to a git repo and clicked deploy, which it appears to have done successfully.
When I load the webapp url in a browser, its a blank white screen.
How do I troubleshoot this scenario?
You should check if the correct ports are opened.
Good luck!
There are various steps for debugging Node.js web apps on Azure Web Apps here:
https://azure.microsoft.com/en-us/documentation/articles/web-sites-nodejs-debug/
Start off by enabling logging in your IISNode.yml file by setting loggingEnabled: true and devErrorsEnabled: true and seeing what the logs say.
I usually use KUDU to debug Node.js application on Azure Web Site (currently named Web Apps). I doubted this might because the root directory was incorrect, i.e. your website should be started under ~/your_project/app but in Azure it was launched under ~/your_project.
Here is a doc for KUDU. http://blogs.msdn.com/b/benjaminperkins/archive/2014/03/24/using-kudu-with-windows-azure-web-sites.aspx

powershell website automatic deployment

We are using TeamCity for builds and Octopus for deployment. Octopus uses Deploy.ps1 powershell script for MVC website deployment to IIS.
I am looking for a powershell that can
check if website exists and if not create one
check if appPool exists and if not create one
check if webapplication exists and if not create one with appPool from step2.
Any useful links that show how this deployment can be automated?
Thanks
I think this information might be useful for you.
The IIS Website and Application Pool feature in Octopus allows for a large number of options to be configured during deployment.
..
Web Site
If enabled, Tentacle will use use the PowerShell Web Administration module to attempt to create or modify an IIS Web Site and Application Pool using the settings below.
http://docs.octopusdeploy.com/display/OD/IIS+Websites+and+Application+Pools

What is the best way to deploy NopCommerce 3.0 to Windows Azure using a Web Role?

I need to deploy a NopCommerce application on Windows Azure using Web Role. I created the Cloud project and added Nop.Web to Web Role, but it doesnt work! Thx
The blogpost I've written here - Hosting nopCommerce on Windows Azure Web Sites with Automatic Source Control Deployment - might give you some inspiration. :)

Resources