Microsoft azure az900 part-2

 

What is Azure?

Azure is Microsoft's cloud computing platform. Azure is a continually expanding set of cloud services that help your organization meet your current and future business challenges. Azure gives you the freedom to build, manage, and deploy applications on a massive global network using your favorite tools and frameworks.

virtualization technologu - hyperviser to 
fabric controller
orchesrator



Let's take a closer look at the most commonly used categories:

  • Compute
  • Networking
  • Storage
  • Mobile
  • Databases
  • Web
  • Internet of Things
  • Big Data
  • Artificial Intelligence
  • DevOps


Compute

Compute services are often one of the primary reasons why companies move to the Azure platform. Azure provides a range of options for hosting applications and services. Here are some examples of compute services in Azure:

TABLE 1
Service nameService function
Azure Virtual MachinesWindows or Linux virtual machines (VMs) hosted in Azure
Azure Virtual Machine Scale SetsScaling for Windows or Linux VMs hosted in Azure
Azure Kubernetes ServiceEnables management of a cluster of VMs that run containerized services
Azure Service FabricDistributed systems platform. Runs in Azure or on-premises
Azure BatchManaged service for parallel and high-performance computing applications
Azure Container InstancesRun containerized apps on Azure without provisioning servers or VMs
Azure FunctionsAn event-driven, serverless compute service

Networking

Linking compute resources and providing access to applications is the key function of Azure networking. Networking functionality in Azure includes a range of options to connect the outside world to services and features in the global Microsoft Azure datacenters.

Azure networking facilities have the following features:

TABLE 2
Service nameService function
Azure Virtual NetworkConnects VMs to incoming Virtual Private Network (VPN) connections
Azure Load BalancerBalances inbound and outbound connections to applications or service endpoints
Azure Application GatewayOptimizes app server farm delivery while increasing application security
Azure VPN GatewayAccesses Azure Virtual Networks through high-performance VPN gateways
Azure DNSProvides ultra-fast DNS responses and ultra-high domain availability
Azure Content Delivery NetworkDelivers high-bandwidth content to customers globally
Azure DDoS ProtectionProtects Azure-hosted applications from distributed denial of service (DDOS) attacks
Azure Traffic ManagerDistributes network traffic across Azure regions worldwide
Azure ExpressRouteConnects to Azure over high-bandwidth dedicated secure connections
Azure Network WatcherMonitors and diagnoses network issues using scenario-based analysis
Azure FirewallImplements high-security, high-availability firewall with unlimited scalability
Azure Virtual WANCreates a unified wide area network (WAN), connecting local and remote sites

Storage

Azure provides four main types of storage services. These services are:

TABLE 3
Service nameService function
Azure Blob storageStorage service for very large objects, such as video files or bitmaps
Azure File storageFile shares that you can access and manage like a file server
Azure Queue storageA data store for queuing and reliably delivering messages between applications
Azure Table storageA NoSQL store that hosts unstructured data independent of any schema

These services all share several common characteristics:

  • Durable and highly available with redundancy and replication.
  • Secure through automatic encryption and role-based access control.
  • Scalable with virtually unlimited storage.
  • Managed, handling maintenance and any critical problems for you.
  • Accessible from anywhere in the world over HTTP or HTTPS.

Mobile

Azure enables developers to create mobile backend services for iOS, Android, and Windows apps quickly and easily. Features that used to take time and increase project risks, such as adding corporate sign-in and then connecting to on-premises resources such as SAP, Oracle, SQL Server, and SharePoint, are now simple to include.

Other features of this service include:

  • Offline data synchronization.
  • Connectivity to on-premises data.
  • Broadcasting push notifications.
  • Autoscaling to match business needs.

Databases

Azure provides multiple database services to store a wide variety of data types and volumes. And with global connectivity, this data is available to users instantly.

TABLE 4
Service nameService function
Azure Cosmos DBGlobally distributed database that supports NoSQL options
Azure SQL DatabaseFully managed relational database with auto-scale, integral intelligence, and robust security
Azure Database for MySQLFully managed and scalable MySQL relational database with high availability and security
Azure Database for PostgreSQLFully managed and scalable PostgreSQL relational database with high availability and security
SQL Server on VMsHost enterprise SQL Server apps in the cloud
Azure Synapse AnalyticsFully managed data warehouse with integral security at every level of scale at no extra cost
Azure Database Migration ServiceMigrates your databases to the cloud with no application code changes
Azure Cache for RedisCaches frequently used and static data to reduce data and application latency
Azure Database for MariaDBFully managed and scalable MariaDB relational database with high availability and security

Web

Having a great web experience is critical in today's business world. Azure includes first-class support to build and host web apps and HTTP-based web services. The Azure services focused on web hosting include:

TABLE 5
Service NameDescription
Azure App ServiceQuickly create powerful cloud web-based apps
Azure Notification HubsSend push notifications to any platform from any back end.
Azure API ManagementPublish APIs to developers, partners, and employees securely and at scale.
Azure Cognitive SearchFully managed search as a service.
Web Apps feature of Azure App ServiceCreate and deploy mission-critical web apps at scale.
Azure SignalR ServiceAdd real-time web functionalities easily.

Internet of Things

People are able to access more information than ever before. It began with personal digital assistants (PDAs), then morphed into smartphones. Now there are smart watches, smart thermostats, even smart refrigerators. Personal computers used to be the norm. Now the internet allows any item that's online-capable to access valuable information. This ability for devices to garner and then relay information for data analysis is referred to as the Internet of Things (IoT).

There are a number of services that can assist and drive end-to-end solutions for IoT on Azure.

TABLE 6
Service NameDescription
IoT CentralFully-managed global IoT software as a service (SaaS) solution that makes it easy to connect, monitor, and manage your IoT assets at scale
Azure IoT HubMessaging hub that provides secure communications between and monitoring of millions of IoT devices
IoT EdgePush your data analysis models directly onto your IoT devices, allowing them to react quickly to state changes without needing to consult cloud-based AI models.

Big Data

Data comes in all formats and sizes. When we talk about Big Data, we're referring to large volumes of data. Data from weather systems, communications systems, genomic research, imaging platforms, and many other scenarios generate hundreds of gigabytes of data. This amount of data makes it hard to analyze and make decisions. It's often so large that traditional forms of processing and analysis are no longer appropriate.

Open source cluster technologies have been developed to deal with these large data sets. Microsoft Azure supports a broad range of technologies and services to provide big data and analytic solutions.

TABLE 7
Service NameDescription
Azure Synapse AnalyticsRun analytics at a massive scale using a cloud-based Enterprise Data Warehouse (EDW) that leverages massive parallel processing (MPP) to run complex queries quickly across petabytes of data
Azure HDInsightProcess massive amounts of data with managed clusters of Hadoop clusters in the cloud
Azure DatabricksCollaborative Apache Spark–based analytics service that can be integrated with other Big Data services in Azure.

Artificial Intelligence

Artificial Intelligence, in the context of cloud computing, is based around a broad range of services, the core of which is Machine Learning. Machine Learning is a data science technique that allows computers to use existing data to forecast future behaviors, outcomes, and trends. Using machine learning, computers learn without being explicitly programmed.

Forecasts or predictions from machine learning can make apps and devices smarter. For example, when you shop online, machine learning helps recommend other products you might like based on what you've purchased. Or when your credit card is swiped, machine learning compares the transaction to a database of transactions and helps detect fraud. And when your robot vacuum cleaner vacuums a room, machine learning helps it decide whether the job is done.

Some of the most common Artificial Intelligence and Machine Learning service types in Azure are:

TABLE 8
Service NameDescription
Azure Machine Learning ServiceCloud-based environment you can use to develop, train, test, deploy, manage, and track machine learning models. It can auto-generate a model and auto-tune it for you. It will let you start training on your local machine, and then scale out to the cloud
Azure Machine Learning StudioCollaborative, drag-and-drop visual workspace where you can build, test, and deploy machine learning solutions using pre-built machine learning algorithms and data-handling modules

A closely related set of products are the cognitive services. These are pre-built APIs you can leverage in your applications to solve complex problems.

TABLE 9
Service NameDescription
VisionImage-processing algorithms to smartly identify, caption, index, and moderate your pictures and videos.
SpeechConvert spoken audio into text, use voice for verification, or add speaker recognition to your app.
Knowledge mappingMap complex information and data in order to solve tasks such as intelligent recommendations and semantic search.
Bing SearchAdd Bing Search APIs to your apps and harness the ability to comb billions of webpages, images, videos, and news with a single API call.
Natural Language processingAllow your apps to process natural language with pre-built scripts, evaluate sentiment and learn how to recognize what users want.

DevOps

DevOps (Development and Operations) brings together people, processes, and technology, automating software delivery to provide continuous value to your users. Azure DevOps Services allows you to create build and release pipelines that provide continuous integration, delivery, and deployment for your applications. You can integrate repositories and application tests, perform application monitoring, and work with build artifacts. You can also work with and backlog items for tracking, automate infrastructure deployment and integrate a range of third-party tools and services such as Jenkins and Chef. All of these functions and many more are closely integrated with Azure to allow for consistent, repeatable deployments for your applications to provide streamlined build and release processes.

Some of the main DevOps services available with Azure are Azure DevOps Services and Azure DevTest Labs.

TABLE 10
Service NameDescription
Azure DevOpsAzure DevOps Services (formerly known as Visual Studio Team Services, or VSTS), provides development collaboration tools including high-performance pipelines, free private Git repositories, configurable Kanban boards, and extensive automated and cloud-based load testing
Azure DevTest LabsQuickly create on-demand Windows and Linux environments you can use to test or demo your applications directly from your deployment pipelines

What is an App Service?

Azure App Service is an HTTP-based service that enables you to build and host many types of web-based solutions without managing infrastructure.



Typically, the first thing we'd do is to create a resource group to hold all the things that we need to create. 

What is scale?


Scale refers to adding network bandwidth, memory, storage, or compute power to achieve better performance.

You may have heard the terms scaling up and scaling out.

Scaling up, or vertical scaling means to increase the memory, storage, or compute power on an existing virtual machine. For example, you can add additional memory to a web or database server to make it run faster.

Scaling out, or horizontal scaling means to add extra virtual machines to power your application. For example, you might create many virtual machines configured in exactly the same way and use a load balancer to distribute work across them.


What is Azure Cloud Shell?

Azure Cloud Shell is a browser-based command-line experience for managing and developing Azure resources. Think of Cloud Shell as an interactive console that you run in the cloud.

Cloud Shell provides two experiences to choose from, Bash and PowerShell. Both include access to the Azure command-line interface called Azure CLI and to Azure PowerShell.

You can use any Azure management interface, including the Azure portal, Azure CLI, and Azure PowerShell, to manage Azure resources. For learning purposes, here you'll use the Azure CLI to start and stop the WordPress site we created earlier.

Suppose you have several websites deployed and want to stop or start each of these websites without accessing each App service individually using the portal. This effort is an easy task that you can convert into a script using Cloud Shell and Azure CLI.

In this exercise, you'll use the Cloud Shell window shown side by side with the exercise instructions. When normally accessing the Cloud Shell from within the Azure portal, you'll click the Cloud Shell icon from the top navigation bar. This icon is sometimes within the ellipsis (...) menu icon next to your profile.

Screenshot of Azure portal navigation bar with ellipses menu expanded and Cloud Shell icon highlighted.

For this exercise, we'll use the Cloud Shell experience as part of our sandbox implementation.

 Tip

You can use the Copy button to copy commands to the clipboard. To paste, right-click on a new line in the Cloud Shell window and select Paste or use the Shift+Insert keyboard shortcut (⌘+V on macOS).

  1. Our first step is to make sure that we work with the correct Azure subscription before we change any settings. We'll use the az account list list command. By default, the command returns a JSON string. However, we'll format the output as a table to make the information easier to work with. Run the following command.

    Azure CLI
    az account list --output table
    
  2. Recall that we used a pre-created resource group called learn-3674fdff-676c-4af6-8791-a54fe3641801 when we created our website. However, if you ever need to list all the resource groups in a subscription, then you'll run the az group list command.

    Azure CLI
    az group list --output table
    
  3. Next, we'll list all the resources in the learn-3674fdff-676c-4af6-8791-a54fe3641801 using the az resource list command. The command will return a list of resources. By specifying, --resource-type we can filter the result to include only the resource information related to websites.

    Run the following command.

    Azure CLI
    az resource list \
        --resource-group learn-3674fdff-676c-4af6-8791-a54fe3641801 \
        --resource-type Microsoft.Web/sites
    

    Here an example of the command's output:

    JSON
    {
    "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/learn-3674fdff-676c-4af6-8791-a54fe3641801/providers/Microsoft.Web/sites/BlogFor",
    "identity": null,
    "kind": "app",
    "location": "centralus",
    "managedBy": null,
    "name": "MyWebApp",
    "plan": null,
    "properties": null,
    "resourceGroup": "learn-3674fdff-676c-4af6-8791-a54fe3641801",
    "sku": null,
    "tags": null,
    "type": "Microsoft.Web/sites"
    }
    

    Copy the value of name. We'll use it in the next steps to first stop and then start our website.

  4. We'll use the az webapp stop command to stop the web application running in our app service. Replace <web app name> with the name of your web app you copied, then run this command to stop your web app.

    Azure CLI
    az webapp stop \
        --resource-group learn-3674fdff-676c-4af6-8791-a54fe3641801 \
        --name <web app name>
    
  5. Open the website in a new browser tab. You'll find the URL to the site in the overview of the App service in the portal. You'll see a message in your browser that reads:

    Screenshot of a stopped App Service web app showing "Error 403 - This web app is stopped".

  6. Finally, let's start the web app by running the az webapp start command. Replace <web app name> with the name of your web app you copied, then run this command to start your web app.

    Azure CLI
    az webapp start \
        --resource-group learn-3674fdff-676c-4af6-8791-a54fe3641801 \
        --name <web app name>
    
  7. Switch back to the tab for your website and refresh the page. Your website will be available after a couple of seconds.

.






Python-1

Python Revision Notes - Comprehensive Study Guide Section 1: Python Environment Setup 4. Different Ways of Creating Python Environment [...