[MUSIC]
>> In the previous episode,
you learned how to connect to Azure database for
MySQL flexible server from your applications.
Now, we will learn how to integrate
and deploy these applications on Azure services,
and we'll start with App Service.
The first demo we will look at
is deploying a WordPress application
on Azure App Service for Linux and
integrating with MySQL flexible server in the back-end.
I'll show you how easy it is,
how simplified this experience is,
and how quickly you can get it set up.
In the portal, search for WordPress in
the Azure Marketplace and just simply click on "Create."
Apart from filling the project details like subscription,
resource group and the region that is closest to you,
there are very few other details
that you actually need to fill in.
You may need to fill in a Web App name,
and the operating system we'll choose Linux
and then select the hosting plan
based on the workload of your project.
For example, basic for hobbies,
development, standard, premium, etc.
We'll choose development for now,
and then you need to just fill in
the WordPress settings for email, username, and password.
You will need this username and password later
on while logging into WordPress.
So let's click on "Review + Create".
A WordPress will be deployed on by
Azure Web App and integrating
with MySQL flexible server in the back-end for you.
We'll be provisioning a B1ms flexible server
in the South Central region and you have the server name,
database name randomized for
you and the username and password can be
later fetched from the application settings section
of the Web App.
Click on "Create" and it's as simple as that.
Now that the resource has been deployed,
let's go to the resource and check it out.
Let's look at the "Configuration" section
and the "Applications" settings underneath it.
You can go ahead and verify all the application settings,
database, host, name, password,
username, and even WordPress admin user,
admin password, title, etc., will be visible right here.
Let's go ahead and go to "Browse" to
see the application itself. There you go.
To edit it, just go to "WP Admin",
log in with the username or
the email address that you provided earlier
and the password, and here you go.
Go to "Customize Your Site" to make
changes to your application and get it ready for production.
That concludes the WordPress demo.
But if you want to deploy
your own custom application on top
of Web App along with database,
secure a [inaudible] then
Web App + Database integration resource
is one of the best things that you can check out.
In the Azure Portal, search the marketplace for
Web App + Database and click on "Create."
The experience is somewhat similar to that of WordPress.
Select subscription, resource group, region closest to you,
put in a Web App name, and then select the runtime stack.
For example, maybe PHP, PHP 8.0.
You can just scroll down and choose the right stack for you.
We will recommend the right database engine
that goes well with that stack.
Here, we have the server name also already created for
you and all you need to do is click on "Review + Create".
A Web App and a database will be created in Linux and
a virtual network link will also be created
for you so that the Web App can talk to the database.
All the settings, all the configurations already done for
you and you should be good to go as soon as you click on "Create".
Let's go to the "Resource" and check out the configuration.
The database details are
already there in the connection string section.
Now, to deploy your application on to this Web App,
let's go to "Deployment Center" and choose the code source.
It could be a manual deployment through a Git Push,
or you can also set up CI/CD through GitHub,
Bitbucket, Local Git, or Azure Repos.
Just choose one of them and you should be good to go.
So that concludes our second demo as well.
We hope this was useful for you to get started with integrating
app services and Azure Database for
MySQL Flexible Server. See you in the next episode.
[MUSIC]