Introduction to Azure for Developers

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
welcome to the introduction to Asher for developers webinar from op chilla t my name is Chris Pietschmann I am a senior cloud solution architect and trainer with AB Chile I'm also a Microsoft MVP with Azure I've mostly worked as a consultant over the last 15 plus years and have been building solutions on Azure in the cloud since the initial general availability although back in 2010 I'm now working at opportunity to help enable teams and our enterprises in the cloud so getting into Azure currently there are 34 Microsoft Azure regions globally online today with four or more additional regions that are coming in the near future Azra has the largest infrastructure footprints of any public cloud provider this gives you the ability to deploy workloads close to your customers and have the advantage of using Microsoft's backbone for connectivity so if you're new to cloud computing you can hear a lot of talk about different terms like platform as a service or infrastructure as a service even software as a service so I'm going to first clarify kind of what these mean a little more detail so infrastructure as a service or often referred to as is it's a set of infrastructure level capabilities such as providing virtual machines and low-level network capabilities that are delivered as paid for you services if we were to use the on-premises data center as an example to compare this I as provides an alternative to managing the physical servers networking hardware and all the supporting needs of running your own physical data center and machines in Azure virtual machines and virtual networks are the primary features that map to the infrastructure as a service or I as term and then platform as a service this is often for just pass our higher level sets of functionality that are delivered as consumable services for developers who are building applications pass is about abstracting developers from the underlying infrastructure to enable applications to quickly be composed in Azure there's several platform as-a-service past services such as as your web apps storage as a sequel database just to name a few and then we have software-as-a-service or sass these are applications that are delivered using it's a service delivery model where organizations can simply consume and use a complete application typically an organization would pay for use to the application or the application could be monetized through ad revenue even one of the greatest greatest examples of sass based applications from Microsoft would be office 365 and while there's many SAS applications built on Azure the core of the platform is really about that infrastructure I as and platform or pass oriented services which we'll talk a little bit about both of these in this webinar so starting off the typical Azure data center is much like an on-premises data center that you deal with today there's racks of servers which are dependent on power cooling network and so on as we saw on the previous slide you know one of the one of the previous slides Micra Spain across the globe is what is referred to commonly as hyper scale that is a piece that is totally managed by a Microsoft along with all the physical hardware and everything's managed by Microsoft and then on top of that infrastructure we have components that make up the actual infrastructure as a service features or services within a sure this is comprised of compute storage networking services the networking is actually provided as a software to find the networking stack which is very flexible and configurable for your needs these are the building blocks you can leverage to either build solutions from scratch or replicate migrate and backup existing workloads you have in your current data centers when moving them into the cloud built on top of that infrastructure we have Asher's paths or platform as a service offerings these services provide an even further abstraction to the underlying infrastructure to allow your developers to focus solutions building the solutions versus scaling security configuration and building any infrastructure since all the infrastructure components are managed for you with pass in fact there's several services provided by asthma that providing immediate functionality and use without having to sweat the details of deployment maintenance and of the underlying infrastructure minute some of these services are things like address security center as your Active Directory as your DNS even as your Web Apps the kind of name a few now moving into Azure and using Azure we need to know kind of what an address subscription is so I'm going to start with that before I go in I'm actually go through the portal and show you how things are provisioned and working with things some of the key things you need to know about as your subscriptions are they're used to group resources together all resources you provision in Azure will be contained and build within the context of that Azure subscription there are multiple ways of obtaining an azure subscription you can use a credit card and pay-as-you-go purchase from an azure reseller part of an enterprise agreements or even set up a free trial and you can get $200 in credits for 30 days to use as well in that case and then lastly another option that we're offering with opportunity is the apps Jilla T cloud sandbox which allows you to get access to an azure subscription that you can use for development testing learning sales demos those types of things which offers a more predictable cost and control over your usage in Azure this way you can better control the spending on resources particularly maybe resources that are no longer used or over provisioned so you don't over run your costs as much as you would without using this hand box so now I'm going to move into the azure portal and we'll kind of work through a bunch of demos you with infrastructure virtual machines as well as some of the past service stuff like as your web apps and deploying from Visual Studio or github that type of stuff so first of all I'm going to show you here we have a sure calm website before we start creating resources we'll take a look at this site this is the main site where you're able to navigate as your documentation if you click on the azure the documentation link at the top of the site you can find links to all the different services within a sure all the infrastructure platform services and those types of things I'll documentation listed in there if you go to pricing there's pricing details and information in there to be able to see how much things are gonna cost before you would provision them and then in the top header we can see on the top right there's a portal link if you click on this this is gonna go and navigate us over to the azure portal where we can login with our organization account on a Microsoft account to access our Azure subscription I already have this open in a new tab one way you can navigate to this is you could navigate directly to portal - accom I'm and I'm already logged in here so after you login to the portal you'll see a dashboard that's similar to what I'm showing here on the screen you can see recent resources all kind of list of all resources in the subscription some health information on Azure and some get it started content on the left of this navigate is the navigation pane now where I can browse through my by resource type I can see virtual machines sequel databases and other resource types the list of resources in this navigator include just those that are marked as my favorites favorites to show in this list if I click on more services at the bottom I can see a full list of the resource types I can scroll through this list and mark additional resources as favorites so if I click on the star to select this one as your container services I can see container services then we've now pinned to my navigation bar on the left I can click and drag these around to reorder them as well to customize this list and then if I uncheck the star it'll go and then remove that from the list again I can even type in to search and filter this list to narrow down to specific resources or resource types and then on the top bar of the portal there's a Settings area this little gear icon lets me pick different themes I can check pick different color themes in the portal different contrast levels with colors and things to help with visibility and then also there's a language drop-down writing localize and change the language of the portal as well then from the help button we can submit support requests we can click some keyboard shortcuts and we can see all the keyboard shortcuts that are supported by the azure portal and these can become very useful for example you can always type the question mark key to show and hide the shortcuts pane I can type the /pe to get to the search bar I'm just on the top here to search for my resources right from the keyboard shortcut and click on this smiley face to provide feedback of my experience with the azure portal the portal team is listening to the feedback here and you're able to submit issues or things you like so they can continually improve the experience I can click on this Bell icon in notification icon and I can see updates that are shown to me since the last time I logged in right now it's actually showing me a notification of the remaining credits that I have on my Azure subscription that I have associated with my MSDN subscription and if I want to drill deeper into billing information I can see how I'm spending my credits I can go and the navigation bar here and click on subscriptions I can view the subscriptions that my account that I've logged into the portal that has access to I can click on a specific subscription and then once this loads I'm going to be able to see a burn rate of my spending throughout the month for the billing period how much I've spent per resource as well so we can see the cost by resource at the top and it's showing me what my top spenders are and then the burn rate on the bottom with a projection if I continue on this trend where will I end up at the end of the billing period and then additionally if I click on invoices here in this navigli list on the left of the subscription pane i can see my most recent invoices on my subscription so i can get good visibility on where i'm spending my money on my credits to be able to keep keep that spending where I need it to be now let's go back to the dashboard here and if I type N on my keyboard or I click on this plus new link in the left navigation I can start creating resources in Azure so I can scroll through the different categories here for example in in the compute category it's going to give me kind of the featured apps or are the more commonly provisioned resources in these different categories so here I have Windows Server 2012 r2 Server 2016 but I had Enterprise Linux of Windows Server and a few others and then under under storage I have access to two Azure storage account web plus mobile we can provision a web app mobile app I'm as your logic apps CDN databases we can provision and as your sequel database to have a relational database in Azure past service or even on the bottom we have documents DB for a no sequel document basis store as well I can also open up the marketplace by clicking on see all in this new pane and this is going to bring up the overall view of a marketplace with a more comprehensive list of thousands of items in the marketplace I'm not just from Microsoft but also third-party vendors as well these items can be provisioned or purchased through here you can search for things so in the search box for example I could search for Hadoop and go and see all the images in the marketplace that would give me options around Hadoop support there as well I'll clear that and I want to go in and create a virtual machine I want to provision a VM and get some infrastructure set up infrastructure as a service set up in my has your subscription so I can search in here for any virtual machine image that I'm looking for or I can go back and browse so I'm going to close this and go or I'll click plus new again just to restart here and show you under compute then we have options here and and this case I'm going to pick the Windows Server 2016 data Center and then this pain gives me information about this image right it's pretty self-explanatory for 2016 data center but if it's another image from a third party this is gonna give me more details on licensing options and requirements and things like that I'm gonna go ahead and click create on the bottom here and it's gonna give me kind of a wizard set of pains to be able to set up the in it the initial configurations that need to be set and revision this resource in Azure so to create this VM first I need to give the VM a name so type a name in here I'm just gonna copy that for future use and then on the VM disk type I can select SSD which is going to give me solid state hard drive backed higher performance storage this is the recommended storage for production workloads it's gonna give you a lot higher IO performance of your storage and then HDD which is going to be a traditional spinning hard disk this Allah is a little bit of a cheaper storage option to help you save a little a little bit of money on hosting this VM I'm just gonna pick the SSD in this case and then I need to enter in the admin username and password for my VM it's is the admin login for this Windows VM so I'm turning user name and I'll type in password here and then what subscription am i creating this on it has my subscription I'm selected already here and then for resource group I need to pick an existing resource group or specify the name of a new one resource groups are containers of multiple resources used for an app I'll show a little more what this means in a little bit once we provision this VM in this case instead since i'm creating a single VM I'm gonna go and create a new resource group leaving a new reason to create new selected I'll paste in my copy the VM name before pasted that in and I'm gonna put group at the end of it just to name my resource group in this case to that then we need to select the specify the location or the Azure region we want to host our VM in again to show you the regions and locations that are supported I have a tab open here to the azure region's page and the azure comm site Ezra has 34 commercially available regions today across the globe with four additional regions coming in the next few months they have new regions coming on every few months they're continually expanding out their footprint of the cloud I can visit this region's page to see a map of the regions and decide on the best location to deploy based on where my users or my customers are located so for example my customers are located in the east coast of the United States then I'm going to probably want to deploy my VM into East US or East us to Azure regions so I'll go back to the portal here and then I'm gonna select East u.s. in the list scroll up a little bit here east us now click OK we'll go to the next step in the wizard now I need to select the virtual machine size you should choose the right VM for your workload based on the number of cores the memory disk drive size as well as the price adver gives you recommendations based on popular sizes but you can also click on the view all link here to view all the size options available to you in this case I'm going to pick the ds1 v2 standard instant size this is going to give me 3 point 5 gigabytes of memory and 1 CPU core also it's going to include a good number of i/o operations per second as well as a local SSD storage and I'll click select to select that size and then next I can configure some advanced settings so things like virtual network configurations the storage account to use for storing the VM image disks the HD images are stored in Azure storage as well as optional services like setting up network security group firewall rules it'll set up that software-defined firewall within my virtual network software-defined network then I'll click OK here and then I'll get a summary of my VM that I'm about to create and then I can click once this says validation has passed on the top it's verified that any uniqueness for names and things are going to be ok so click OK and it's gonna go off and now kick off the provisioning or the creation of that virtual machine and all of the different resources that comprise that VM virtual machine creation can take a few minutes you can track the success of it on this tile on the dashboard you can see it has that spin air spinner notification or spinning icon and it's showing you that it's still working on provisioning that VM you will get a toast notification in the upper right when the provisioning has completed or you can click on the notification icon the bell I can bring up notifications pane and we can see the current status is it says deployment started that's telling us so that the deployment is still working so to save us some time I've already created a VM earlier I can get to the virtual machines list or get to my virtual machines by going to virtual machines and navigation list on the left here is gonna list out all the virtual machines that I have at access to within my subscription so I have a few in here already that I've created previously we can see this webinar Windy M is the one that I just created it created it's working on provisioning that it actually says status is created right now or creating since it's working on it so I'll click on this window windows VM 1 this is a Windows in identical Windows Server 2016 datacenter VM that I created previously on the overview pane of the virtual machine blade that I'm seeing here I can monitor and manage this virtual machine I can look at the CPU disk and network usage I can go to an activity log to view any activity on this resource in Azure I can diagnose problems I can click on disks to add additional discs or change this for add additional data discs this VM to be used or you can click on size to go and change the instance size for this virtual machine at any time even after it's been created changing the VM instant size will require the VM to be rebooted I'm just like any physical machine would be required to be rebooted if you add I'm already move physical memory disk this sticks or changes heat views but you can change that after provisioning not that you have to start over with a new VM in order to change the size or anything like that so then because this is a Windows virtual machine in this little toolbar of buttons on the top I can click connect and that's gonna open up or to automatically download an RDP a Remote Desktop Protocol file then I can then open up on my machine and then I'm going to be able to remote into this virtual machine using remote desktop so click connect here I'll type in it has my username filled in since I've actually connected to this one previously otherwise I'd have to enter that in and then I'll type in my password enter yes I want to trust this certificate and now it's promoting me into this VM so now I'm logged into and able to remote into using Remote Desktop this brand new Windows Server 2016 datacenter edition virtual machine that have provisioned in the azure cloud so now for Linux virtual machines as your fully supports Linux virtual machines and then you saw the Red Hat Enterprise Linux and once you listed in the VM I'm creation before I'll just show that quick if we click the plus new button and go to compute let's say I'll pick it and a blue server VM is new some information about it I'll click create it's gonna give me similar settings to configure everything is almost identically the same except for the authentication type for a Linux VM you can pick SSH public key encryption for authenticating against the EVM or you can pick password encryption if you want to connect with just the password so you have options there but otherwise all of the other configurations and settings picking the size are the same as with Windows VMs already yeah I already have a links open to VM that I've created previously I'm gonna navigate to that so again I'll click on virtual machines here in the left navigation you can see the top one here bunt UVM the name that I gave it you can see similar things with CPU network disk usage all the same options for adding data disks managing disks changing the VM size I'm after provision and all that same same capabilities but this is a VMs running Linux instead of Windows we also have this toolbar on the button around the top then click the connect button and it's going to bring up instead of downloading an RDP file since you would use SSH with Linux instead it's going to give you two texts that includes the SSH command to run at the command line that has the admin username and the IP address already entered in I'm going to copy this and then when they'll open up bash shell to open up batch in this case I'm using the ubuntu bash on Windows 10 and I'll paste that in and hit enter then we don't connect an SSH into this server the answer I used password authentication instead of public key so it's prompting me for the password so I'll enter that password in hit enter and now I'm remoted into this Linux VM boon to Linux VM running in Azure but type the top command I can go and see all the processes that are running on my Linux VM in Azure and if I exit out I can disconnect from that as well so switching gears a little bit more into resource groups now we've provisioned virtual machine and hema showed Linux and Windows virtual machines see I need to fill in we need to fill in a little more detail about resource groups and kind of what the purpose is of those as I mentioned earlier so if I click on this hamburger menu and expand and we go to more services in the bottom of the left hand navigation pane we can see that different resource types in Azure you can see there's actually virtual machines listed in here twice there's a reason for this so Azra has two deployment models there's an older model which is the classic deployment model this is the original one from the first days of the eye as features in Azure this model assembler around individual services and every API call was made to a single made to run a single operation for a single resource for example create a website stop a website start the server stop the server things like that and it the model works for management but as the cloud as cloud solutions have become more complex over time and many services or VMs and these are composing multiple services it's become extremely difficult to deploy and manage a solution by configuring each service independently so the more recent deployment model that was created instead I should say the old model is actually demoed that's classic here the one I'm hovering over the next one above it just as virtual machines I'm using the newer more recent deployment model which is now the standard model and Azure I'm going forward and this is called arm which stands for as a resource manager this model looks at the world through the lens of a resource group this lets you create multiple resources create manage them together I'm secure access to them within the portal together as an example if I look at one of my virtual machines so click on virtual machines here and then I'll I'll click on this webinar windy I'm the one we created just earlier we can see in the essentials pane here for the VM we can see on the resource group it shows the name of the resource group this VM is contained within if I click on this resource group name it's gonna bring me over to view this resource group within the azure portal drilling into this resource group shows me that it includes a bunch of different resources more than just the virtual machine we can see we have the virtual machine which is the CPU and memory usually on reservation for running the VP machine the OS and the machine on or the network interface which is a software-defined configuration for a network interface card if two storage accounts this bottom one here is for diagnostic logs to be saved and this top one is actually the one where the virtual machine VHD disk images being sort and then we have a virtual network public IP address network security group firewall rules each of these can be managed and configured separately but they're contained within the same resource group so that you can manage create deletes secure them all together as related resources within that resource group I can also see the cost of each resources in the group if I click on resource costs here on the left it's gonna bring up and show me costs per resource right now it's going to show nothing or 0 for spend since you just we just created this one minutes ago another another nice feature with resource groups because the automation script resource groups can be represented as a template which is a JSON file that defines all the resources and the relationships using this template I can deploy this entire resource group together instead of creating each individual resource or even using the wizards in the portal I can automate the provisioning and creation of this of these resources with this script I can also get the code required to deploy this a template with different programming languages there's some examples in here for deployment using Ruby net as well as the azure scripting tools like using the Azure PowerShell SDKs as an the azure CLI or cross-platform command line tool as well so I hope this gives you a better idea understanding of kind of why one is why they vote two types of virtual machines kind of shown in the portal as well as kind of what resource groups are and what they're for and why we're always associated resources in resource groups sorry we've raided a virtual machine connected to it through the portal on both a Windows and Linux VM now I'd like to create and deploy a web application so instead of doing this through the portal I want to do this within my IDE Asher has SDKs for many languages and extensions to popular itës such as visual studio and Eclipse today I'd like to create a web application and deploy to the adder to asher from Visual Studio so I'm gonna switch over to visual studio and actually have a virtual machine with Visual Studio that provision from the azure marketplace that I'm gonna use so I'm gonna go to navigate to my Visual Studio VM here and I click connect to connect to it then download that RDP file and a remote Intuit remote desktop so with virtualization and virtualizing development environments you can do that in Azure as well there are virtual machine images with Windows servers in this case Windows Server 2012 with Visual Studio 2015 you can use 2017 as well and then everything I'm showing you today with the using Visual Studio interacts with Azure is all features included in the Azure SDK so any visual studio version in older versions that support the latest address dije support all of these features so here I have an asp.net MVC app that I've already created I'm just gonna run it here locally so we can see it running it's just a basic MVC template we have a home page and about page contact page nothing extensive in this case let's say we have an application that we've built and now we're ready to publish this application out into Azure to do this within Visual Studio we can go to the solution Explorer and right click on the project and click publish and then we can select the publish target there's Microsoft Azure app service this is the service that hosts web applications in Azure web applications mobile backends or web api's also he reckons one of my existing apps I'm where I can create a new one in this case it's not showing me any because they don't actually have any provision in my address subscription I'm gonna click new to create a new one and it gives me a default name I can type in a different name here that I want to name it and then pick the resource group I want to put it in if I'm putting an existing resource group I can click new and then go and type in a resource group name in this case I'll copy the web app name a similar fashion than what I did with the BM ad group at the end of it and then need to specify the app service plan to put this VM in or put this web app in excuse me the app service plan I'll click new and then specify the name of the app service plan what I want to name this on my subscription I will do this again the name of the web app was planned at the end it's an example and then pick the age or region or location I want to host this app service plan and my web app in in this case let's pick Tappan West and then pick the size the size is gonna dedicate what CPU and memory is allocated for my app service plan and for my web app to run in to run on this actually defines the underlying fully managed virtual machine the nazzer is gonna spin up behind the scenes and manage for us and then we can run our web app and just manage our app itself only in Azure and an azure managed to the VM it's it for us automatically I'll pick the s1 I'm standard s ones here here one CPU core 1.75 feet of memory but click OK then I click create it's gonna go and use the azure resource management REST API s it's gonna go call against those and go and provision the resource group the app service plan and you as your web app within my Azure subscription once that's finished provisioning then we'll be able to go and publish our app into Azure and run our application in Azure so I'll switch back to the portal while it's provisioning it if I click on the hamburger menu I can select resource groups and this is gonna let me view all the resource groups that I have in my subscription and go down here to webinar web app group which is the group that I created for my web app and I'll view the resources that it's provisioning it shows that the app service plan and it shows app service which is the azure web app so if I click on the web app so the app service resource here in Azure this is resource that will run my web app that we can do that we'll be able to deploy to once it's finished being provisioned we can see actually shows status here as running so it looks like it's done provisioning already it will deploy there in a second or a minute and then we can set up different things in here different settings and configurations but if I go down here and scroll down to scale-up this allows us to scale change the pricing tier changer scale up our applicate our underlying VM that's hosting our web app on the fly I mean you can actually change this pricing tier at any time without any downtime right now I have the standard s1 tier there's a little bit more expensive premium tiers give access to a little bit more features if I scroll down there's basic tier which is kind of meant for davin test environment only production you would stand use standard or premium I'm gonna also have a free and shared tiers which actually instead of using dedicated CPU and memory resources you get shared memory and resources that are similar to a shared hosting environment that you might be familiar with and they're also the cheaper options available in this case I'll leave it as the standard s1 now I'll switch back to my visual studio and you can see the publish dialog has changed now over to having the server site name user name credentials that are needed for visual studio to do it publish I'll click publish and now it's going to go and actually compile and publish and deploy this application out into Azure when it's finished the point it's going to open up a new browser window navigating to this web app running in Azure for me so I can see it running in the mean time here we can see in the solution Explorer under the project we can see the published profiles and added a published profile this is saving the credentials and configurations for which web app in Azure I'm and it deploys you so the next time I would go and say publish in Visual Studio I don't have to pick that web app again it'll know it and then I can just click publish and it'll publish it out again making it easy to do over again from visual studio now it's opening up that web browser since it's finished deploying and it's going to load up the our application running in Azure and we can see in the URL we have the name of our web app that adds your website's dotnet this is the default DNS or domain name that were given to our web app when we provisioned it in Azure it's taking a little bit to warm up the site since it first time it's firing up once it was deployed spinning up that app pool and is underneath the covers and now we have the same web app that showed running locally but we have it running in Azure this time so going through some of the additional features now in the web app in-app service we can see there's app settings we can set application settings connection strings things are similar to like web config configurations or is configuration we can set custom domains SSL certificates to support SSL for our web app and a number of other features I'm in here as well so we saw how to create a virtual machine through the portal and how to create in deploy web site using Visual Studio and I'd like to show you how you can script it so Azure has two scripting options if you're feeling it if you're a Windows user and you may be familiar with PowerShell you news to Azure PowerShell command let's to leverage rich PowerShell capabilities if you're more comfortable with command line or you're using a Mac or Linux you can use the cross-platform as your CLI tools to do the same thing behind the scenes both the eyes are PowerShell in the after CLI interact with the same as your rest api that we that the visual studio plug-in accesses and utilizes as well to offer that functionality both powershell and address CLI offers similar capabilities so it's kind of a matter of I'm either which operating system you're using or a matter of choice which one you want to use so before I go and show the azure CLI so go back to user calm and we click on resources in the top navigation menu and then we click on downloads it's going to give me the option to download the SDKs for visual studio and different programming languages as well but if I scroll down below that we're gonna see command-line tools where we have the opportunity to download the installer for the Azure PowerShell SDK powershell commandlets as well as the windows mac or linux installers for the azure CLI as well so now I already have this install the switch over to the command line and the command line tool for as your CLI everything starts with Azure and a similar Towe using get it all starts with gift so type Ezrin hit enter and she's gonna give me a summary of the different commands that I can run with the azure CLI so you can see it's spit out all those commands you scroll up we can see the full list of everything on the different commands we can run now first we need to log into the azure subscription with the CLI so I'll type as your login and I'll hit enter and then this is gonna give me the URL I have to go to and then a code to enter in to be able to authenticate with my Azure subscription and authorize the as your CLI to access things so I open up the web browser here and we'll open up a new tab and we'll navigate to this URL and I'll enter in the code and since I've already logged in it didn't prompt me to log in but continue or actually I wasn't asking me but I'll click which one I'm in and it didn't have to enter the password cuz we're logged in now it's authenticated we can see the CL I just said ok now it added my subscription so if I say it type in Azure account list it's gonna list out the azure subscriptions and I have access to with the account that I've authenticated as your CLI with this case we'll just have one subscription so it's just showing that one now get started creating of this a web app using the azure CLI first we need to prove it in an agile resource group somebody's the azure group command and then as a group create command rather and specify the name parameters to specify the name of the resource group that I want to create then the location parameter it's gonna allow me to specify the Azure region did I want to host this in and I'll hit enter it's gonna one call those as your resource management REST API s and behind-the-scenes no provision that in my subscription now that that's done I need to set up and provision an azure app service plan so use the azure app service plan create command using the name parameter to specify the app service plan name and then the location parameter specifies the Azure region resource group parameters specify the resource group we're gonna host this in and the SKU parameter and it's going to specify the pricing tier s1 would actually specify these standard s1 pricing tier that we selected from the portal earlier f1 is gonna select the free pricing tier and I'll hit enter and it's gonna go and access those arm rest api's and provision that app service plan and place it within that resource group now we can go and provision the out of the a web app so usually wet as your web app create command and the name parameter is gonna specify the name of our web app and then the resource group parameters gonna specify the resource group that we want to put this website web app in the location parameter is gonna specify the Azure region to host this web app in and then the plan parameter is gonna specify the app service plan we want to put the web app in one thing to know is the location or as a region for the web app does need to be the same region as the app service plan since the app service plan is defining which physical hardware that VM is running on in the data center and I'll hit enter I'm just gonna go and create and provision that web app within our subscription associated with the app service plan and place it within that resource group as well so within a few seconds I'm able to create a new web application in Azure that I can then go and deploy code to I could do the same thing with the azure powershell commandlets the commands are slightly different i'm very similar and offer the same functionality so now we'll switch back to the azure portal and i want to go see our our web apps i'm gonna click on resource groups and the resource group to be created for that first and we can see our different resources that we created the app service plan and the app service web app within the resource group i'll click on the web app to go see that web app within the portal here now i'd like to deploy an application out to this web app i'm not from visual studio but from github instead so to do that i'd like to the repository posit orb and github that has a web application that i can deploy luckily azure has code sample gallery that is based on github I go to the azure comm site click on resources and then click on code samples to go view this sample gallery I have a particular sample in mind that I'm gonna use for this in this case I'm just going to type HTML in the search box and search and it's actually this first one in the list the HTML sample for Azure app service I'll click on that it's gonna give me a little more information about it and then I can click on browse on github to go Vout browse the code on github what I need for the deployment though is actually the clone URL from this so I'm gonna click on this green clone or download button on github and I'm gonna copy the clone URL for this repository now I can go back to the azure portal and on my web app in the navigation list on the Left I can scroll down here and click on deployment options and then I can choose to configure a source to play from and in this case I'll pick external repository and then I'll paste in this clone URL that copied from github and click OK and now it's gonna go and create that the setup of deployment options I mean it's gonna automatically kick off the first deployments of deploying that application out into this web app directly from github into Azure a few more things we can do through the azure portal on a web app if I scroll down here we can click on a backups to set up backups of our web app scaling up we can scale up the web application before we can even scale out to add additional instances of our web app if we need to we can customize domain name SSL set up security scanning there's there's a live console we can access to be able to browse through the file system of our on the server of our web app it's hosted it also go up here on overview if I'm a DevOps person and I wanna keep an eye on the site metrics I can view this graph here I can click Edit and add some additional metrics to show in this graph and I can hover over this and click the ellipse button and say pin to dashboard and if I go to the Azure dashboard we can see it's pin to my dashboard so I can I can surface metrics I'm in reports and things from my resources in Azure right on my dashboard I can click new dashboard to create an additional dashboard to have multiple dashboards that I can toggle through actually if I go back to my web app here there's a quick app services and click on my web app now we back at the App Service blade and then if I click on this URL it's gonna open up this web app in a new browser tab and then navigate to it and we can see the application running this is the application that was in the github repository that we done deploy it out into this web app in Azure and it's now running in Azure without using visual studio or anything locally to deploy so we've created a virtual machine we've created some web apps we've deployed from github we've deployed from visual studio we've promoted in the in the windows and a bunch of linux from running in the cloud now there's two ways to create a sequel database in Azure you can install sequel server in a virtual machine I mean you get full control over the configuration of the database in fact sequel server in the VM is one of the pop most popular things that's done in Azure I'm another way to use sequel database is to use the address sequel database service just lets you create a database in seconds without having to take care of infrastructure or manage software updates I'll click on plus new to do this and then here I'll go to the databases option and I'll click on sequel database and this is going allowed me to provision a pass or platform as a service based ads or sequel database in Azure first I need to specify the database name and then in you specify a resource group they don't want to put this database in again all resources need to be associated with a resource group they didn't just select the source of my database so I can pick from a blank database since just create a blank new database I could pick a backup and restore and a backup that I've taken of an existing database into this or I can pick sample in this case I'll pick the sample and I'll populate my database with the default adventureworks sample template then I need to click on server to configure the database server I don't have any servers configured on this subscription yet I'll click create a new server then they need to name my server and then specify an admin login and password for my server to log into it and then the Azure region or location that I want to host this database server in and click select finish specifying the server details and then click on pricings here to specify the pricing for my database the pricing tier is specified on the database level not the server level so you have dedicated resources per database instead of per server we have standard and premium options with different dtu's that we can configure gtu is a database transaction unit this is what's used for the pricing tiers and to specify the performance measurement of our sequel databases I'm just kind of a blended measurement of CPU memory and I disk i/o as your solution grows you can change the pricing tier at any point in time without any downtime of your database as well I'll click on basic and this gives us the cheapest option with 5v to use it's actually five dollars a month and up to two gig of database database space and I'll click apply and that will click create and it's going to go and provision this as your sequel database it's going to provision the sequel database server in my subscription so now I want to navigate to the resource group I'll click on resource groups and I'll pick the resource group for my database and then we can see right now doesn't have the resources it's still provisioning I'll click refresh and it should show something in a few seconds here and click refresh a couple times he's not showing up I'm gonna check the notifications and see deployment started it's still working on deploying this database it's just taking a little bit here nobody takes a few seconds for the server to show up and then the database itself can take a little bit longer and now we can see the database server I'll click on that to go to the server one thing to note about the server is it is a logical container of databases and surprising to specified on the database level the server is really just a logical container providing the access with the login and password as well as different firewall rules so if I click on firewall on the left here I can specify the firewall and it's actually an IP 1 IP address whitelist that you specify so I want to specify my IP address that I'm running locally so I'll click on this add client IP just fills in a rule with my local IP address or I could type in a rule name and enter in a starting and ending IP address to specify a range and I want a whitelist and I'll click Save and it's gonna save that IP address range and then also it says allow Alex access to user services this is turned on by default so any service in Azure it already has its own IP address whitelisted just to make it easier you could always turn that off and then configure it separately so I'm gonna go back to overview here and our database has been provision so I'm gonna click on the database to go view the database blade I'm gonna see information about our database like the server name that we're gonna connect to I mean collect connect click on connection strings so we can go and view the ATO Nats JDBC ODBC PHP and action information that we would need to use we can go on the left here and configure things like changing the pricing tier at any time we can set up geo replication we can enable transparent data encryption many other features that are available now to connect to this database so I'm gonna actually go back into my visual studio that I had before I'm gonna click on server Explorer I'm going to expand an Asscher node in here and then expand the sequel databases node and this is gonna go and load on the sequel databases that I have access to here I have my database I'll right click on this and click on open in sequel server object Explorer so it's going to open up the sequel server object Explorer connect it to this database in here first we need to enter in connection information has everything filled in except for the password so I'm going to enter in the password and hit enter so that click that basically selected the connect button now connect it in with the object Explorer and wait for this to load it's gonna load out the databases within that server you can see my database I can expand this I can expand tables it's gonna load up all the database schema that's in this default eventual works template W provision or it would show the information in schema within your database I can right click on the database and click new query and I can go and type in a query so Sweatt thought star from sales LTE dot product it's like from the products table click run and it goes and runs that query against my database in Azure I'm using my local tools you have a typo in here but you can use familiar tools like the visual studio tools for working with databases as well as sequel server management studio to connect to and work with an azure sequel database alright so we've created the VM a web app is create a sequel database just about how to query the database I'm going back to calm and go to the homepage here we can see the you know the links for documentation show the pricing if you click on solutions you can see some example solutions that are built in Azure you go to different categories like click on digital marketing we can go here and see some example information about digital marketing solutions and as we scroll down at the bottom we can see some examples solution architectures I'll click on this first one simple digital marketing website we can see a diagram kind of showing how the different services would fit together and what services we would use and then you can scroll down under the list out the services use for that as well as linking to the documentation so you can get more ideas on examples on what services did you use wine and stuff through here in this documentation alright so that completes kind of the demo and running through ayahs and pads and stuff and know what resource groups are on things I hope this helps you I mean building solutions in Azure and some of you that are new who helps you with learning more about a sure I'd like to thank you for joining me today on this webinar I'm have a good day
Info
Channel: Opsgility
Views: 26,916
Rating: undefined out of 5
Keywords: Microsoft Azure, Azure, cloud, cloud computing, service farbic, SQL
Id: fIyJu5ETgks
Channel Id: undefined
Length: 52min 49sec (3169 seconds)
Published: Wed Apr 05 2017
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.