Get Started Guide For Azure Developers

2y ago
3 Views
3 Downloads
1.03 MB
13 Pages
Last View : 27d ago
Last Download : 3m ago
Upload by : Maleah Dent
Transcription

Get started guide forAzuredevelopersAuthors and ContributorsThe following resources contributed to this version of this guide:AuthorGlenn Gailey Microsoft ²Senior Content DeveloperSummaryThe purpose of this document is to provide information that will help quickly get started using Azure services.The target audience is those in a developer role. 2016 Microsoft. All rights reserved. This document is for informational purposes only.Microsoft makes no warranties, express or implied, with respect to the information presentedhere.

ContentsWhat is Azure?.3Where do I start?.3Applicationhosting. 3Azure App Service.4Azure Virtual Machines.5Azure Functions (serverless).5Azure Service Fabric.5Enhanceyour applications with Azure services.6Hosted storage and data access.6Docker support.6Authentication.7Monitoring.8DevOps integration.8Azure regions.9Choose the best region for your application and data.9Multi-region apps.9How do I manage my applications and projects?.9Command-line interfaces and PowerShell.9Azure portal.10REST APIs.10APIs.10Azure Resource Manager.11Understanding accounts, subscriptions, and billing.11What is an Azure account?.11Manage your subscriptions.12Administrator roles.12Resource groups. 12Grant access to resources.12Tags.13Billing.13Get resource usageatad .13Predict future costs.13Set up billing alerts.13

What is Azure?Azure is a complete cloud platform that can host your existing application infrastructure, providecompute-based services tailored for yourapplicationdevelopment needs, or even augment your- onpremises applications. Azure integrates the cloud servicesthat you need to develop, test, deploy, andmanage your applications—while taking advantage of the efficiencies of cloud computing.By hosting your applications in Azure, you can start small and easily scale your application as yourcustomer demand grows.zureA also offers the reliabilitythat’sneeded for high-availability applications,even including failover between different regions.You can easily managell ofa your services remotelyfrom one location, theAzure portal, or programmatically byusingvarious APIs and templates.Who should read this: This guide is an introduction to the Azureplatform for applicationdevelopers. Itwill provide the guidance and directionthat you need to start building new applicationsin Azureormigratingexisting applications toAzure.Where do I start?With all the services that Azure offers, it can be a daunting task to figure out which servicesyou need tosupport your solution architecture. This section highlights the Azure servicesthat developerscommonlyuse. For a list of all Azure services,see theAzure documentation.You should first decide on how to host your application inre.AzuDo you need to manage your entireinfrastructure as avirtual machine VM),(or can youuse the platform management facilitiesthat Azureprovides? Maybe you need a serverless framework to host code execution? onlyYour application will need cloud storage, which Azure provides several optionsfor. You can aketadvantage of Azure's enterprise authentication. There are also tools for-basedcloud development andmonitoring, and most hosting services offer DevOps integration.Now, let's take a look at somef theo specific services thatwe recommendinvestigating for yourapplications.Application hostingAzure provides several cloud-based compute offerings to run your application so that you don't have toworry about the infrastructure details. You can easilyscale up or scale out your resources as yourapplication usage grows.Azure offers services thatcover the spectrum—from providing infrastructure-as-a-service (IaaS) to giveyou full control over your application hosting, throughplatform-as-a-service(PaaS) where the servicesare hosted for you, to true serverless hosting where all you need to do is write your code.

Azure application hosting optionsAzureApp ServiceWhen you want the quickest path to publish your web-based projects, onsidercAzure App Service. AppService makes it easy to extend your web apps to support your mobileclients and publish easilyconsumed REST APIs. This platform provides authentication by using social providers, traffic-basedautoscaling, testing in production,and continuous andcontainer-based deployments.When you create a new app Appin Service, you select one ofthe following types: Web Apps: Lets you host websites and webapplicationsthat are written in .NET, Java, PHP, Node.js,and Python. Mobile Apps: Extends Web Apps to support access from mobile devices.It enables authenticationwith social providers and Azure Active Directory(Azure AD), provides backend storage, andintegrates withAzure Notification Hubsfor push notifications. API Apps: Lets youmore securely expose your APIs in the cloud with Swagger metadata so thatclients caneasily consumethem.Because all three app types share the sameApp Serviceruntime, you can host a website, support mobileclients, and expose your APIs in Azure, all from the same projector solution. To learn more about AppService, seeHow App Service Works.App Service has been designed with DevOps in .mindIt supports various tools for publishing andcontinuous integration deployments, including GitHub webhooks, Jenkins,sualViStudio Team Services,TeamCity, and others.You can migrate your existingapplicationsto App Serviceby usingthe online migration tool.When to use: Use App Servicehenw you’remigrating existing webapplicationsto Azure, when you needa fully managedhosting platform for your web apps, when you need to supportmobile clients, or whenyou need toexpose RESTAPIs.Get started: App Service makes it easy to create and deploy yourwebfirst app, mobile app, or API app.Try it now: AppService lets you provision a short-lived app to try the platform without having to sign upfor an Azure account. Try the platform andcreate your Azure App Service app.

Azure Virtual MachinesAs an infrastructure-as-a-service (IaaS) provider, Azurelets you deployto or migrate your application toeither Windows or Linux VMs.ogetherTwith Azure Virtual Network,AzureVirtual Machines supportsthe deployment of Windows or LinuxVMs to Azure. With VMs, you have total control voer theconfiguration of themachine, and you’re responsible for all server software installation, configuration,maintenance, and operating system patches.Because of the level of controlthat you have with VMs, you can run a wide range of server workloads onAzure that don’tfit into a PaaS model—such as database servers, Windows Server Active Directory,andMicrosoft SharePoint.For more information, see theVirtual Machines documentationfor either LinuxorWindows.When to use: Use Virtual Machines henw you want full control over your application infrastructure orwhen you needto migrate on-premises application workloads toAzurewithout having to makechanges.Get started: Create a newLinux VMor WindowsVM from the Azure portal.Azure Functions (serverless)Maybe you simply want to execute code in response to events or on a schedule, without worrying aboutbuilding out and managing a whole application or the infrastructure to yourrun code. Azure Functionsisa "serverless"-style offering that letsyou write just the code you need—with code executionthat’striggered by HTTP requests, webhooks, cloud service events, or on a schedule.With Functions, you cancode in your development language of choice, such as C#, F#, Node.js, Python, or PHP. Withconsumption-based billing, you pay only for the timethat your code executes, and Azure scales asneeded.When to use: UseAzureFunctionswhen you have code that is triggered by otherAzure services, byweb-based events, orby a schedule. You can also usewhenityou don't need the overhead of a fullproject or when you only want to pay for the time that your code runs.To learn more, seeAzureFunctions Overview.Get started: Follow the Functions quickstart tutorial createtoyour first functionfrom the portal.Try it now: AzureFunctions letsyou run your codewithout having to sign up for an Azure account. Try itnow at and create yourfirst Azure Function.Azure Service FabricAzureService Fabricis a distributed systems platform that makes it easy to package, deploy, andmanage scalable and reliable microservices.t providesIa sophisticated runtime for building distributed,scalable microservices. It also provides comprehensive application management capabilities forprovisioning, deploying, monitoring, upgrading/patching, and deleting deployed applications. Apps,which run on a shared pool of machines, can start small and grow to massive scale with hundreds orthousands of machines as needed.Service Fabric supports WebAPI with Open Web Interfacer .NETfo (OWIN) and ASP.NET .CoreIt providesSDKs for building services on Linux in both .NET Core and Java.To learn more about Service Fabric, seethe Service Fabric learning path.

When to use: Service Fabric is a good choice whenyou’recreating an application or rewriting an existingapplication touse a microservice architecture—or when you need morecontrol over, or direct access to,the underlying infrastructure.Get started: Create your first Azure Service Fabric application.Enhance yourapplicationswith Azure servicesIn addition to applicationhosting, Azure providesservice offerings that can enhance the functionality,development, and maintenance of your applications, both in the cloud and-premiseons.Hosted storage and data accessMost applications must store data, so regardless of how you decide to host your application in Azure,consider one ormore of the following storage and data services. Azure SQL Database: An Azure-based version of the Microsoft SQL Server engine for storingrelational tabular data in the cloud.SQL Database providespredictable performance, scalability withno downtime, business continuity, and data protection.When to use: When your application requiresdata storage withreferential integrity, transactionalsupport, and support for TSQL queries.Get started: Create a SQL database in minutes by using the Azure .portal Azure Storage: Offers durable, highly available storage for blobs, queues,, andfiles other kinds ofnonrelational data. Storage provides the storage foundation for VMs.When to use: When your app storesnonrelational data, such as key-value pairs (tables), blobs, filesshares,or messages (queues).Get started: Choose from one of these types storage:blobs, tables, queues, or files. Azure DocumentDB: A fully managed and scalable NoSQL database service, which features SQLqueries over object data. You can access DocumentDBby using existing MongoDB drivers.When to use: When your application needs to be able to execute SQL queries over JSON documents,or if you’reusing MongoDB.Get started: Build a DocumentDB C# consoleapplication. If you’re a MongoDB developer, seeDocumentDB protocol support for MongoDB.You canuse Azure Data Factoryto move existing on-premises data to Azure. If you aren't ready to movedata to the cloud,Hybrid Connectionsin BizTalk Services lets you connect your App Service hosted appto on-premises resources.You can also connect to Azuredata and storage servicesfrom your onpremises applications.Docker supportDocker containers, a form of OS virtualization, let you deploy applications in a more efficient andpredictable way. A containerized application works in production the same way as on your developmentand test systems.You can manageontainerscbyusingstandard Docker tools.You can use your existingskills and popular open-source tools to deploy and manage container-based applications on Azure.

Azure provides several ways useto containers in your applications. AzureDocker VMextension: Lets you ocnfigure your VMwith Dockertools to act as aDockerhost.When to use: When you want ot generate consistent container deploymentsfor your applicationson a VM, or when you want to useDocker Compose.Get started: Create a Docker environment in Azureby using the Docker VM extension. Azure Container Service: Lets you create, configure, and manage a cluster of virtual machinesthatare preconfigured to run containerized applications. To nlearmore about Container Service, seeAzure Container Service introduction.When to use: When you need tobuild production-ready, scalable environments that provideadditional scheduling and management tools,or when you’re deploying a Docker Swarm cluster.Get started: Deploy a Container Service cluster. Docker Machine(a Linux-based tool): Lets you installand manage a Docker Engine on virtual hostsby usingdocker-machine commands.When to use: When you need toquickly prototypean appby creatinga single Docker host. Custom Dockerimage for App Service: Lets you use Docker containers from a container registry or acustomer container whenyou deploy a web app onLinux.When to use: When deploying a web app on Linux to a Docker image.Get started: Use a custom Docker image for App Service on .LinuxAuthenticationIt's crucial to not only know who is using your applications,alsobut to prevent unauthorized access toyour resources.Azure provides several ways to authenticate your app clients. Azure Active Directory (Azure AD): TheMicrosoft multitenant, cloud-based dentityiand accessmanagement service. You can add single-sign on (SSO) to yourapplicationsby integrating with AzureAD. You canaccess directory properties by using the Azure AD Graph API directly or the MicrosoftGraph API.You canntegrateiwith Azure AD support for the OAuth2.0 authorization framework andOpen ID Connectby usingnative HTTP/REST endpoints and the multiplatform Azure ADauthentication libraries.When to use: When you want to providenaSSO experience, work with Graph-based data, or justauthenticate domain-based users.Get started: To learn more, see theAzure Active Directory developer's guide. App Service Authentication: When you chooseApp Serviceto host your app, you also getbuilt-inauthenticationsupport for Azure AD, along withsocial identity providers—including Facebook,Google, Microsoft, and Twitter.When to use: When you want toenable authentication in an App Service appby usingAzureAD,social identity providers, or both.

Get started: To learn more about authentication in App Service,Authenticationseeandauthorization in Azure App Service.To learn more about security best practices in Azure,Azuresee security best practices and patterns.MonitoringWith your application up and running in Azure,ouyneed to be able to monitor performance, watch forissues, and see howcustomers are usingyour app. Azure provides several monitoring options. Visual Studio Application Insights: An Azure-hosted extensible analytics service thatintegrates withVisual Studio to monitoryour live web applications. It gives you the datathat you need tocontinuously improve the performance and usability of your apps, whetherthey’rehosted on Azureor not.Get started: Follow theApplication Insights tutorial. Azure Monitor: A service that ehlps you to visualize, query, route, archive, and act on the metricsand logsthat are generated by your Azure infrastructure and resources.Monitor provides the dataviewsthat you seein the Azure portal and is singleasource for monitoring Azure resources.Get started: Get started with Azure Monitor.DevOps integrationWhether it's provisioning VMs or publishing your web apps with continuous integration, Azureintegrates with most of the popular DevOps tools.With support for tools like Jenkins, GitHub, Puppet,Chef, TeamCity, Ansible,VSTS, and others,you can work with the toolsthat you already have andmaximize your existing experience.Try it now: Try out several of the DevOps integrations.Get started: To see DevOps options foran App Service app, seeContinuous Deployment to Azure AppService.

AzureregionsAzure is a global cloud platform that is generally available inmany regions around the world. When youprovision a service, application, or VM in Azure, you are asked to select a region, which represents aspecific datacenter where your application runs or where your data is stored. These regionsrrespondcoto specific locations. You can see the completeonlistthe Azureregionspage.Choose the best region for your application and dataOne of the benefits of using Azure is that you can deployyour applications toa variety of datacentersaround the globe. The regionthat you choose can affect the performance of your application. Forexample, it's better to choose a region that’s closer to a majority of your customers to reduce latency innetwork requests. You might also want to select your region to meet the legal requirements fordistributing your appin certain countries.It's always a best practice to store application data in thesame datacenter or in a datacenter as near as possible to the datacenter that is hosting your application.Multi-region appsAlthoughit’sextremely unlikely, it’s possible for an entire datacenter to go offlinebecause ofan eventsuch as a natural disaster or Internet failure.It’s a best italpracticebusiness applicationstoin host vmore than one datacenter to provide maximum availability. This can also reduce latency for local usersand provide additional opportunities for flexibility when updating applications.Some services, such as Virtual Machine and App Services,AzureuseTraffic Managerto enable multiregion support with failover between regions to supporthigh-availabilityenterpriseapplications. For anexample, seeAzure reference architecture: Web application with high availability.When to use: When you haveenterprise and high-availabilityapplicationsthat benefit from failover andreplication.How do I manage my applications and projects?Azure provides a rich set of experiencesyoufor to create and manage your Azure resources,applications, and projects—both programmatically and in theAzure portal.Command-line interfaces and PowerShellAzure provides two ways to manage your applications and servicesfrom the command lineby usingBash, Terminal,the command prompt, or your command-line tool of choice. Usually, you can performthe same tasks from the command line as in the Azureportal—such as creating and configuring virtualmachines, virtualnetworks, web apps, and other services.

Azure Command-Line Interface (CLI): Lets you connect to an Azure subscription and program varioustasks against Azure resources from the commandine. l Azure PowerShell: Provides aset of moduleswith cmdletsthat enable you tomanage Azureresources by using Windows PowerShell.Azure portalThe Azure portal is a web-based application thatyou can use to create, manage, and remove Azureresourcesand services. The Azure portal is locatedhttps://portal.azure.comat. It includes acustomizable dashboard, tooling for managing Azureesources,rand an entry way into subscriptionsettings and billing information. For more information, seeMicrosoft Azureportal overview.REST APIsAzure is built on a set of REST APIsthat support the Azure portal UI. Most of these REST APIs are alsosupported to let you programmatically provision and manage your Azure resourcesapplicatiand onsfrom anyInternet-enabled device. For the complete set of REST API documentation, seeAzuretheRESTSDKreference.APIsIn addition to REST APIs, many Azure servicesletalsoyou programmatically manage resources fromyour applicationsby using platform-specific Azure SDKs, includingSDKsfor the following developmentplatforms: .NETNode.jsJavaPHPPythonRubyServices such asMobile Appsand Azure Media Servicesprovide client-side SDKs to let you accessservices from web and mobile client apps.

Azure Resource ManagerRunning your app on Azure likely involves working with multiple Azure services, all of which follow thesame life cycle and can be thought of as a logical unit. For example, a web app might use Web Apps, SQLDatabase, Storage,AzureRedis Cache, and Azure Content DeliveryNetwork services.Azure ResourceManagerlets you work with the resources in your application as a group. You can deploy, update, ordelete all the resourcesin a single, coordinated operation.In addition to logically grouping and managing related resources, Azure Resource Manager includesdeployment capabilities thatlet you customize the deployment and configuration of related resources.For example, by using Resource Manager, you can deploy and configurean applicationthat consists ofmultiple virtual machines, a load balancer, and an Azure SQL database as a single unit.Youdevelopthese deploymentsby using an Azure Resource Manager template, whicha JSONis formatted document. Templates let you define a deployment and manage your applicationsby usingdeclarative templates, rather than scripts. Your templates can work for different environments, such astesting, staging, and production. For example,by using templates, you can add a button to a GitHubrepo that deploys the code in the repo to a set of Azure services with a single click.When to use: UseResource Manager templateswhen you want a template-based deployment for yourapp that you canmanage programmaticallyby using REST APIs, the Azure CLI, and Azure PowerShell.Get started: To get started using templates,seeAuthoring Azure Resource Manager templates.Understanding accounts, subscriptions, and billingAs developers, we like to dive right into the codend atry to get started as fast aspossiblewith makingour applications run. We certainly want to encourage you to start working in Azure as easily as possible.This is why Azure offersfreea trial—and some services have a "Try it for free" functionality, like AzureApp Service, which doesn't require you to create an account. As fun as it is to just dive into coding anddeploying yourapplicationto Azure, it's also important to take a little bit of time to understand howAzure works from a standpoint of user accounts, subscriptions, and billing.What is an Azure account?To be able to create or work with an Azure subscription, you must have an Azure account. An Azureaccount is simply an identity in Azure AD or in a directory, such as a work or school organization, that istrusted by Azure AD. If you don't belong to such an organization, you can always create a subscription byusing your Microsoft Account, which is trusted by Azure AD. To learn more about integratingonpremises Windows Server Active Directorywith Azure AD, seeIntegrating your on-premises identitieswith Azure Active Directory.Every Azure subscription hasrusta t relationship with an Azure AD instance. This means that it truststhat directory to authenticate users, services, and devices. Multiple subscriptions can trust the samedirectory, but a subscription trusts only one directory. To learn more,Howsee Azure subscriptions areassociated with Azure Active Directory.In addition todefining individual Azure account identities, alsoledcalusers, you can also definegroupsin Azure AD. Creating user groups is a good way to manage accessto resources in a subscriptionby using

role-based access control (RBAC). To learn how to create groups,Createsee a new group in Azure ActiveDirectory preview. You can also create and manage groupsby using PowerShell.Manageyour subscriptionsA subscription is a logical unit of Azure services that is linked to an Azure account. Each associatedaccount has a role in a subscription.Billing for Azure services is done on a-subscriptionperbasis.For alist of the available subscription offers by type, seeMicrosoft Azure Offer Details.Administrator rolesAn Azure subscription hasultiplemaccount administrator roles, whichyou can assignat any time. Account Administrator: This rolehas full control over the subscription andis the accountthat isresponsible for billing. Service Administrator: This rolehas control over allthe services inthe subscription.By default, thisis the same account as the Account Administrator. Co-administrator: This role has the same access as the Service Administrator, exceptthat it can’tchange the association ofthe subscription toan Azure directory.To learn more about administrator roles, seeHow to add or change Azure administrator roles.Resource groupsWhen you provision new Azure services, you do sogivenin a subscription. Individual Azure services,which are also called resources, are created in the contextresourceof agroup.Resource groups make iteasier to deploy and manage your application's resources.A resource group should contain all theresources for your application that you want to work with as a unit.You can move resources betweenresource groups and even to different subscriptions. To learn about moving resources,Moveseeresources to new resource group or subscription.The Azure Resource Explorer is a great toolvisualizingforthe resources that you've already created inyour subscription. To learn more, seeUse Azure Resource Explorer to view and modify resources.Grant access toresourcesWhen you allow access toAzureresources, it’s always a best practice to provide users with the leastprivilegethat’srequired to perform a given task. Role-based accesscontrol (RBAC): In Azure,you can grantaccess to user accounts(principals) at aspecified scope: subscription, resource group, or individual resources. This lets you deploy a set ofresources into a resource group and grantpermissions to a specific user or group. Thislimits accessto only the resourcesthat belong to the target resource group.You can also grantccessato a singleresource, such as a virtual machine or virtual network.To grant access, you assign a roletheto user,group, or service principal. There are many predefined roles, and you can also define your owncustom roles.When to use: When you needfine-grained access management forusers and groups.Get started: To learn more, seeGet started with access management in the Azure portal.

Service principal objects: In addition to providing access to userprincipals and groups,you can grantthis same accessto a service principal.When to use: When you’reprogrammatically managing Azure resources or granting access forapplications. For more information, seeCreate Active Directory supplication and service principal.TagsAzureResource Managerlets you assign custom tag

Web Apps: Lets you host websites and web applications that are written in .NET, Java, PHP, Node.js, and Python. Mobile Apps: Extends Web Apps to support access from mobile devices. It enables authentication with

Related Documents:

Bruksanvisning för bilstereo . Bruksanvisning for bilstereo . Instrukcja obsługi samochodowego odtwarzacza stereo . Operating Instructions for Car Stereo . 610-104 . SV . Bruksanvisning i original

AZURE TAGGING BEST PRACTICES Adding tags to your Azure resources is very simple and can be done using Azure Portal, Azure PowerShell, CLI, or ARM JSON templates. You can tag any resources in Azure, and using this service is free. The tagging is done on the Azure platform level and does not impact the performance of the resource in any way.

DE LAS UNIDADES PROGRAMA CURRICULAR UNIDAD 2 - Introduccion a los servicios de azure - Los servicios de Azure - Cómo crear un App Service en Azure - Administrar App Service con Azure Cloud Shell Azure UNIDAD 3 - Introduccion al Modulo - Regiones y centros de datos en azure - Zonas Geograficas en

Resource Manager and the Azure portal through Azure Arc to facilitate resource management at a global level. This also means a single vendor for support and billing. Save time and resources with regular and consistent feature and security updates. Access Azure hybrid services such as Azure Security Center, Azure Backup, and Azure site recovery.

students solve a variety of challenges faced in education through Microsoft Azure and the cloud. Azure for research staff Azure for teaching staff Azure for students Azure for academic institutions Azure is a powerful tool for research and education, and Microsoft provides a number of programs to meet the needs of academic institutions.

Gain Insights into your Microsoft Azure Data using Splunk Jason Conger Splunk. Disclaimer 2 . Deploying Splunk on Azure Collecting Machine Data from Azure Splunk Add-ons Use cases for Azure Data in Splunk 3. Splunk available in Azure Marketplace 4. Splunk in Azure Marketplace

Microsoft Azure interview questions and answers pdf that covers top questions to crack the Azure interview. This type of general questions are very common among Azure interview so don't miss the latest updates of SQL Azure services while preparing for Microsoft Azure interview. 19. When will the workload on SQL schedule get throttled?

Licensing, Packaging, & Pricing Guide Microsoft Azure Stack Hub Microsoft Azure Stack Hub brings the agility and fast paced innovation of cloud computing to on-premises environments. Working together, Azure and Azure Stack Hub deliver a hybrid cloud . (e.g., patch and update) and onboarding tenants to the Azure Stack Hub. As an indirect .