Moving to SSL / HTTPS-PART 4

“We deprecated the hosted XAML build controller on July 1st 2017. We recommend that you migrate to our new build system. However if you still need to run XAML builds during the migration then you must set up a private XAML build controller now”.

Yes yes. I forgot to upgrade. Lets move on.

So in order to do publish, we just need to login to our visualstudio.com account and go to the project that we need to publish.

There is a tab called Build and Release, and there should be an Azure web app template.

A

Once applied, you need to first choose which Solution to build and deploy, kinda like WEBDEPLOY before.

B

Then we need to link our azure account and then choose which app service to deploy on.

C

The link happens when you authorize your visual studio by logging in to your azure account. Note that this is a pop-up.

D

Then click refresh if you dont see your app service on drop-down.

E

Then viola, you can now save or save and then already queue for deployment.

G

This should queue up and warm up an available agent again, like WEBDEPLOY before.

H

Once the Agent fires-up the deployment, you will notice that the scripting engine and console is going to be shown and you will see the progress of this.

I

Aha! You are still using WEBDEPLOY! Long live web deploy!

J

NOOOOOOO! Okay, new Relic is giving me a bump. Like the old WEBDEPLOY, file is in used so therefore you cant override and your deployment task will fail.

K

As I remember, its just as easy as:

<EnableMSDeployAppOffline>true</EnableMSDeployAppOffline>

Or we could just easily do a slot deployment and switch slots after . I just remembered that I am on B1 tier in Azure. There is no slot deployment for that! Great.

I remembered, this is my PERSONAL site, no one visits this or any use of this. Lets just stop the site.

So lets do this, lets insert two deployment task in the build definition. One to stop and one to start, effectively a sandwich before and after deployment. So add an Azure App Service Manager task.

L

The first one, stop the App Service. You know which subscription and app service to stop.

M

After the Azure Service Deployment task, we should start the service.

N

Lets try it out, save the build definition and queue build!

O

Aha! Stop worked!

Q

Publishing.. Yes!

R

Build says its okay and was deployed successfully.

image

This got me thinking, we are really in the cloud already and from requesting certificates to installation, scaling my application and even a source code rebuild-test-deploy that I haven’t touched not a single MMC or any server directly.

Advertisements

Published by

johndelizo

John is currently creating digital assets that protects people and their future, a technical trainer and a full time geek specializing on development and deployment of innovations created with .NET framework on Windows platform as well as Windows infrastructure projects. He is the primary contact of the Philippine Windows Users Group, a contributor at the Microsoft Philippines Community forums and regularly conducts community sessions as well as other Microsoft technology events. John owns the Busy Saving The World Techblog.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s