In this video walk through the actual government paas sample.
This sample consists
of web application running in azure government integrated with as azure active directory
...writing to...cosmos database, storage queue
...and redis cache
Let's start with...as...active directory authentication for our web application.
This is a web application...we have already deployed...first screen that we see
...a log into microsoft online.us screen.
...we have...as you active directory authentication correctly.
Now let's navigated the azure portal.
To incorporate
as you're active directory authentication into our app we need to first register app
...as you're active directory tenant click on app registrations here we can see all of the
app registrations we have already configured...to create a new
and click on this new application registration
refill these fields for the named signon url and click create.
For the purpose of this video we will look at an app registration we
...already configured for the sample.
Here we can see the properties of our app registration name as
well as application id now let's take a look at a reply url as we can see
this is the same url as a web application with...signin-dash oidc
...see at the end by setting this replied url we
are able to redirect our users of...web application to the...login page.
Now we have navigated to...the code for our web application.
This is the exact place in the code where we have integrated as
your active directory application as you can see from these configuration values in
these are the same values are we saw in our...aad registration in the portal.
Now we have navigate back to our web application. Let's sign in.
Our traffic case repository is a simple crud
...application that is by into cosmos database. Let's navigate back to the
...portal. this is the cosmos database...our application is writing to
In our data explorer we can see that under the collection that our application is writing
...cases too there are no documents so let's go back to our application and create a case
Now that we have gone through and build our case you can click create...
What this is doing is writing that case as
a document to our database so now let's go back and check?
Here we can see the case
...are just file has been written as a document to our cosmos database.
Now we have navigated back to our code for application in our traffic case
repository class...all the methods where we are filing...editing cases.
If we take a look at our create case method we can see right here this is
exactly line of code where...writing to our cosmos database now let's look at how we are integrated
...storage queue. you when we create for edit
...or create case for the status closed it will bind this case to storage queue.
We can then see which cases are closed on this page as we can see this pages
and d as none of the cases have the status closed.
Now let's take a look at our storage explorer this is the microsoft
...storage explorer which is a great tool that allows us
to easily look at our storage accounts and queue so this is the exact queue though we are writing
too right now with our web application and as we can see this queue is currently empty now
let's see this
...navigate back to our web application...and this case.
If we change the status to closed...
We should now be able to see this case in our close cases list if we had
...storage explore me...refresh you can see that we have now written this message to the
queue. this is the same case that we change the status to close just before.
We've navigating back to the portal...take a look at redis cache
...click console, console as a great tool that allows us to directly...run commands
So, let's run...
This one sure that we have flush out all...keys...have already been stored on the cash.
If we...keys you can see that we
have nothing stored in this cache now let's navigate back to our...application just refreshing
...this page we were rewriting the keys to the cache.
We can now see that we have written the status to the cache for our list to
...populate from.
We have...back to our web application in the portal
is very easy to configure and modify your app service if you are
handle more traffic you can always scale your application and, change pricing here.
You can also review...for apps service plan.
Lastly there's also many development tools available such
as the console which allows you to directly interact with...the application.
In this video we have shown you how to integrate various
task services for the web application we have...recommend that you navigate to this
...github repository where we have
...documentation on how to get up and running on your local machine.