Let's go ahead and create a new instance of an Azure Website.
I'm going to click on New in the command bar,
Compute > Website, and we'll just do a Quick Create.
So in this example, we're going to have a
pretend university site, so I'm just going to say Univ.
It's going to go out on the web, and look to
see if a DNS entry is available for that URL.
You can see it is. So univ.azurewebsites.net.
And then I'm going to
put this in the West US region, and say Create Website.
Now one of the really great things about Azure Websites is the
ability to use the gallery which will give us some web apps.
So we're going to open up this gallery, and you'll
see I have all sorts of things in here.
Everything from App Frameworks and Blogs to Tools and Galleries and Wikis.
Let's go ahead and click Blogs, and maybe
in this scenario we want to create a WordPress
blog for a university, so we'll come down here, and I'll click WordPress.
You'll see it's currently version 3.5.1.
I'm going to hit Next. And we're going to call this univblog.
And that's available.
And you'll notice the database that WordPress is going to run off of is MySQL.
And as Azure's already detected that we have an existing MySQL Database.
If you recall earlier in this course, we installed
on MySQL Database from ClearDB, right from the Azure store.
Anything from the Azure store is fully integrated.
So you're going to see that throughout Azure.
Any time we go ahead and purchase
something, it's just going to seamlessly integrate.
Show up in any of our drop downs
and then automatically authenticate with our existing account.
So, I'm going to say, go ahead and use
that existing MySQL Database, we'll run it in West US.
You'll see it's immediately picked up the name
of that database.
I'm just going to go ahead and agree to the licence agreement.
And then click Complete.
Now it looks like our University Website is all ready.
So we're going to go ahead and click on the URL link.
And we're on the internet.
We're magically in just a couple of minutes here
we've got a DNS entry and we're serving up requests.
And in fact if I hit Refresh a couple times here, and
I hit tell me more, you'll see it's a fully functioning website.
So what we'll do here is we'll click on univ.
We'll go over to dashboard, and you'll see those
requests that we just generated are automatically showing up.
This is a really great way to get
real time traffic of what's happening on your website.
In fact my blog, I use the WordPress Gallery App, hosted on Type of Azure,
and I can see when I go ahead and post blog posts, the real time traffic here.
You can get CPU Time, Data In, Data Out, you can get your
server errors as well as any type of HTTP requests that are coming across.
If I scroll down, you'll see I get usage
overview, so this is everything that's available in my tier.
So for the current free tier, this is my CPU Time for every five minutes,
my CPU Time for every hour of the day. And you'll also see I have File Storage
as well as Memory Usage, and data out.
So I'm getting real time stats on how close I am to hit that.
You'll also notice over here that I've got FTP information, as well as my site URL.
So what we want to do, is we want to be able to deploy
through a FTP client, all of the files to our new websites.
So, we're going to come up here to reset your deployment credentials.
And let's go ahead and give it a new name.
We'll call
it univadmin, and we'll pick a password. And we'll hit this checkbox.
Our deployment credentials are now all set.
And if we scroll down, you'll see we get
FTP hostname, so I'm going to right-click on that and Copy.
And we're going to open our FTP client.
I've chosen to use an open source client called Filezilla.
You should feel free to use whatever type of FTP client you feel comfortable with.
And we'll say univ admin, and we're going to hit Quick Connect.
Now, the first time you go thought this, you
may see a similar error that's easy to miss.
The FTP user is actually also underneath the deployment name.
So we need to put in here univ\univ admin.
So, don't rack your brain if you're
having problems connecting to the FTP server there.
That's a common error when
it comes to deployment.
So we're going to go ahead and put that in, and connect.
And you'll see, I now have full access to my site.
So I'm going to going to come over here to the wwwroot.
Let's go ahead and maximize this window. And then on my desktop,
I'm going to go ahead and pull these HTML website files I've already have generated.
We're going to drag them over, and upload them to our Azure website.
It looks
like everything's been deployed, We can now
go over, Internet Explorer, hit that site URL.
And you'll notice my entire academy is there.
So I have a fully functioning website.
I've just deployed through FTP, and now all of that is running in Azure.
Pretty exciting stuff. Now what about our blog?
So if we go ahead and click univblog, you'll
see we get the same kind of great stats.
But we also now have
the linked resource, so this our MySQL Database that's running WordPress.
If we click on it, you'll see all of our information.
Currently it's not reporting that back yet, but it will in just little bit.
Where we can get stats on the size of that database, as well
as upgrading that WordPress blog to have more space inside that MySQL Database.
Let's go ahead and hit the site URL.
Now you'll see we've got our full WordPress blog set up.
So maybe we want to call this University Blog.
Username is admin.
We're going to go ahead and enter my e-mail.
And we'll say, install WordPress. We're at the WordPress log in prompt.
Let me go ahead and log in.
And you'll see, I'm immediately taken to the WordPress Dashboard.
So if you've used WordPress before, this should seem very familiar.
And it was just a one click to set up this website.
So in fact,
I can come over here to Settings, Tools, Users, Plugins, Appearance, Themes.
We can even install additional WordPress themes.
So maybe we want to install this one,
let's say Activate, the new theme is activated.
And now our blog is live on the internet with our WordPress theme.
If I come back over here, and we refresh all of this.
You'll see all of the traffic to our blog is now available.
So, within a few clicks through Azure websites, we've
got both our university website, and our university WordPress blog.
And we have everything available that we need to monitor and scale this up.
In the next section I'm going to how you how to set that
to be auto scalable, as well
as set different configurations for your websites.