>> Learn how to run App Service on Arc-enabled Kubernetes
in this episode of Azure Tips and Tricks.
In this second of three videos,
we'll use an Azure Arc-enabled server,
which is an on-premises computer to run
a Kubernetes cluster and connect that to Azure Arc.
Before you can do that,
your Arc-enabled machine needs to
adhere to the following requirements.
My machine has everything that is needed
and is running a local Kubernetes cluster.
Here we are. This is my local machine
that is already onboarded to Azure Arc,
and in this command line,
I'll first login to Azure like this.
This opens a browser,
and once I've logged in, it is done.
Next, I'll create a resource group
with this command. Okay, that's it.
Let's clear this up, and now I use this command
to connect my local Kubernetes
to Azure Arc with the resource group.
There it goes, and that's it.
Let's take a look in the Azure portal.
This is the Azure Arc overview,
and here are the connected Kubernetes clusters.
There it is. Cool. I can now manage the cluster from Azure.
I have lots of options like setting policies for the cluster,
configuring GitHubs, and also monitoring. Let's see.
I can see the performance of the cluster and I can also look
at its nodes and drill down into them. Very cool.
Alright, let's do something special.
I'll go to extensions and add one here.
I can use the Kubernetes cluster that runs
on my local machine as compute to run
other services like API management
or an App Service web app or function.
Let's do that. I'll add the App Service extension.
Here it goes. Let's see.
First, I'll give the extension a name like this.
I don't need autoscaling,
but you can use that.
Here I need to create a new custom location.
This is a virtual construct that users use to deploy things to.
Next, I need to add a publicly available IP address.
This should be the public address
of your local Kubernetes cluster.
Next, I'll leave monitoring disabled,
and next, this looks fine.
Next, and this is the script that I need.
I'll copy it and switch to my local machine.
Here it is, and this is an elevated PowerShell prompt.
Now I just paste the script.
This prompts me to login to Azure.
That's it. This will take awhile,
so I'll skip to when it is done. Alright.
Now for the next bit,
I'll create a web app in the App Service instance.
First, some parameters to make things easy, and I'll
get the ID of the custom location that we've created earlier,
and now to create the App Service Plan.
This is just like creating a normal App Service Plan,
only in a custom location.
That is all that is needed to deploy
to the Arc-enabled Kubernetes App Service.
Let's clear this, and now for the web app itself.
There it goes, and I'll skip ahead.
Now that I have a web app,
I'll deploy a sample app to it from this GitHub repo. That's it.
Let's create a zip file from it and okay,
and now deploy it to the web app,
and that should be it.
Let's go back to the Azure portal.
Here we are. Let's look at the App Services.
Cool. There it is,
just like a normal App Service. Let's see.
It has almost all the features that other app services have,
and I'll take a look at the URL.
That's it. This is the sample application.
Very cool. Azure Arc can use
an Arc-enabled Kubernetes cluster as compute for
services like App Service web apps and functions.
In the next video,
we'll connect a SQL Server to Azure Arc.
Go and check it out.