<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mark Shay on Medium]]></title>
        <description><![CDATA[Stories by Mark Shay on Medium]]></description>
        <link>https://medium.com/@ms4446?source=rss-bc079425cf0f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*FA51UFOgMhB4wsW-</url>
            <title>Stories by Mark Shay on Medium</title>
            <link>https://medium.com/@ms4446?source=rss-bc079425cf0f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 17:02:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ms4446/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Week of November 20th | SQL Squirrels]]></title>
            <link>https://ms4446.medium.com/week-of-november-20th-sql-squirrels-eb7db2f5f70b?source=rss-bc079425cf0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb7db2f5f70b</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <dc:creator><![CDATA[Mark Shay]]></dc:creator>
            <pubDate>Fri, 20 Nov 2020 16:45:00 GMT</pubDate>
            <atom:updated>2020-11-23T17:11:44.911Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_jLAqiIcXos8iUNlY0qlmg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/0*stCtBNXjrH0UKSGE" /></figure><p><em>“Climb</em>🧗‍♀️ <em>in the back with your head</em>👤 <em>in the Clouds</em>☁️☁️ <em>… And you’re gone</em> “</p><p>Hi All -</p><p>Happy Name Your PC💻 Day!</p><p><em>“Forward yesterday makes me wanna stay…”</em></p><p>“Welcome back, to that same old place that you laughed 😂 about”. So, after a short recess we made our splendiferous return this week. To where else? …But to no other than Google Cloud Platform a.k.a GCP☁️ , of course! 😊 So after completing our <a href="https://sqlsquirrels.com/category/gcp-cloud-series/">three-part Cloud Journey</a>, we were feeling the need for a little refresher… Also, there were still had a few loose ends we needed to sew🧵 up. The wonderful folks at Google Cloud☁️ put together amazing compilation on GCP☁️ through their <a href="https://app.pluralsight.com/paths/certificate/cloud-engineering-with-google-cloud">Google Cloud Certified Associate Cloud Engineer Path</a> but we were feeling the need for a little more coverage on GCP CLI i.e. “gcloud”, “gsutil”, and “bq” . In addition, we had a great zest to learn a little more about some of the service offerings like GCP Development Services and APIs. Fortunately, we knew exactly who could deliver tremendous content on GCP☁️ as well as hit the sweet spot on some of the areas where we felt we were lacking a bit. That would be of course one of our favorite Canucks 🇨🇦 <a href="https://www.linkedin.com/in/mattias-andersson/">Mattias Andersson</a></p><p>For those who are not familiar with Mattias, he is one of the legendary instructors on <a href="https://acloudguru.com/">A Cloud Guru</a>. Mattias is especially well-known for his critically acclaimed <a href="https://acloud.guru/overview/gcp-certified-associate-cloud-engineer">Google Certified Associate Cloud Engineer 2020</a> course.</p><p>In this brilliantly produced course Mattias delivers the goods and then some! The goal of the course is to prepare those interested in preparing for Google’s Associate Cloud Engineer (ACE) Certification exam but it’s structured in a manner to efficiently to provide you with the skills to troubleshoot GCP through having a better understanding of “Data flows”. Throughout the course Mattias emphasizes the “<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4785880/"><em>see one, do one, teach one</em></a>” technique in order to get the best ROI out of the tutorial.</p><p>So, after some warm salutations and a great overview of the <a href="https://cloud.google.com/certification/cloud-engineer">ACE Exam</a>, Mattias takes right to an introductions of all the <a href="https://raw.githubusercontent.com/gregsramblings/google-cloud-4-words/master/DarkPoster-medres.png">Google Cloud product and Services</a>. He accentuates the importance of Data Flow in fully understanding how all GCP solutions work. “<strong><em>Data Flow </em></strong><em>is taking data or information and it’s moving it around, processing it and remembering it.</em>”</p><p>Data flows — are the foundation of every system</p><p><em>“Let’s get it started, in here…And the base keep runnin’ 🏃‍♂️ runnin’ 🏃‍♂️, and runnin’ 🏃‍♂️ runnin’ 🏃‍♂️, and runnin’ 🏃‍♂️ runnin’ 🏃‍♂️, and runnin’ 🏃‍♂️ runnin’ 🏃‍♂️, and runnin’ 🏃‍♂️ runnin’ 🏃‍♂️, and runnin’ 🏃‍♂️ runnin’ 🏃‍♂️, and runnin’ 🏃‍♂️ runnin’ 🏃‍♂️, and runnin’ 🏃‍♂️ runnin’ 🏃‍♂️, and…”</em></p><ul><li>Moving, Processing, Remembering</li><li>Build mental models</li><li>Identify and think through data flows</li><li>Requirement and options not always clear</li><li>Critical skills for both real world🌎 and exam📝 questions</li></ul><p><em>“Share it fairly, but don’t take a slice of my pie 🥧”</em></p><p>After walking🚶‍♀️ us through how to create a Free account it was time ⏰ to kick off 🦵 us with a little Billing and Billing Export.</p><p><strong>Billing Export</strong> -to BigQuery enables you to export your daily usage and cost estimates automatically throughout the day to a BigQuery dataset.</p><ul><li>Export must be set up per billing account</li><li>Resources should be placed into appropriate projects</li><li>Resources should be tagged with labels🏷</li><li>Billing export is not real-time</li></ul><p><strong>Billing IAM</strong> — Role: Billing Account User</p><p><strong>Budgets</strong> — Help with project planning and controlling costs</p><ul><li>Setting a budget lets you track spend</li><li>Apply budget to billing account or a Project</li></ul><p><strong>Alerts</strong> 🔔 — notify billing administrators when spending exceeds a percentage of your budget</p><p><strong>Google Cloud Shell</strong> 🐚 — provides with CLI access to Cloud☁️ Resources directly from your browser.</p><ul><li>Command-line tool🔧 to interact GCP☁️</li><li>Basic Syntax</li></ul><pre> gcloud-project=myprojid compute instances list<br> gcloud compute instances create myvm<br> gcloud services list --available<br> gsutil ls<br> gsutil mb -l northamerica-northeast1 gs://storage-lab-cli<br> gsutil label set bucketlables.json gs://storage-lab-cli</pre><p><strong>GCS via gsutil in Command Line</strong></p><p><strong>Create VM via gsutil in Command Line</strong></p><pre>gcloud config list gcloud config set project igneous-visitor-293922 gsutil ls gsutil ls gs://storage-lab-console-088/ gsutil ls gs://storage-lab-console-088/** gsutil mb --help gsutil mb -l northamerica-northeast1 gs://storage-lab-cli-088 gsutil label get gs://storage-lab-console-088/ gsutil label get gs://storage-lab-console-088/ &gt; bucketlabels.json cat bucketlabels.json gsutil label get gs://storage-lab-cli-088 gsutil label set bucketlabels.json gs://storage-lab-cli-088 gsutil label ch -l &quot;extralable:etravalue&quot; gs://storage-lab-cli-088 gsutil versioning get gs://storage-lab-cli-088 gsutil versioning set on gs://storage-lab-cli-088 gsutil versioning get gs://storage-lab-cli-088 gsutil cp README-Cloudshell.txt gs://storage-lab-cli-088 gsutil ls -a gs://storage-lab-cli-088 gsutil rm gs://storage-lab-cli-088/README-Cloudshell.txt gsutil cp gs://storage-lab-console-088/** gs://storage-lab-cli-088/ gsutil acl ch -u AllUsers:R gs://storage-lab-cli-088/shutterstock.jpg</pre><p><strong>Confidentiality, Integrity, and Availability (CIA)</strong> <strong>Authentication, Authorization, Accounting (AIA)</strong></p><pre>gcloud config get-value project gcloud compute instances list gcloud services list gcloud services list --enabled gcloud services list --help gcloud services list -available gcloud services list --available |grep compute gcloud services -h gcloud compute instances create myvm gcloud compute instances delete myvm</pre><ul><li>Resiliency — Keep it running 🏃‍♂️</li><li>Security🔒 Products</li><li>Security🔒 Features</li><li>Security🔒 Mindset</li></ul><p><strong>IAM — Resource Hierarchy👑</strong></p><ul><li>Identity hierarchy👑 (Google Groups)</li><li>Resource⚙️ hierarchy👑 (Organization, Folders📂, Projects)</li><li>GCS ACLs</li><li>Billing management</li><li>Networking structure &amp; restrictions</li><li>Audit / Activity Logs (provided by Stackdriver)</li><li>GCS object Lifecycle Management</li></ul><p><strong>IAM — Permissions &amp; Roles</strong></p><ul><li>Resource⚙️</li><li>Project</li><li>Folder📂</li><li>Organization</li></ul><p>Permissions — allows you to a perform a certain action</p><p>Roles — is a collection of permissions to use or manage GCP☁️ resources</p><p><strong>IAM — Members &amp; Groups</strong></p><p>Members — some Google-known identity</p><ul><li>Each member is identifying by unique email📧 address</li><li>Can be:</li></ul><p>Groups — a collection of Google accounts and service accounts</p><p><strong>IAM — Policies</strong></p><ul><li>Every group has a unique email📧 address that is associated with the group</li><li>You never act as the group</li><li>Use them for everything</li><li>Can be used for owner when within an organization</li><li>Can nest groups in an organization</li></ul><p>Policies — binds members to roles for some scope of resources</p><ul><li>Enforce who can do what to which thing(s)</li><li>Roles and Members listed in policy, but Resources identified by attachment</li><li>Always additive (Allow) and never subtractive (no Deny)</li><li>One policy per Resource⚙️</li><li>Max 1500-member binding per policy</li></ul><pre>gCloud[GROUP] add-iam-policy-binding [Resource-NAME] --role [ROLE-ID-TO-GRANT] -member user: [USER-EMAIL] gCloud[GROUP] remove-iam-policy-binding [Resource-NAME] --role [ROLE-ID-TO-REVOKE] -member user: [USER-EMAIL]</pre><p><strong>Billing Accounts </strong>— represents some way to pay for GCP☁️ service usuage</p><ul><li>Type of Resource⚙️ that lives outside of Projects</li><li>Can belong to an Organization</li></ul><p>Billing Account Creator</p><p>Create new self-service billing accounts</p><p>Org</p><p>Billing Account Administrator</p><p>Manage billing accounts</p><p>Billing Account</p><p>Billing Account User</p><p>Link Projects to billing accounts</p><p>Billing Account</p><p>Billing Account Viewer</p><p>View billing account cost information and transactions</p><p>Billing Account</p><p>Project Billing Manager</p><p>Link/unlink the project to/from a billing account</p><p>Project</p><p><strong>Monthly Invoiced Billing </strong>— Billed monthly and pay by invoice due date</p><p><strong>Networking</strong> <strong>Unicast vs Anycast</strong></p><ul><li>Pay via check or wire transfer</li><li>Increase project and quota limits</li></ul><p>Unicast — There is only one unique device in the world that can handle this; send it there.</p><p><strong>Load Balancing — Layer 4 vs Layer 7</strong></p><p>Anycast — There are multiple devices that could handle this; send it to anyone — but ideally the closest.</p><ul><li>TCP is usually called Layer 4 (L4)</li><li>HTTP and HTTPS work at Layer (L7)</li></ul><p><strong>DNS </strong>— Name resolution (via the Domain Name System) can be the first step in routing</p><p><strong>Options for Data from one Resource to another</strong></p><ul><li>Some known issues with DNS</li><li>Premium tier routing with Global🌎 anycast Ips avoids these problems</li></ul><p><strong>IPs and CIDRS</strong></p><ul><li>VPC (Global🌎) Virtual Private Cloud☁️ — Private SDN space in GCP☁️</li><li>Subnets (regional) — create logical spaces to contain resources</li></ul><p><strong>Subnet CIDR Ranges</strong> <strong>Shared VPC</strong></p><ul><li>IP Address is 255.255.255.255 (dotted quad) where each piece is 0–255</li><li>CIDR block is group of IP addresses specified in &lt;IP&gt;/xy notation</li><li>RFC1918 defines private (i.e non-internet) address ranges you can use:</li><li>Lets multiple projects coexist on same local network (private IP space)</li><li>Let’s a centralized team manage network security🔒</li></ul><p><strong>GKE</strong></p><p><em>“Ride, captain</em>👨🏿‍✈️ <em>ride upon your mystery ship</em>⛵️ <em>“</em></p><p>A Kubernetes ☸️ cluster is a set of nodes that run containerized applications. Containerizing applications packages an app with its dependences and some necessary services.</p><p><strong>Deploy and manage clusters on-prem</strong></p><p>K8s ☸️ you know that the control plane consists of the kube-apiserver, kube-scheduler, kube-controller-manager and an etcd datastore.</p><p>Step 1: The container runtime</p><p>Step 2: Installing kubeadm</p><p>Step 3: Starting the Kubernetes cluster ☸️</p><p>Step 4: Joining a node to the Kubernetes cluster ☸️</p><p>To deploy and manage your containerized applications and other workloads on your Google Kubernetes Engine (GKE) cluster, you use the K8s ☸️ system to create K8s ☸️ controller objects. These controller objects represent the applications, daemons, and batch jobs running 🏃‍♂️ on your clusters.</p><p><strong>Kubernetes fits into the Cloud-native ecosystem</strong></p><p><strong>Cloud Native Application Properties</strong></p><p><strong>Deploy and manage applications on Kubernetes ☸️</strong></p><p>K8s ☸️ native technologies (tools/systems/interfaces) are those that are primarily designed and built for Kubernetes ☸️.</p><p>K8s ☸️ deployments can be managed via Kubernetes ☸️ command line interface kubectl. Kubectl uses the Kubernetes ☸️ API to interact with the cluster.</p><p>When creating a deployment, you will need to specify the container image for your application and the number of replicas that you need in your cluster.</p><ul><li>Create Application</li><li>Create a Docker🐳 container image</li><li>Create a K8s ☸️ Deployment</li></ul><p>K8s ☸️ objects can be created, updated, and deleted by storing multiple object configuration files in a directory and using kubectl apply to recursively create and update those objects as needed.</p><p><strong>DaemonSet</strong></p><p>This method retains writes made to live objects without merging the changes back into the object configuration files. kubectl diff also gives you a preview of what changes apply will make.</p><p>A DaemonSet ensures that all (or some) Nodes run a copy of a Pod. As nodes are added to the cluster, Pods are added to them. As nodes are removed from the cluster, those Pods are garbage collected. Deleting a DaemonSet will clean up the Pods it created.</p><p>Some typical uses of a DaemonSet are:</p><p>Google Kubernetes☸️ Engine (GKE) offers integrated support for two types of Cloud☁️ Load Balancing for a publicly accessible application:</p><p>When you specify type:LoadBalancer 🏋️‍♀️ in the Resource⚙️ manifest:</p><p>Although you can use either of these types of load balancers 🏋️‍♀️ for HTTP(S) traffic🚦, they operate in OSI layers 3/4 and are not aware of HTTP connections or individual HTTP requests and responses.</p><p><strong>GCP Services</strong> <strong>Compute</strong></p><p>Imagine all the people👥 sharing all the world🌎</p><p><strong>Compute Engine (GCE) </strong>— (Zonal) (IaaS) — Fast-booting Virtual Machines (VMs) for rent/demand</p><p><strong>Kubernetes Engine (GKE) </strong>— (Regional (IaaS/Paas) -Managed Kubernetes ☸️ cluster for running 🏃‍♂️ Docker🐳 containers (with autoscaling)</p><ul><li>Kubernetes☸️ DNS on by default for service discovery</li><li>NO IAM integration (unlike <a href="https://aws.amazon.com/ecs/">AWS ECS</a>)</li><li>Integrates with Persistent Disk for storage</li><li>Pay for underlying GCE instances</li><li>No GKE management fee, no matter how many nodes in cluster</li></ul><p><strong>App Engine (GAE) </strong>— (Regional (PaaS) that takes your code and runs it</p><ul><li>Much more than just compute — Integrates storage, queues, NoSQL</li><li>Flex mode (“App Engine Flex”) can run any container &amp; access VPC</li><li>Auto-Scales⚖️ based on load</li><li>Effectively pay for underlying GCE instances and other services</li></ul><p><strong>Storage</strong></p><p><strong>Cloud Functions </strong>— (Regional (FaaS), “Serverless” -Managed K8s☸️ cluster for running 🏃‍♂️ Docker🐳 containers (with autoscaling)</p><p><strong>Persistent Disk (PD)</strong> — (Zonal) Flexible🧘‍♀️, block-based🧱 network-attached storage; boot disk for every GCE instance</p><p><strong>Cloud Filestore </strong>— (Zonal) Fully managed file-based storage</p><ul><li>“Predictably fast🏃‍♂️ performance for your file-based workloads”</li><li>Accessible to GCE and GKE through your VPC, via NFSv3 protocol</li><li>Primary use case is application migration to Cloud☁️ (“<strong>lift and shift</strong>”)🚜</li><li>Fully manages file serving, but not backups</li><li>Pay for provisioned TBs in “Standard” (slow) or “Premium” (fast🏃‍♂️) mode</li><li>Minimum provisioned capacity of 1TB (Standard) or 2.5TB (Premium)</li></ul><p><strong>Cloud Storage (GCS) </strong>— (Regional, Multi-Regional) Infinitely Scalable⚖️, fully managed, versioned, and highly durable object storage</p><p><strong>Databases</strong></p><ul><li>Designed for 99.999999999% (11 9’s) durability</li><li>Strong consistent💪 (even for overwrite PUTs and DELETEs)</li><li>Integrated site hosting and CDN functionality</li><li>Lifecycle♻️ transitions across classes: Multi-Regional, Regional, Nearline, Coldline🥶</li><li>All Classes have same API, so can use gsutil and <a href="https://cloud.google.com/storage/docs/gcs-fuse">gcsfuse</a></li></ul><p><strong>Cloud SQL </strong>— (Regional, Fully managed and reliable MySQL and PostgreSQL databases</p><ul><li>Supports automatic replication, backup, failover, etc.</li><li>Scaling is manual (both vertically and horizontally)</li><li>Effectively pay for underlying GCE instances and PDs</li></ul><p><strong>Cloud Spanner </strong>— (Regional, Multi-Regional), Global🌎 horizontally Scalable⚖️, strongly consistent 💪, relational database service”</p><ul><li>“From 1 to 100s or 1000s of nodes”</li><li>Chooses Consistency and Partition — Tolerance (CP and CAP theorem)</li><li>Pay for provisioned node time (by region/multi-region) plus used storage-time</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/228/0*0L_DVBV4tgvFHw2C" /></figure><p><strong>BigQuery (BQ)</strong> — Multi-Regional Serverless column-store data warehouse for analytics using SQL</p><ul><li>Scales⚖️ internally (TB in seconds and PB in minutes)</li><li>Pay for GBs actually considered (scanned) during queries</li><li>Pay for GBs added via streaming inserts</li></ul><p><strong>Cloud Datastore </strong>— (Regional, Multi-Regional) Managed &amp; autoscale⚖️ NoSQL DB with indexes, queries, and ACID trans, support</p><p><strong>Cloud Bigtable </strong>— (Zonal) Low latency &amp; high throughput NoSQL DB for large operational &amp; analytical apps</p><ul><li>Supports open-source HBase API</li><li>Integrates with Hadoop, Dataflow, Dataproc</li><li>Pay for processing node hours</li><li>GB-hours used for storage 🗄 (cheap HDD or fast🏃‍♂️ SSD)</li></ul><p><strong>Firebase Realtime DB &amp; Cloud Firestore 🔥</strong> — (Regional, Multi-Regional) NoSQL document📃 stores with ~real-time client updates via managed WebSockets</p><ul><li>Firebase DB is single (potentially huge) JSON doc, located only in central US</li><li>Cloud☁️ Firestore has collection, documents📃, and contained data</li></ul><p><strong>Data Transfer</strong> ↔️</p><p><strong>Data Transfer Appliance </strong>— Rackable, high-capacity storage 🗄 server to physically ship data to GCS</p><ul><li>Ingest only; not a way to avoid egress charges</li><li>100 TB or 480 TB/week is faster than a saturated 6 Gbps link🔗</li></ul><p><strong>External Networking</strong></p><p><strong>Storage Transfer Service — (Global) </strong>Copies objects for you, so you don’t need to set up a machine to do it</p><p><strong>Google Domains</strong> — (Global) Google’s registrar for domain names</p><p><strong>Cloud DNS</strong> — (Global) Scalable⚖️, reliable, &amp; managed authoritative Domain (DNS) service</p><p><strong>Static IP Addresses </strong>— (Regional, Global🌎 Reserve static IP addresses in projects and assign them to resources</p><p><strong>Cloud Load Balancing (CLB)</strong> — (Regional, Global🌎 High-perf, Scalable ⚖️ traffic🚦 distribution integrated with autoscaling &amp; Cloud☁️ CDN</p><ul><li>SDN naturally handles spikes without any prewarming, no instances or devices</li><li>Regional Network Load Balancer 🏋️‍♀️: health checks, round robin, session affinity</li><li>Pay by making ingress traffic🚦 billable (Cheaper than egress) plus hourly per rule</li></ul><p><strong>Cloud CDN </strong>— (Global) Low-latency content delivery based on HTTP(S) CLB integrated w/ GCE &amp; GCS</p><p><strong>Virtual Private Cloud (VPC)</strong> — (Regional, Global), Global IP v4 unicast Software-Defined Network (SDN) for GCP☁️ resources</p><p><strong>Cloud Interconnect </strong>— (Regional, Multi-Regional) Options for connecting external networks to Google’s network</p><p><strong>Internal Networking</strong></p><ul><li>Private connections to VPC via Cloud VPN or Dedicated/Partner Interconnect</li><li>Significantly lower egress fees</li></ul><p><strong>Cloud Virtual Private Network (VPN)</strong> — (Regional) IPSEC VPN to connect to VPC via public internet for low-volume data connections</p><ul><li>For persistent, static connections between gateways (i.e. not for a dynamic client)</li><li>Encrypted 🔐 link🔗 to VPC (as opposed to Dedicated interconnect), into one subnet</li><li>Supports both static and dynamic routing</li><li>99.9% availability SLA</li><li>Pay per tunnel-hour</li><li>Normal traffic🚦 charges apply</li></ul><p><strong>Dedicated Interconnect</strong> — (Regional, Multi-Regional) Direct physical link 🔗 between VPC and on-prem for high-volume data connections</p><ul><li>VLAN attachment is private connection to VPC in one region: no public GCP☁️ APIs</li><li>Links are private but not Encrypted 🔐; can layer your own encryption 🔐</li><li>Pay fee 10 Gbps link, plus (relatively small) fee per VLAN attachment</li><li>Pay reduced egress rates from VPC through Dedicated Interconnect</li></ul><p><strong>Cloud Router 👮‍♀️</strong> — (Regional) Dynamic routing (BGP) for hybrid networks linking GCP VPCs to external networks</p><ul><li>Works with Cloud VPN and Dedicated Interconnect</li><li>Automatically learns subnets in VPC and announces them to on-prem network</li><li>Without Cloud Router👮‍♀️ you must manage static routes for VPN</li><li>Free to set up</li><li>Pay for usual VPC egress</li></ul><p><strong>CDN Interconnect</strong> — (Regional, Multi-Regional) Direct, low-latency connectivity to certain CDN providers, with cheaper egress</p><ul><li>For external CDNs, not Google’s Cloud CDN service</li><li>Works for both pull and push cache fills</li><li>Contact CDN provider to set up for GCP☁️ project and which regions</li><li>Free to enable, then pay less for the egress you configured</li></ul><p><strong>Cloud Machine Learning (ML) Engine </strong>— (Regional) Massively Scalable ⚖️ managed service for training ML models &amp; making predictions</p><p><strong>Cloud Vison API👓 </strong>— (Global) Classifies images🖼 into categories, detects objects/faces, &amp; finds/reads printed text</p><ul><li>Pre-trained ML model to analyze images🖼 and discover their contents</li><li>Classifies into thousands of categories (e.g., “sailboat”, “lion”, “Eiffel Tower”)</li><li>Upload images🖼 or point to ones stored in GCS</li></ul><p><strong>Cloud Natural Language API </strong>💬 — (Global) Analyzes text for sentiment, intent, &amp; content classification, and extracts info</p><p><strong>Cloud Translation API </strong>-(Global) Translate text among 100+ languages; optionally auto-detects source language</p><p><strong>Dialogflow </strong>— (Global) Build conversational interfaces for websites, mobile apps, messaging, IoT devices</p><p><strong>Big Data and IoT</strong></p><p><strong>Cloud Job Discovery</strong> — (Global) Helps career sites, company job boards, etc. to improve engagement &amp; conversion</p><p>Four Different Stages:</p><ol><li>Ingest — Pull in all the raw data in</li><li>Store — Store data without data loss and easy retrieval</li><li>Process — transform that raw data into some actionable information</li><li>Explore &amp; Visualize — turn the results of that analysis into something that’s valuable for your business</li></ol><p><strong>Cloud Internet of Things (IoT) Core</strong> — (Global) Fully managed service to connect, manage, and ingest data from device Globally</p><p><strong>Cloud Pub/Sub</strong> — (Global) Infinitely Scalable⚖️ at-least-once messaging for ingestion, decoupling, etc.</p><ul><li>“Global🌎 by default: Publish… and consume from anywhere, with consistent latency”.</li><li>Messages can be up to 10 MB and undelivered ones stored for 7 days-but no DLQ</li><li>Push mode delivers to HTTPS endpoints &amp; succeeds on HTTP success status code</li><li>Pull mode delivers messages to requestion clients and waits for ACK to delete</li><li>Pay for data volume</li></ul><p><strong>Cloud Dataprep</strong> — (Global) Visually explore, clean, and prepare data for analysis without running 🏃‍♂️ servers</p><ul><li>“Data Wrangling” (i.e. “ad-hoc ETL”) for business analysts, not IT pros</li><li>Managed version of Trifacta Wrangler — and managed by Trifacta, not Google</li><li>Source data from GCS, BQ, or file upload — formatted in CSV, JSON, or relational</li><li>Automatically detects schemas, datatypes, possible joins, and various anomalies</li><li>Pay for underlying Daaflow job, plus management overhead charge</li><li>Pay for other accessed services (e.g. GCS, BQ)</li></ul><p><strong>Cloud Dataproc</strong> — (Zonal) Batch MapReduce processing via configurable, managed Spark &amp; Hadoop clusters</p><ul><li>Handles being told to scale (adding or removing nodes) even while running 🏃‍♂️ jobs</li><li>Integrated with Cloud☁️ Storage, BigQuery, Bigtable, and some Stackdriver services</li><li>“Image versioning” switches between versions of Spark, Hadoop, &amp; other tools</li><li>Pay directly for underlying GCE servers used in the cluster — optionally preemptible</li><li>Pay a Cloud Dataproc management fee per vCPU-hour in the cluster</li><li>Best for moving existing Spark/Hadoop setups to GCP☁️</li></ul><p><strong>Cloud Datalab </strong>🧪- (Regional) Interactive tool 🔧 for data exploration🔎, analysis, visualization📊 and machine learning</p><ul><li>Uses Jupyter Notebook📒</li><li>Supports iterative development of data analysis algorithms in Python🐍/ SQL/~JS</li><li>Pay for GCE/GAE instance hosting and storing (on PD) your notebook📒</li><li>Pay for any other resources accessed (e.g. BigQuery)</li></ul><p><strong>Cloud Data Studio</strong> — (Global) Big Data Visualization📊 tool 🔧 for dashboards and reporting</p><p><strong>Cloud Genomics </strong>🧬- (Global) Store and process genomes🧬 and related experiments</p><p><strong>Roles</strong> — (Global) collections of Permissions to use or manage GCP☁️ resources</p><ul><li>Permissions allow you to perform certain actions: Service.Resource.Verb</li><li>Predefined Roles: Give granular access to specific GCP☁️ resources (IAM)</li><li>Custom Roles: Project- or Org-level collections you define of granular permissions</li></ul><p><strong>Cloud Identity and Access Management (IAM)</strong> — (Global) Control access to GCP☁️ resources: authorization, not really authentication/identity</p><ul><li>Policies bind Members to Roles at a hierarchy👑 level: Org, Folder📂, Project, Resource⚙️</li><li>IAM is free; pay for authorized GCP☁️ service usage</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/359/0*YC_NfO4ZP183S8NV" /></figure><p><strong>Service Accounts</strong> — (Global) Special types of Google account that represents an application, not an end user</p><ul><li>Can be “assumed” by applications or individual users (when so authorized)</li><li>“Important: For almost all cases, whether you are developing locally or in a production application, you should use service accounts, rather than user accounts or API keys🔑.”</li><li>Consider resources and permissions required by application; use least privilege</li><li>Can generate and download private keys🔑 (user-managed keys🔑), for non-GCP☁️</li><li>Cloud-Platform-managed keys🔑 are better, for GCP☁️ (i.e. GCF, GAE, GCE, and GKE)</li></ul><p><strong>Cloud Identity</strong> — (Global) Identity as a Service (IDaaS, not DaaS) to provision and manage users and groups</p><p><strong>Security Key Enforcement</strong> — (Global) USB or Bluetooth 2-step verification device that prevents phishing🎣</p><ul><li>Not like just getting a code via email📧 or text message…</li><li>Eliminates man-in-the-middle (MITM) attacks against GCP☁️ credentials</li></ul><p><strong>Cloud Resource Manager</strong> — (Global) Centrally manage &amp; secure organization’s projects with custom Folder📂 hierarchy👑</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/0*Br8e30d9343BWXiI" /></figure><p><strong>Cloud Identity-Aware Proxy (IAP)</strong> — (Global) Guards apps running 🏃‍♂️ on GCP☁️ via identity verification, not VPN access</p><p><strong>Cloud Audit Logging</strong> — (Global) “Who did what, where and when?” within GCP☁️ projects</p><p><strong>Cloud Armor🛡 </strong>— (Global) Edge-level protection from DDoS &amp; other attacks on Global🌎 HTTP(S) LB🏋️‍♀️</p><p><strong>Cloud Security Scanner</strong> — (Global) Free but limited GAE app vulnerability scanner with “very low false positive rates”</p><ul><li>“After you set up a scan, Cloud☁️ Security🔒 Scanner automatically crawls your application, following all links🔗 within the scope of your starting URLs, and attempts to exercise as many user inputs and event handlers as possible.”</li><li>Can identify:</li></ul><p><strong>Cloud Data Loss Prevention API (DLP) </strong>— (Global) Finds and optionally redacts sensitive info is unstructured data streams</p><ul><li>Helps you minimize what you collect, expose, or copy to other systems</li><li>50+ sensitive data detectors, including credit card numbers, names, social security🔒 numbers, passport numbers, driver’s license numbers (US and some other jurisdictions), phone numbers, and other personally identifiable information (PII)</li><li>Data can be sent directly, or API can be pointed at GCS, BQ, or Cloud☁️ DataStore</li><li>Can scan both text and images🖼</li><li>Pay for amount of data processed (per GB) -and gets cheaper when large volume</li></ul><p><strong>Event Threat Detection (ETD)</strong> — (Global) Automatically scans your Stackdriver logs for suspicious activity</p><ul><li>Uses industry-leading threat intelligence, including Google Safe Browsing</li><li>Can export parsed logs to BigQuery for forensic analysis</li><li>Integrates with SIEMs like Google’s Cloud☁️ SCC or via Cloud Pub/Sub</li><li>No charge for ETD, but charged for its usage of other GCP☁️ services (like SD Logging)</li></ul><p><strong>Cloud Security Command Center (SCC)</strong> — (Global)</p><ul><li>“Comprehensive security🔒 management and data risk platform for GCP☁️”</li><li>Security🔒 Information and Event Management (SIEM) software</li><li>“Helps you prevent, detect &amp; respond to threats from a single pane of glass”</li><li>Use: Security🔒 Marks” (aka “marks”) to group, track, and manage resources</li><li>Integrate ETD, Cloud☁️ Scanner, DLP, &amp; many external security🔒 finding sources</li><li>Can alert 🔔 to humans &amp; systems; can export data to external SIEM</li><li>Free! But charged for services used (e.g. DLP API, if configured)</li><li>Could also be charged for excessive uploads of external findings</li></ul><p><strong>Cloud Key Management Services (KMS)</strong> — (Regional, Multi-Regional, Global) Low-latency service to manage and use cryptographic keys🔑</p><ul><li>Supports symmetric (e.g. AES) and asymmetric (e.g. RSA, EC) algorithms</li><li>Move secrets out of code (and the like) and into the environment, in a secure way</li><li>Integrated with IAM &amp; Cloud☁️ Audit Logging to authorize &amp; track key🔑 usage</li><li>Rotate keys🔑 used for new encryption 🔐 either automatically or on demand</li><li>Key🔑 deletion has 24-hour delay, “to prevent accidental or malicious data loss”</li><li>Pay for active key🔑 versions stored over time</li><li>Pay for key🔑 use operations (i.e. encrypt/decrypt; admin operation are free)</li></ul><p><strong>Cloud Hardware Security Module (HSM)</strong> — (Regional, Multi-Regional, Global) Cloud KMS keys🔑 managed by FIPS 140–2 Level 3 certified HSMs</p><p><strong>Operations and Management</strong></p><ul><li>Device hosts encryption 🔐 keys🔑 and performs cryptographic operations</li><li>Enables you to meet compliance that mandates hardware environment</li><li>Fully integrated with Cloud☁️ KMS</li><li>Priced like Cloud KMS: Active key🔑 versions stored &amp; key🔑 operations</li></ul><p><strong>Google Stackdriver</strong> — (Global) Family of services for monitoring, logging &amp; diagnosing apps on GCP/AWS/hybrid</p><ul><li>Service integrations add lots of value — among Stackdriver and with GCP☁️</li><li>Simple usage-based pricing</li></ul><p><strong>Stackdriver Monitoring</strong> — (Global) Gives visibility into perf, uptime, &amp; overall health of Cloud☁️ apps (based on collectd)</p><p><strong>Stackdriver Logging </strong>— (Global) Store, search🔎, analyze, monitor, and alert 🔔 on log data &amp; events (based on Fluentd)</p><p><strong>Stackdriver Error Reporting</strong> — (Global) Counts, analyzes, aggregates, &amp; tracks crashes in helpful centralized interface</p><ul><li>Smartly aggregates errors into meaningful groups tailored to language/framework</li><li>Instantly alerts when a new app error cannot be grouped with existing ones</li><li>Link🔗 directly from notifications to error details:</li><li>Exception stack trace parser know Java☕️, Python🐍, JavaScript, Ruby💎,C#,PHP, &amp; Go🟢</li><li>Jump from stack frames to source to start debugging</li><li>No direct charge; pay for source data in Stackdriver Logging</li></ul><p><strong>Stackdriver Trace</strong> — (Global) Tracks and displays call tree 🌳 &amp; timings across distributed systems, to debug perf</p><p><strong>Stackdriver Debugger</strong> — (Global) Grabs program state (callstack, variables, expressions) in live deploys, low impact</p><p><strong>Stackdriver Profiler</strong> — (Global) Continuous CPU and memory profiling to improve perf &amp; reduce cost</p><p><strong>Cloud Deployment Manager</strong> — (Global) Create/manage resources via declarative templates: “Infrastructure as Code”</p><p><strong>Cloud Billing API </strong>🧾- (Global) Programmatically manage billing for GCP☁️ projects and get GCP☁️ pricing</p><p><strong>Development and APIs</strong></p><p><strong>Cloud Source Repositories </strong>— (Global) Hosted private Git repositories, with integrations to GCP☁️ and other hosted repos</p><p><strong>Cloud Build </strong>🏗 — (Global) Continuously takes source code and builds, tests and deploys it — CI/CD service</p><ul><li>Trigger from Cloud Source Repository (by branch, tag or commit) or zip🤐 in GCS</li><li>Runs many builds in parallel (currently 10 at a time)</li><li>Dockerfile: super-simple build+push — plus scans for package vulnerabilities</li><li>JSON/YAML file: Flexible🧘‍♀️ &amp; Parallel Steps</li><li>Push to GCR &amp; export artifacts to GCS — or anywhere your build steps wrtie</li><li>Maintains build logs and build history</li><li>Pay per minute of build time — but free tier is 120 minutes per day</li></ul><p><strong>Container Registry (GCR) </strong>📦- (Regional, Multi-Regional) Fast🏃‍♂️, private Docker🐳 image storage 🗄 (based on GCS) with Docker🐳 V2 Registry API</p><p><strong>Cloud Endpoints </strong>— (Global) Handles authorization, monitoring, logging, &amp; API keys🔑 for APIs backed by GCP☁️</p><ul><li>Proxy instances are distributed and hook into Cloud Load Balancer 🏋️‍♀️</li><li>Super-fast🏃‍♂️ Extensible Service Proxy (ESP) container based on nginx: &lt;1 ms /call</li><li>Uses JWTs and integrates with Firebase 🔥, AuthO, &amp; Google Auth</li><li>Integrates with Stackdriver Logging and Stackdriver Trace</li><li>Extensible Service Proxy (ESP) can transcode HTTP/JSON to gRPC</li><li>Pay per call to your API</li></ul><p><strong>Apigee API Platform </strong>— (Global) Full-featured &amp; enterprise-scale API management platform for whole API lifecycle</p><p><strong>Test Lab for Android </strong>— (Global) Cloud☁️ infrastructure for running 🏃‍♂️ test matrix across variety of real Android devices</p><ul><li>Production-grade devices flashed with Android version and locale you specify</li><li>Can also run Espresso and UI Automator 2.0 instrumentation tests</li><li>Firebase Spark and Flame plans have daily allotment of physical and virtual tests</li><li>Blaze (PAYG) plan charges per device-hour-much less for virtual devices</li></ul><p><em>“Well, we all shine</em>☀️<em> on… Like the moon</em>🌙<em> and the stars</em>🌟<em> and the sun</em>🌞 <em>“</em></p><p>Thanks -</p><p>-MCS</p><p><em>Originally published at </em><a href="https://sqlsquirrels.com/2020/11/20/week-of-november-20th/"><em>https://sqlsquirrels.com</em></a><em> on November 20, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb7db2f5f70b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week of October 23rd | SQL Squirrels]]></title>
            <link>https://ms4446.medium.com/week-of-october-23rd-sql-squirrels-dbac334e14f9?source=rss-bc079425cf0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/dbac334e14f9</guid>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[anthos]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Mark Shay]]></dc:creator>
            <pubDate>Fri, 23 Oct 2020 15:18:00 GMT</pubDate>
            <atom:updated>2020-10-25T22:15:05.565Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0YS6asclHHGizAhOc8ozvQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*SzFJkIrf0wOEvwpMEuTIfw.png" /></figure><p><em>“Cause I don’t want to come back… Down from this Cloud</em> ☁️”</p><p><strong>Part II of a Cloud☁️ Journey</strong></p><p>Hi All -</p><p>Happy National Mole Day! 👨‍🔬👩🏾‍🔬</p><p>As we have all learned, Cloud computing☁️ empowers us all to focus our time 🕰 on dreaming 😴 up and creating the next great scalable⚖️ applications. In addition, Cloud computing☁️ enables us less worry 😨 time 🕰 about infrastructure, managing and maintaining deployment environments or agonizing 😰 over security🔒. Google evangelizes these principals stronger💪 than any other company in the world 🌎.</p><p>Google’s strategy for cloud computing☁️ is differentiated by providing open source runtime systems and a high-quality developer experience where organizations could easily move workloads from one cloud☁️ provider to another.</p><p>Once again, this past week we continued our exploration with GCP by finishing the last two courses as part of <a href="https://app.pluralsight.com/paths/certificate/cloud-engineering-with-google-cloud">Google Cloud Certified Associate Cloud Engineer Path</a> on Pluralsight. Our ultimate goal was better understanding of the various GCP services and features and be able to apply this knowledge, to better analyze requirements and evaluate numerous options available in GCP. Fortunately, we gained this knowledge and whole lot more! 😊</p><p>Guiding us through another great introduction on <a href="https://app.pluralsight.com/library/courses/elastic-google-cloud-infrastructure-scaling-automation/table-of-contents">Elastic Google Cloud Infrastructure: Scaling and Automation</a> were well-known friends <a href="https://www.linkedin.com/in/philippcmaier/">Phillip Maier</a> and <a href="https://www.linkedin.com/in/mylene-b-b4622599/">Mylene Biddle</a>. Then taking us through the rest of the way through this amazing course was <a href="https://www.linkedin.com/in/priyankavergadia/">Priyanka Vergadia</a>.</p><p>Then finally taking us down the home stretch with <a href="https://app.pluralsight.com/library/courses/architecting-google-kubernetes-engine-foundations-1/table-of-contents">Architecting with Google Kubernetes Engine — Foundations</a> (which was last of this amazing series of Google Goodness 😊) were famous Googlers <a href="https://github.com/jonesevan">Evan Jones</a> and <a href="https://www.linkedin.com/in/brianthomasrice/">Brice Rice</a>. …And Just to put the finishing touches 👐 of this magical 🎩💫 mystery tour was <a href="https://www.linkedin.com/in/eoinwcarroll/">Eoin Carrol</a> who gave us in depth look at Google’s game changer in</p><p>Modernizing existing applications and building cloud-native☁️ apps anywhere with <a href="https://cloud.google.com/anthos">Anthos</a>.</p><p>After a familiar introduction by Philip and Mylene we began delving into the comprehensive and flexible 🧘‍♀️ infrastructure and platform services provided by GCP.</p><p><em>“Across the clouds</em>☁️ <em>I see my shadow fly</em>✈️… <em>Out of the corner of my watering</em>💦 <em>eye</em>👁 <em>“</em></p><p><strong>Interconnecting Networks </strong>— The are 5 ways of connecting your infrastructure to GCP:</p><ol><li>Cloud VPN</li><li>Dedicated interconnect</li><li>Partner interconnect</li><li>Direct peering</li><li>Carrier peering</li></ol><p><strong>Cloud VPN </strong>— securely connects your on-premises network to your GCP VPC network. In order to connect to your on-premise network via Cloud VPN configure cloud VPN, VPN Gateway, and to repeat in tunnels.</p><ul><li>Useful for low-volume connections</li><li>99,9% SLA</li></ul><p>Please note: <em>The maximum transmission unit or MTU for your on-premises VPN gateway cannot be greater than 1460 bites.</em></p><pre>$gcloud compute --project &quot;qwiklabs-GCP -02-9474b560327d&quot; target-vpn-gateways create &quot;vpn-1&quot; --region &quot;us-central1&quot; --network &quot;vpn-network-1&quot; </pre><pre>$gcloud compute --project &quot;qwiklabs-GCP -02-9474b560327d&quot; target-vpn-gateways create &quot;vpn-1&quot; --region &quot;us-central1&quot; --network &quot;vpn-network-1&quot;</pre><pre>$gcloud compute --project &quot;qwiklabs-GCP -02-9474b560327d&quot; forwarding-rules create &quot;vpn-1-rule-esp&quot; --region &quot;us-central1&quot; --address &quot;35.192.18.39&quot; --IP -protocol &quot;ESP&quot; --target-vpn-gateway &quot;vpn-1&quot; </pre><pre>$gcloud compute --project &quot;qwiklabs-GCP -02-9474b560327d&quot; forwarding-rules create &quot;vpn-1-rule-udp500&quot; --region &quot;us-central1&quot; --address &quot;35.192.18.39&quot; --IP -protocol &quot;UDP&quot; --ports &quot;500&quot; --target-vpn-gateway &quot;vpn-1&quot; </pre><pre>$gcloud compute --project &quot;qwiklabs-GCP -02-9474b560327d&quot; forwarding-rules create &quot;vpn-1-rule-udp4500&quot; --region &quot;us-central1&quot; --address &quot;35.192.18.39&quot; --IP -protocol &quot;UDP&quot; --ports &quot;4500&quot; --target-vpn-gateway &quot;vpn-1&quot; </pre><pre>$gcloud compute --project &quot;qwiklabs-GCP -02-9474b560327d&quot; vpn-tunnels create &quot;tunnel1to2&quot; --region &quot;us-central1&quot; --ike-version &quot;2&quot; --target-vpn-gateway &quot;vpn-1&quot; </pre><pre>$gcloud compute --project &quot;qwiklabs-GCP -02-9474b560327d&quot; vpn-tunnels create &quot;vpn-1-tunnel-2&quot; --region &quot;us-central1&quot; --peer-address &quot;34.78.144.99&quot; --shared-secret &quot;GCP rocks&quot; --ike-version &quot;2&quot; --local-traffic-selector &quot;0.0.0.0/0&quot; --target-vpn-gateway &quot;vpn-1&quot;</pre><p><strong>Cloud Interconnect and Peering</strong></p><p>Dedicated connections provide a direct connection to Google’s network while shared connections provide a connection to Google’s network through a partner</p><p><strong>Comparison of Interconnect Options</strong> <strong>Peering</strong></p><p>Direct Peering provides a direct connection between your business network and Google.</p><ul><li>Broad-reaching edge network locations</li><li>Capacity 10 Gbps/link</li><li>Exchange BGP routes</li><li>Reach all of Google’s services</li><li>Peering requirement (Connection in GCP Pops)</li><li>Access Type: Public IP Addresses</li></ul><p>Carrier Peering provides connectivity through a supported partner</p><ul><li>Carrier Peering partner</li><li>Capacity varies based on parent offering</li><li>Reach all of Google’s services</li><li>Partner requirements</li><li>No SLA</li><li>Access Type: Public IP Addresses</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/0*ibYrOQLExAjrzYlV" /></figure><p><strong>Shared VPC and VPC Peering</strong></p><p><strong>Shared VPC</strong> allows an organization to connect Resource is from multiple projects to a common VPC network.</p><p><strong>VPC Peering</strong> is a decentralized or distributed approach to multi project networking because each VPC network may remain under the control of separate administrator groups and maintains its own global firewall and routing tables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/0*jma8rnAemDnWo-1-" /></figure><p><strong>Cloud Load Balancing</strong> 🏋️‍♂️ — distributes user traffic 🚦across multiple instances of your applications. By spreading the load, load balancing 🏋️‍♂️ reduces the risk that your applications experience performance issues. There are 2 basic categories of Load balancers: <strong>Global load balancing 🏋️‍♂️</strong> and <strong>Regional load balancing 🏋️‍♂️.</strong></p><p>Global load balancers — when workloads are distributed across the world 🌎 Global load balancers route traffic🚦 to a backend service in the region closest to the user, to reduce latency. They are software defined distributed systems using <a href="https://cloud.google.com/security/infrastructure/design#google_front_end_service">Google Front End (GFE)</a> reside in Google’s PoPs are distributed globally</p><p>Types of Global Load Balancers</p><p>Regional load balancers — when all workloads are in the same region Regional load balancing 🏋️‍♂️ route traffic🚦within a given region.</p><p>Regional Load balancing 🏋️‍♂️ uses internal and network load balancers. Internal load balancers are software defined distributed systems (using <a href="https://cloudplatform.googleblog.com/2014/04/enter-andromeda-zone-google-cloud-platforms-latest-networking-stack.html">Andromeda</a>) and network load balancers which use <a href="https://research.google.com/pubs/pub44824.html">Maglev</a> distributed system.</p><p><strong>Managed instance groups </strong>— is a collection off identical virtual machine instances that you control as a single entity. (Same as creating a VM but applying specific rules to an Instance group)</p><p>Regional managed instance groups are usually recommended over zonal managed instance groups because this allow you to spread the application’s load across multiple zones through replication and protect against zonal failures.</p><p>Steps to create a Managed Instance Group:</p><ol><li>Need to decide the location and whether instance group will be Single or multi-zones</li><li>Choose ports that are going allow load balancing🏋️‍♂️ across.</li><li>Select Instance template</li><li>Decide Autoscaling⚖️ and criteria for use</li><li>Creatine a health check to determine instance health and how traffic🚦should route</li></ol><p>Autoscaling and health checks</p><p>Managed instance groups offer autoscaling⚖️ capabilities</p><p><strong>HTTP/HTTPs load balancing</strong></p><ul><li>Global load balancing🏋️‍♂️</li><li>Anycast IP address</li><li>HTTP or port 80 or 8080</li><li>HTTPs on port 443</li><li>IPv4 or IP6</li><li>Autoscaling⚖️</li><li>URL maps 🗺</li></ul><p>Backend Services</p><ul><li>Health check</li><li>Session affinity (Optional)</li><li>Time out setting (30-sec default)</li></ul><p>SSL certificates</p><p><strong>SSL proxy load balancing </strong>— global load balancing service for encrypted non http traffic.</p><ul><li>Global load balancing for encrypted non-HTTP traffic 🚦</li><li>Terminate SSL session at load balancing🏋️‍♂️ Layer</li><li>IPv4 or IPv6 clients</li></ul><p><strong>TCP proxy load balancing — </strong>a global load balancing service for unencrypted non http traffic.</p><ul><li>Global load balancing for encrypted non-HTTP traffic 🚦</li><li>Terminates TCP session at load balancing🏋️‍♂️ Layer</li><li>IPv4 or IPv6 clients</li></ul><p><strong>Network load balancing </strong>— is a regional non-proxy load balancing service.</p><ul><li>Regional, non-proxied load balancer</li><li>Forwarding rules (IP protocol data)</li><li>Backends:</li></ul><p><strong>Internal load balancing </strong>— is a regional private load balancing service for TCP and UDP based traffic🚦</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/0*bm_2VYUX2X2rv3nR" /></figure><p><em>“..</em>clouds☁️<em> roll by reeling is what they say … or is it just my way?”</em></p><p><strong>Infrastructure Automation — Infrastructure as code (IaC)</strong></p><p>Automate repeatable tasks like provisioning, configuration, and deployments for one machine or millions.</p><p><strong>Deployment Manager</strong> -is an infrastructure deployment service that automates the creation and management of GCP. By defining templates, you only have to specify the resources once and then you can reuse them whenever you want.</p><p><em>Deployment manager creates all the resource is in parallel.</em></p><p><em>It’s recommended that you provisioned and managed resource is on GCP with the tools</em>🛠 <em>you are already familiar with</em></p><p><strong>Managed Services </strong>— automates common activities, such as change requests, monitoring 🎛, patch management, security🔒, and backup services, and provides full lifecycle🔄 services to provision, run🏃‍♂️, and support your infrastructure.</p><p>BigQuery is GCP serverless, high scalable⚖️, and cost-effective cloud Data warehouse</p><p>Cloud Dataflow executes a wide variety of data processing patterns</p><p>Cloud Dataprep — visually explore, clean, and prepare data for analysis and machine learning</p><ul><li>Serverless, works at any scale⚖️</li><li>Suggest ideal analysis</li><li>Integrated partner service operated by <a href="https://www.trifacta.com/">Trifacta</a></li></ul><p>Cloud Dataproc — is a service for running Apache Spark 💥 and Apache Hadoop 🐘 clusters</p><p><em>“Captain Jack will get you by tonight</em>🌃 <em>… Just a little push, and you’ll be smilin’</em> 😊 “</p><p><strong>Architecting with Google Kubernetes Engine — Foundations</strong></p><p>After Steller🌟 job by was Priyanka taking through the load balancing 🏋️‍♂️ options, infrastructure as code and some of the managed service options in GCP it was time to take the helm⛵️ and get out K8s☸️ hat 🧢 on.</p><p><strong>Cloud Computing and Google Cloud</strong></p><p>Just to whet our appetite for Cloud Computing and Evan takes through 5 fundamental attributes:</p><ol><li>On-demand self-services (No🚫 human intervention needed to get resources)</li><li>Broad network access (Access from anywhere)</li><li>Resource Pooling🏊‍♂️ (Provider shares resources to customers)</li><li>Rapid Elasticity (Get more resources quickly as needed)</li><li>Measured Service (Pay only for what you consume)</li></ol><p>Next, Evan introduces some of GCP Services under Compute like <strong>Compute Engine</strong>, <strong>Google Kubernetes Engine </strong>(GKE), <strong>App Engine</strong>, <strong>Cloud Functions</strong>. Then he discusses some Google’s managed services with Storage, Big Data, Machine Learning Services.</p><p><strong>Resource Management</strong> <strong>Network</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/0*jk246AGGAYL-Amiu" /></figure><ul><li>GCP provides resource is in multi-regions, regions and zones.</li><li>GCP divides the world🌎 up into 3 multi-regional <strong>areas </strong>the Americas, Europe and Asia Pacific.</li><li>3 multi regional areas are divided into <strong>regions</strong> which are independent geographic areas on the same continent.</li><li>Regions are divided into <strong>zones</strong> (like a data center) which are deployment areas for GCP resources.</li></ul><p>The network interconnect with the public internet at more than 90 internet exchanges on more than 100 points of presence worldwide🌎.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/323/0*niR0lu8NiiAPX2RH" /></figure><p><strong>Billing</strong> <strong>How to keep billing under control</strong></p><ol><li>Budgets and alerts 🔔</li><li>Billing export 🧾</li><li>Reports 📊</li></ol><p><em>GCP implements quotas which limit unforeseen extra billing charges. Quotas error designed to prevent the over consumption of resources because of an error or a malicious attack.</em></p><p><strong>Interacting with GCP </strong>-There are 4 ways to interact with GCP</p><ol><li>Cloud Console</li><li>Web-based GUI to manage all Google Cloud resources</li><li>Executes common task using simple mouse clicks</li><li>Provides visibility into Google Cloud projects and resources</li></ol><ul><li>Temporary Compute Engine VM</li><li>Command-line access to the instance through a browser</li><li>5 GB of persistent disk storage ($HOME dir)</li></ul><p><em>“Cloud☁️ hands🤲 reaching from a rainbow🌈 tapping at the window, touch your hair”</em> <strong>Introduction to Containers</strong></p><p>Next Evan takes us through history of computing. First starting with deploying applications on its physical server. This solution wasted resources and took a lot of time to deploy maintaining scale. It also wasn’t very portable. It all applications were built for a specific operating system, and sometimes even for specific hardware as well.</p><p>Next transitioning to <strong>Virtualization</strong>. Virtualization makes it possible to run multiple virtual servers and operating systems on the same physical computer. A hypervisor is the software layer that removes the dependencies of an operating system with its underlying hardware. It allows several virtual machines to share that same hardware.</p><p>Finally, Evan introduces us to <strong>containers</strong> as they solve a lot of the short comings of Virtualization like:</p><p>Containers are isolated user spaces for running application code. Containers are lightweight as they don’t carry a full operating system. They could be scheduled or packed tightly onto the underlying system, which makes them very efficient.</p><p>Containerization is the next step in the evolution of managing code.</p><p>Benefits of Containers:</p><ul><li>Containers appeal to developers</li><li>Deliver high performing and scalable applications.</li><li>Containers run the same anywhere</li><li>Containers make it easier to build applications that use <strong>Microservices</strong> design pattern</li></ul><p><strong>Containers and Container Images</strong></p><p>An Image is an application and its dependencies</p><p>A container is simply a running instance image.</p><p>Docker is an open source technology that allows you to create and run applications and containers, but it doesn’t offer away to orchestrate those applications at scale</p><p>How to get containers?</p><ul><li>Download containerized software from a container registry gcr.io</li><li>Docker — Build your own container using the open-source docker command</li><li>Build your own container using Cloud Build</li></ul><p><strong>Introduction to Kubernetes ☸️</strong></p><p><strong>Kubernetes ☸️ </strong>is an open source platform that helps you orchestrate and manage your container infrastructure on premises or in the cloud☁️.</p><p>It’s a container centric management environment. Google originated it and then donated it to the open source community.</p><p>K8s ☸️ automates the deployment, scaling⚖️, load balancing🏋️‍♂️, logging, monitoring 🎛 and other management features of containerized applications.</p><p>K8s ☸️ features:</p><p>Kubernetes also supports workload portability across on premises or multiple cloud service providers. This allows Kubernetes to be deployed anywhere. You could move Kubernetes☸️ workloads freely without a vendor lock🔒 in</p><p><strong>Google Kubernetes Engine (GKE)</strong></p><p>GKE easily deploys, manages and scales⚖️ Kubernetes environments for your containerized applications on GCP.</p><p>GKE Features:</p><ul><li>Fully managed</li><li>Container-optimized OS</li><li>Auto upgrade</li><li>Auto repair🛠</li><li>Cluster Scaling⚖️</li><li>Seamless Integration</li><li>Identity and access management (IAM)</li><li>Integrated logging and monitoring (Stack Driver)</li><li>Integrated networking</li><li>Cloud Console</li></ul><p><strong>Compute Options Detail</strong></p><p>Computer Engine</p><p>Use Cases</p><p>App Engine</p><p>Use Cases</p><p>Google Kubernetes Engine</p><ul><li>Fully managed Kubernetes Platform</li><li>Supports cluster scaling⚖️, persistent disk, automated upgrades, and auto node repairs</li><li>Built-in integration with GCP</li></ul><p>Use Cases</p><p>Cloud Run</p><p>Use Cases</p><p>Cloud Functions</p><p>Use Cases</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/419/0*mbSULPrydVd4XUam" /></figure><p>There are two related concepts in understanding K8s works <strong>object model </strong>and <strong>principle of declarative management</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/411/0*4ryULUYljTz0ZJEz" /></figure><p><strong>Pods </strong>— the basic building block of K8s☸️</p><p>Principle of declarative management — Declare some objects to represent those in generic containers.</p><ul><li>K8s☸️ creates and maintains one or more objects.</li><li>K8s☸️ compares the desired state to the current state.</li></ul><p><strong>The Kubernetes Control Plane — </strong>continuously monitor the state of the cluster, endlessly comparing reality to what has been declared and remedying the state has needed.</p><p>K8s☸️ Cluster consists of a <strong>Master</strong> and <strong>Nodes</strong></p><p>Master is to coordinate the entire cluster.</p><ul><li>View or change the state of the cluster including launching pods.</li><li>kube-API server — the single component that interacts with the Cluster</li><li>etcd — key-value store for the most critical data of a distributed system</li><li>kube-scheduler — assigns Pods to Nodes</li><li>kube-cloud-manager — embeds cloud-specific control logic.</li><li>Kube-controller-manager- daemon that embeds the core control loops</li></ul><p>Nodes runs run pods.</p><ul><li>kubelet is the primary “node agent” that runs on each node.</li><li>kube-proxy is a network proxy that runs on each node in your cluster</li></ul><p><strong>Google Kubernetes Engine Concepts</strong></p><p>GKE makes administration of K8s☸️ much simpler</p><p>Zonal Cluster — has a single control plane in a single zone.</p><ul><li>single-zone cluster has a single control plane running in one zone</li><li>multi-zonal cluster has a single replica of the control plane running in a single zone, and has nodes running in multiple zones.</li></ul><p>Regional Cluster — has multiple replicas of the control plane, running in multiple zones within a given region.</p><p>Private Cluster — provides the ability to isolate nodes from having inbound and outbound connectivity to the public internet.</p><p><strong>Kubernetes Object Management</strong> — identified by a unique name and a unique identifier.</p><p>Pods and Controller Objects</p><p>Pods have a life cycle</p><ul><li>Controller Object types</li><li>Allocating resource quotas</li><li>Namespaces — provide scope for naming resources (pods, deployments and controllers.)</li></ul><p>There are 3 initializer spaces in the cluster.</p><ol><li>Default name space for objects with no other name space defined.</li><li>Kube-system named Space for objects created by the Kubernetes system itself.</li><li>Kube-Public name space for objects that are publicly readable to all users.</li></ol><p>Best practice tip: namespace neutral YAML</p><p><strong>Advanced </strong>K8s☸️ <strong>Objects</strong></p><p>Services</p><p>Volume</p><p>Controller Objects</p><p><em>“Can I get an encore; do you want more?”</em></p><p><strong>Migrate for Anthos </strong>— tool🛠 for getting workloads into containerized deployments on GCP</p><p>Migrate for Anthos moves VMs to containers</p><p><strong>Migrate for Anthos Architecture</strong></p><ul><li>A migration requires an architecture to be built</li><li>A migration is a multi-step process</li><li>Configure processing cluster</li><li>Add migration source</li><li>Generate and review plan</li><li>Generate artifacts</li><li>Test</li><li>Deploy</li></ul><p><strong>Migrate for Anthos Installation</strong> -requires a processing cluster</p><p><strong>Installing Migrate for Anthos uses migctl</strong></p><pre>$migctl setup install</pre><p><strong>Adding a source enables migration from a specific environment</strong></p><pre>$migctl source create cd my-ce-src -project my-project -zone zone</pre><p><strong>Creating a migration generates a migration plan</strong></p><pre>$migctl migration create test-migration -source my-ce-src -vm- id my-id -intent image</pre><p><strong>Executing a migration generates resource and artifacts</strong></p><pre>$migctl migration generate-artifacts my-migration</pre><p><strong>Deployment files typically need modification</strong></p><pre>$migctl migration get-artifacts test-migration</pre><p><strong>Apply the configuration to deploy the workload</strong></p><pre>$Kubectl apply -f deployment_sepc.yaml</pre><p><em>“And we’ll bask</em> 🌞 <em>in the shadow of yesterday’s triumph</em>🏆 <em>…</em> <em>And sail</em>⛵️ <em>on the steel</em> <em>breeze</em>🌬 <em>“</em></p><p>Below are some of the destinations I am considering for my travels for next week:</p><p>Thanks -</p><p>-MCS</p><p><em>Originally published at </em><a href="https://sqlsquirrels.com/2020/10/23/week-of-october-23rd/"><em>https://sqlsquirrels.com</em></a><em> on October 23, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dbac334e14f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week of October 16th | SQL Squirrels]]></title>
            <link>https://ms4446.medium.com/week-of-october-16th-sql-squirrels-77738b53e2be?source=rss-bc079425cf0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/77738b53e2be</guid>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <dc:creator><![CDATA[Mark Shay]]></dc:creator>
            <pubDate>Sat, 17 Oct 2020 03:26:00 GMT</pubDate>
            <atom:updated>2020-10-18T13:42:45.414Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oWmm3lhLgxEOhMGFkmfFGA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/363/0*7dvi02qdswdZdpud" /></figure><p><em>“Cause I don’t want to come back… Down from this Cloud</em> ☁️”</p><p><strong>Part II of a Cloud☁️ Journey</strong></p><p>Hi All –</p><p>Happy Global 🌎 Cat 😺 Day!</p><p>Last week, we started our Cloud☁️ journey exploring <a href="https://sqlsquirrels.com/2020/10/07/week-of-october-9th/">Google Cloud</a>☁️ to help us better understand the core services and the full value proposition that GCP can offer.</p><p>It has been said “For modern enterprise, that Cloud☁️ is the closest thing to magic🎩🐰 that we have.” Cloud☁️ enables companies large🏢 and small🏠 to be more agile and nimble. It also empowers employees of these companies🏭 to focus on being more creative and innovative and not being bogged down in the minutiae and rigors of managing IT infrastructure. In addition, customers of these companies benefit from an overall better Customer experience as application more available and scalable⚖️.</p><p>As you might know, “Google’s mission is and has been to organize the world’s🌎 information and make it universally accessible and useful and as result playing a meaningful role in the daily lives of billions of people” Google has been able to hold true to this mission statement through unprecedented success from products and platforms like Search🔎, Maps🗺, Gmail📧, Android📱, Google Play, Chrome and YouTube📺. Google continues to strive for the same kind of success with their Cloud Computing☁️ offering with GCP.</p><p>This week we continued our journey with GCP and helping us through the Google Cloud☁️ Infrastructure Essentials (<a href="https://app.pluralsight.com/library/courses/essential-google-cloud-infrastructure-foundation/table-of-contents">Essential Google Cloud☁️ Infrastructure: Foundation</a> &amp; <a href="https://app.pluralsight.com/library/courses/essential-google-cloud-infrastructure-core-services/table-of-contents">Essential Google Cloud☁️ Infrastructure: Core Services</a>) through a combination of lectures and <a href="https://www.qwiklabs.com/">qwiklabs</a> were esteemed Googlers <a href="https://www.linkedin.com/in/philippcmaier/">Phillip Maier</a> who seems to have had more cameos in the Google Cloud☁️ videos than <a href="https://m.imdb.com/name/nm0498278/filmotype/actor">Stan Lee</a> has made in all of the Marvel Movies and the very inspirational <a href="https://www.linkedin.com/in/mylene-b-b4622599/">Mylene Biddle</a> who exemplifies transformation both in the digital and real world.</p><p>Phillip and Mylene begin the course discussing Google Cloud☁️ which is a much larger ecosystem than just GCP. This ecosystem consists of open source software providers, partners, developers, third party software and other Cloud☁️ providers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*YcJ0Z6BO0uyZfMdPZD1n4A.png" /></figure><p>GCP uses a state-of-the-art software defined networking and distributed systems technologies to host and deliver services around the world🌎. GCP offers over <a href="https://cloud.google.com/products/">90 products and Services</a> that continues to expand. GCP spans from infrastructure as a service or IaaS to software as a service SaaS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*YWPaukQ27SfFtmpqSjWgmw.png" /></figure><p>Next, Philip presents excellent analogy comparing IT infrastructure to one of a city’s 🏙 infrastructure.<em> “Infrastructure is the basic underlying framework of fundamental facilities and systems such as transport, communications, power</em>🔌<em>, water</em>🚰<em>, fuel</em> ⛽️<em> and other essential services. The people</em><strong> 👨‍👩‍👧‍👦</strong> <em>in the city </em>🏙<em> are like users </em>👥<em>, and the cars </em>🚙🚗 <em>and bikes</em> 🚴‍♀️🚴‍♂️<em> buildings</em>🏬 <em>in the city </em>🏙<em> are like applications. Everything that goes into creating and supporting those applications for the users is the infrastructure. “</em></p><p>GCP offers wide range of compute services including:</p><p>· <strong>Compute Engine</strong> — (IaaS) run virtual machines on demand</p><p>· <strong>Google Kubernetes☸️ Engine</strong> (IaaS/PaaS) — run containerized applications on a Cloud☁️ environment that Google manages under your administrative control.</p><p>· <strong>App Engine</strong> (PaaS) is fully managed platform as a service framework. Run code in the Cloud☁️ without having to worry about infrastructure.</p><p>· <strong>CloudFunctions </strong>(Serverless) It executes your code in response to events, whether those events occur once a day or many Time ⏳s</p><p>There are Four ways to interact with GCP</p><p>1. Google Cloud☁️ Platform Console or GCP Console</p><p>2. CloudShell and the Cloud SDK</p><p>3. API</p><p>4. Cloud☁️ Mobile 📱 App</p><p>Cloud☁️ shell provides the following:</p><p>· Temporary Compute Engine VM</p><p>· Command-line access to the instance via a browser</p><p>· 5 GB of persistent disk storage 🗄 ($HOME dir)</p><p>· Pre-installed Cloud☁️ SDK and other tools 🛠</p><p>· gcloud: for working with Compute Engine and many Google Cloud☁️ services</p><p>· gsutil: for working with Cloud Storage 🗄</p><p>· kubectl: for working with Google Container Engine and Kubernetes☸️</p><p>· bq: for working with BigQuery</p><p>· Language support for Java☕️, Go, Python🐍, Node.js, PHP, and Ruby♦️</p><p>· Web🕸 preview functionality</p><p>· Built-in authorization for access to resources and instances</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*NhaLrjFWUGWRFB4wN45gMQ.png" /></figure><p><em>“Virtual insanity is what we’re living in”</em></p><p><strong>Virtual Networks</strong></p><p>GCP uses a software defined network that is built on a Global 🌎 fiber infrastructure. This infrastructure makes GCP, one of the world’s 🌎 largest and fastest 🏃‍♂️networks.</p><p><strong>Virtual Private Cloud☁️</strong></p><p>Virtual Private Cloud☁️ (VPC) provides networking functionality to Compute Engine virtual machine (VM) instances, Google Kubernetes Engine (GKE)☸️ containers, and the App Engine flexible🧘‍♀️ environment. VPC provides networking for your Cloud-based☁️ services that is Global 🌎, scalable⚖️, and flexible🧘‍♀️.</p><p>VPC is a comprehensive set of Google managed networking objects:</p><p>· Projects are used to encompass the Network Service as well as all other service in GCP</p><p>· Networks come in three different flavors 🍨.</p><p>o Default</p><p>o Automotive</p><p>o Custom mode.</p><p>· Subnetworks allow for division or segregation of the environment.</p><p>· Regions and zones (GCP DC) provide continues data protection and high availability.</p><p>· IP addresses provided internal and external use</p><p>· Virtual machines — instances from a networking perspective.</p><p>· Routes and Firewall🔥rules allow or deny connections to or from VMs based specified configuration</p><p><strong>Projects, Networks, and Subnetworks</strong></p><p>A Project is the key organizer of infrastructure resources.</p><p>· Associates objects and services with billing 🧾</p><p>· Contains networks (up to 5) that can be shared/peered</p><p>Networks are Global 🌎 are spans all available regions.</p><p>· Has no IP address range</p><p>· Contains subnetworks</p><p>· Has three different options.</p><p>o Default</p><p>§ Every Project</p><p>§ One subnet per region</p><p>§ Default firewall rules🔥</p><p>o Automotive</p><p>§ Default network</p><p>§ One subnet per region</p><p>§ Regional IP allocation</p><p>§ Fixed /20 subnetwork per region</p><p>§ Expandable up to /16</p><p>o Custom mode</p><p>§ No default subnets created</p><p>§ Full control of IP ranges</p><p>§ Regional IP allocation</p><p>§ Expandable to any <a href="https://tools.ietf.org/html/rfc1918">RFC 1918</a> size</p><p>VMs despite different locations geographically 🌎 take advantage of Google’s Global 🌎 fiber network. VMs appear as though they’re sitting in the same rack when it comes to a network configuration protocol.</p><p>· VMs can be on the same subnet but in different zones</p><p>· A single firewall rule 🔥 can apply to both VMs</p><p>Subnet is a ranges of IP addresses.</p><p>· Every subnet has 4 reserved IP addresses in its primary IP Range.</p><p>· Subnets can be expanded without re-creating instances or any down Time ⏳</p><p>o Cannot overlap with other subnets</p><p>o Must be inside the <a href="https://tools.ietf.org/html/rfc1918">RFC 1918</a> address spaces</p><p>o Can expand but not shrink</p><p>o Auto mode can be expanded from /20 to /16</p><p>o Avoid large subnets (don’t scale⚖️ beyond what is actually needed)</p><p><strong>IP addresses</strong></p><p>VMs can have <strong>internal</strong> and <strong>external IP</strong> addresses</p><p>You also can assign a range of IP addresses as aliases to a VM’s network interface using IP range</p><p>Internal IP</p><p>· Allocated from a subnet range to VMs by DHCP</p><p>· DHCP lease is removed every 24 hours</p><p>· VM name + IP is registered with network-scoped DNS</p><p>External IP</p><p>· Assigned from pool (ephemeral)</p><p>· Reserved (static)</p><p>· VMs don’t know external IP</p><p>· VMs are mapped to the internal IP</p><p><strong>Mapping 🗺 IP addresses</strong></p><p>DNS resolution for internal addresses</p><p>· Each instance has a hostname that can be resolved to an internal IP address:</p><p>o The hostname is the same as the instance name</p><p>o FQDN is [hostname]. [zone].c.[project-id].internal</p><p>· Name resolution is handled by internal DNS resolver</p><p>· Configured for use on instance via DHCP</p><p>· Provides answer for internal and external addresses</p><p>DNS resolution for external address</p><p>· Instances with external IP addresses can allow connections from hosts outside the project</p><p>o Users connect directly using external IP address</p><p>o Admins can also publish public DNS records pointing to the instance</p><p>§ Public DNS records are not published automatically</p><p>· DNS records for external addresses can be published using existing DNS servers (outside of GCP)</p><p>· DNS zones can be hosted using Cloud DNS.</p><p>Host DNS zones using Cloud DNS</p><p>· Google DNS service</p><p>· Translate domain name into IP address</p><p>· Low latency</p><p>· High availability (100% uptime SLA)</p><p>· Create and update millions of DNS records</p><p><strong>Routes and firewall rules </strong>🔥</p><p>Every network has:</p><p>· Routes that let instances in a network send traffic🚦 directly to each other.</p><p>· A default route that directs to destinations that are outside the network.</p><p>Routes map🗺 traffic🚦 to destination networks</p><p>· Apply to traffic🚦 egressing a VM</p><p>· Forward traffic🚦 to most specific route</p><p>· Are created when a subnet is created</p><p>· Enable VMs on same network to communicate</p><p>· Destination is in CIDR notation</p><p>· Traffic🚦 is delivered only if it also matches a firewall rule 🔥</p><p>Firewall rules🔥 protect your VM instances from unapproved connections</p><p>· VPC network functions as a distributed firewall. 🔥</p><p>· Firewall rules🔥 are applied to the network as whole</p><p>· Connections are allowed or denied at the instance level.</p><p>· Firewall rules🔥 are stateful</p><p>· Implied deny all ingress and allow all egress</p><p><strong>Create Network</strong></p><p>gCloud compute networks create privatenet — subnet-mode=custom</p><p>gCloud compute networks subnets create privatesubnet-us — network=privatenet — region=us-central1 — range=172.16.0.0/24</p><p>gCloud compute networks subnets create privatesubnet-eu — network=privatenet — region=europe-west1 — range=172.20.0.0/20</p><p>gCloud compute networks list</p><p>gCloud compute networks subnets list — sort-by=NETWORK</p><p><strong>Create firewall Rules 🔥</strong></p><p>gCloud compute firewall-rules create privatenet-allow-icmp-ssh-rdp — direction=INGRESS — priority=1000 — network=privatenet — action=ALLOW — rules=icmp,tcp:22,tcp:3389 — source-ranges=0.0.0.0/0</p><p><strong>Common network designs</strong></p><p>· Increased availability with multiple zones</p><p>o A regional managed instance group contains instances from multiple zones across the same region, which provides increased availability.</p><p>· Globalization 🌎 with multiple regions</p><p>o Putting resource is in different regions, provides an even higher degree of failure independence by spreading resources across different failure domains</p><p>· Cloud NAT provides internet access to private instances</p><p>o Cloud NAT is Google’s Mesh Network address translation service. Provision application instances without public IP addresses, while also allowing them to access the Internet in a controlled and efficient manner.</p><p>· Private Google Access to Google APIs and services</p><p>o Private Google access to allow VM instances that only have internal IP addresses to reach the external IP addresses of Google APIs and services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*x3dzpZ33c0X--wGwmHuYkQ.png" /></figure><p><em>“Know you’re nobody’s fool… So welcome to the machine”</em></p><p><strong>Compute Engine (IaaS)</strong></p><p>Predefined or custom Machines types:</p><p>· vCPUs (cores and Memory (RAM)</p><p>· Persistent disks: HDD, SDD, and Local SSD</p><p>· Networking</p><p>· Linux or Windows</p><p>Compute</p><p>Several machine types</p><p>· Network throughput scales⚖️ 2 Gbps per vCPU (small exceptions)</p><p>· Theoretical max of 32 Gbps with 16 vCPU or 100 Gbps with T4 or V100 GPUs</p><p>A vCPU is equal to 1 hardware hyper-thread.</p><p>Storage 🗄</p><p>Disks</p><p>· Standard, SSD, or Local SSD</p><p>· Standard and SSD PDs scale⚖️ in performance for each GB of space a;;pcated</p><p>Resize disks or migrate instances with no downTime ⏳</p><p><em>Local SSD have even higher throughput and lower latency than SSD persistent disks because there are attached to the physical hardware. However, the data that you store local s SSDs persists only until you stop 🛑 or delete the instance.</em></p><p>Networking</p><p>Robust network features:</p><p>· Default, custom networks</p><p>· Inbound/outbound firewall rules🔥</p><p>o IP based</p><p>o Instance/group tags</p><p>· Regional HTTPS load balancing</p><p>· Network load balancing</p><p>o Does not require pre-warming</p><p>· Global 🌎 and multi-regional subnetworks</p><p><strong>VM access</strong></p><p>Linux🐧 SSH (requires firewall to allow tcp:22)</p><p>· SSH from Console CloudShell via Cloud SDK, computer</p><p>Windows RDP (requires firewall to allow tcp:3389)</p><p>· RDP clients, PowerShell terminal</p><p><strong>VM Lifecycle</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*fF-HzHW9jsBFXHkKtwtRGA.png" /></figure><p>Compute Engine offers <strong>live migration</strong> to keep your virtual machine instances running even when a host system event, such as a software or hardware update, occurs. Live migration keeps your instances running during:</p><p>· Regular infrastructure maintenance and upgrades.</p><p>· Network and power grid maintenance in the data centers.</p><p>· Failed hardware such as memory, CPU, network interface cards, disks, power, and so on. This is done on a best-effort basis; if a hardware fails completely or otherwise prevents live migration, the VM crashes and restarts automatically and a hostError is logged.</p><p>· Host OS and BIOS upgrades.</p><p>· Security-related updates, with the need to respond quickly.</p><p>· System configuration changes, including changing the size of the host root partition, for storage 🗄 of the host image and packages.</p><p><strong>Compute Options</strong></p><p>Machine Types</p><p>Predefined machine types Ratio of GB of memory per VCPU</p><p>· Standard machine types</p><p>· High-memory machine types</p><p>· High-CPU machine types</p><p>· Memory-optimized machine types</p><p>· Compute-optimized machine types</p><p>· Shared core machine types</p><p>Custom machine types:</p><p>· You specify the amount of memory and number of VCPUs</p><p><strong>Special compute configurations</strong></p><p>Preemptible (ideal for running batch processing jobs)</p><p>· Lower price for interruptible service (up to 80%)</p><p>· VM might be terminated at any time ⏳</p><p>o No charge if terminated in the first 10 minutes</p><p>o 24 hours max</p><p>o 30-second terminate warning, but not guaranteed</p><p>§ Time⏳ for a shutdown script</p><p>· No live migrate; no auto restart</p><p>· You can request that CPU quota for a region be split between regular and preemption</p><p>o Default: preemptible VMs count against region CPU quota</p><p>Sole-tenant nodes -physically isolate workloads (Ideal for workloads that require physical isolation)</p><p>· Sole-tenant node is a physical compute engine server that is dedicated to hosting VM Instances</p><p>· if you have existing operating system licenses, you can bring them to compute engine using sole tenant notes while minimizing physical core usage with the in-place restart feature</p><p>Shielded VMs🛡 offer verifiable integrity</p><p>· Secure🔒 Boot</p><p>· Virtual trusted platform module (vTPM)</p><p>· Integrity Monitoring 🎛</p><p><strong>Images</strong></p><p>· Boot loader</p><p>· Operating system</p><p>· File System Structure 🗂</p><p>· Software</p><p>· Customizations</p><p><strong>Disk options</strong></p><p>Boot disk</p><p>· VM comes with a single root persistent disk</p><p>· Image is loaded onto root disk during first boot:</p><p>o Bootable: you can attach to a VM and boot from it</p><p>o Durable: can survive VM terminate</p><p>· Some OS images are customized for Compute Engine</p><p>· Can survive VM deletion if “Delete boot disk when instance is deleted” is disabled.</p><p>Persistent disks</p><p>· Network storage 🗄 appearing as a block device</p><p>o Attached to a VM through the network interface</p><p>o Durable storage 🗄: can survive VM terminate</p><p>o Bootable: you can attach to a VM and boot from it</p><p>o Snapshots: incremental backups</p><p>o Performance: Scales⚖️ with Size</p><p>· Features</p><p>o HDD or SSD</p><p>o Disk resizing</p><p>o Attached in read-only mode to multiple VMs</p><p>o Encryption keys 🔑</p><p>Local SSD disks are physically attached to a VM</p><p>· More IOPS, lower latency and higher throughput</p><p>· 375-GB up to 8 disks (3TB)</p><p>· Data Survives a reset but not VM Stop 🛑 or terminate</p><p>· VM Specific cannot be reattached to a different VM</p><p>RAM disk</p><p>· tmps</p><p>· Faster than local disk, slower memory</p><p>o Use when your application expects a file system structure and cannot directly store its data in memory</p><p>o Fast scratch disk, or fast cache</p><p>· Very volatile: erase on stop 🛑 or reset</p><p>· May require larger machine is RAM sized for application</p><p>· Consider using persistent disk to back up RAM disk data</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*MNupgkg6opZthr-3tLvzaQ.png" /></figure><p><strong>Common Compute Engine actions</strong></p><p>· Metadata and scripts (Every VM instance store its metadata on a metadata server)</p><p>· Move an instance to a new zone</p><p>o Automated process (moving within region)</p><p>§ gcloud compute instance move</p><p>§ updates reference to VM; not automatic</p><p>o Manual process (moving between regions):</p><p>§ Snapshots all persistent disks</p><p>§ Create new persistent disk in destination zone disks restored from snapshots</p><p>§ Create new VMs in the destination zone and attach new persistent</p><p>§ Assign static IP to new VM</p><p>§ Update references to VM</p><p>§ Delete the snapshots, original disks and original VM</p><p>· Snapshot: Back up critical data</p><p>· Snapshot: Migrate data between zones</p><p>· Snapshot: Transfer to SSD to improve performance</p><p>· Persistent disk snapshots</p><p>o Snapshot is not available for local SSD</p><p>o Creates an incremental backup to Cloud Storage 🗄</p><p>§ Not visible in your buckers; managed by the snapshot service</p><p>§ Consider cron jobs for periodic incremental backup</p><p>o Snapshots can be restored to a new persistent disk</p><p>§ New disk can be in another region or zone in the same project</p><p>§ Basis of VM migration: “moving” a VM to a new zone</p><p>· Snapshot doesn’t back up VM metadata, tags, etc.</p><p>§ Resize persistent disk</p><p><em>You can grow disks, but never shrink them!</em></p><p><em>“If you had my love and I gave you all my trust. Would you comfort me?”</em></p><p><strong>Identity Access Management (IAM)</strong></p><p>IAM is a sophisticated system built on top of email, like address names, job type roles in granular permissions.</p><p><strong>Who, Which, What</strong></p><p>It is a way of identifying <strong>who</strong> can do what on <strong>which</strong> resource the who could be a person, group or application. The what refers to specific privileges or actions and the resource could be any DCP service.</p><p>- Google Cloud☁️ Platform Resource is or organized hierarchically</p><p>- If you change the resource hierarchy, the policy hierarchy also changes.</p><p>- A best practice to follow the principle of least privilege.</p><p>· <strong>Organization</strong> <strong>node</strong> is the root note in this hierarchy. Represents your company.</p><p>· <strong>Folders 📂</strong>are the Children of the organization. Folder📂 could represent a department Cloud☁️</p><p>· <strong>Projects</strong> are the Children of the Folders📂. Projects provide a trust boundary for a company</p><p>· <strong>Resources</strong> are the Children of projects. Each Resource has exactly one parent Cloud☁️.</p><p><strong>Organization</strong></p><p>· An organization node is a root node for Google Cloud☁️ resources</p><p>· Organization roles:</p><p>o Organization Admin: Control over all Cloud☁️ resources: useful for auditing</p><p>o Project Creator: Controls project creation: Control project creation: control over who can create projects</p><p>· Creating and managing Organization when a G Suite or IAM account creates a GCP Project. There are two roles assigned to t users or groups:</p><p>o Super administrator:</p><p>§ Assign the Organization admin role to some users</p><p>§ Be the point of contact in case of recovery issues</p><p>§ Control the lifecycle 🔄of the G Suite of Cloud☁️ Identity account and Organization</p><p>o Organization admin:</p><p>§ Define IAM policies</p><p>§ Determine the structure of the resource hierarchy</p><p>§ Delegate responsibility over critical components such as Network, billing, and Resource Hierarchy through IAM roles</p><p><strong>Folders 📂</strong></p><p>· Additional grouping mechanism and isolation boundaries between projects:</p><p>o Different legal entities</p><p>o Departments</p><p>o Teams</p><p>· Folders 📂 allow delegation of administration rights.</p><p><strong>Roles</strong></p><p>· There are three types of roles in GCP:</p><p>1. Primitive roles apply across all GCP services in a project</p><p>o Primitive roles offer fixed, coarse-grained levels of access</p><p>§ Owner — Full privileges</p><p>§ Editor — Deploy, modify &amp; configure</p><p>§ Viewer 👓 — Read-only access</p><p>§ *Billing Administrator — Manage Billing, Add Administrators</p><p>2. Predefined roles apply to a particular service in a project</p><p>o Predefined roles offer more fine-grained permissions on a particular service</p><p>o Example: Compute Engine IAM roles:</p><p>§ Compute Admin — Full control of Compute Engine</p><p>§ Network Admin — Create, modify, delete Network Resources (except FW rules and SSL Certs)</p><p>§ Storage 🗄 Admin– Create, modify, delete disks, Images, and Snapshots</p><p>3. Custom roles define a precise set of permissions</p><p><strong>Members</strong></p><p>Defined the “who” part of who can do what on which resource.</p><p>There are five different types of members:</p><p>1. Google account represents a developer, an administrator or any other person who interacts with GCP. Any email address can be associated with a Google account</p><p>2. Service account is an account that belongs to your application instead of to an individual and user.</p><p>3. Google group is unnamed collection of Google accounts and service accounts.</p><p>4. G Suite domains represent your organization’s Internet domain name</p><p>5. Cloud Identity domains manage users and groups using the Google Admin console, but you do not pay for or received G Suite collaboration products</p><p>Google Cloud Directory Sync<em> ↔️</em> — synchronizes <em>↔️ </em>users and groups from your existing active directory or LDAP system with the users and groups in your Cloud identity domain. <em>Synchronization ↔️ is one way only</em></p><p>Single Sign-om (SSO)</p><p>· Use Cloud Identity to configure SAML, SSO</p><p>· IF SAML2 isn’t supported, use a third-party solution</p><p>Service Accounts</p><p>· Provide an identity for carrying out server-to-server interactions</p><p>o Programs running within Compute Engine instances can automatically acquire access tokens with credentials</p><p>o Tokens are used to access any service API or services in your project granted access to a service account</p><p>o Service accounts are convenient when you’re not accessing user data</p><p>· Service accounts are identified by an email address</p><p>o <a href="/service/mailto:123845678986-computer@project.gserviceaccount.com">123845678986-computer@project.gserviceaccount.com</a></p><p>o Three types of Service accounts:</p><p>o User-created (custom)</p><p>o Built-in</p><p>§ Compute Engine and App Engine default service accounts</p><p>o Google APIs Service account</p><p>§ Runs internal Google processes on your behalf</p><p>· Default Compute Engine Service account</p><p>o Automatically created per project with auto-generated name and email address:</p><p>o Name has -compute suffix</p><p>o <a href="/service/mailto:39xxxx0965-computer@developer.gserviceaccount.com">39xxxx0965-computer@developer.gserviceaccount.com</a></p><p>o Automatically added as a project Editor</p><p>o By default, enabled on all instances created using glcoud or GCP console</p><p>· Service account permissions</p><p>o Default service accounts: primitive and predefined roles</p><p>o User-created service accounts: predefined roles</p><p>o Roles for Service accounts can be assigned to groups or users</p><p><strong>Authorization</strong> is the process of determining what permissions and authenticated identity has on a set of specified resource(s)</p><p><strong>Scopes</strong> are used to determine whether unauthenticated identity is authorized.</p><p>Customizing Scopes for a VM</p><p>· Scopes can be changed after an instance is created</p><p>· For user-created service accounts, use IAM roles instead.</p><p><strong>IAM Best Practices</strong></p><p>1. Leverage and understand the resource hierarchy</p><p>o Use Projects to group resources that share the same trust boundary</p><p>o Check the policy granted on each resource and make sure you understand inheritance</p><p>o Use “Principles of Least Privilege” when granting roles</p><p>o Audit policies in Cloud☁️ audit logs: setiampolicy</p><p>o Audit membership of groups used in policies</p><p>2. Grant roles to Google groups instead of individuals</p><p>o Update group membership instead of changing IAM Policy</p><p>o Audit membership of groups used in policies</p><p>o Control the ownership of the Google group used in IAM policies</p><p>3. Service accounts</p><p>o Be very careful granting serviceAccountUser role</p><p>o When you create a service account, give it a display name that clearly identifies its purpose</p><p>o Establish a naming convention for service accounts</p><p>o Establish key rotation policies and methods</p><p>o Audit with serviceAccount.keys.list() method</p><p>Cloud Identity-Aware Proxy (Cloud IAP)</p><p>Enforce access control policies for application and resources:</p><p>· Identity-based access control</p><p>· Central authorization layer for applications accessed by HTTPS</p><p>IAM policy is applied after authentication</p><p><em>“Never gonna give you up… Never gonna say goodbye.”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*4JKTomCP0NLny96AW7AWoQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*iTZfqhNWuNdlPpawCfEmlg.png" /></figure><p><strong>Storage 🗄 and Database Services 🛢</strong></p><p><strong>Cloud Storage 🗄 </strong>(Object Storage 🗄) — It allows worldwide🌎 storage 🗄 and retrieval of any amount of data at any Time ⏳.</p><p>· Scalable⚖️ to exabytes</p><p>· Time⏳ to first byte in milliseconds</p><p>· Very high availability across all storage 🗄 classes</p><p>· Single API across storage 🗄 classes</p><p>Use Cases:</p><p>o Website content</p><p>o Storing data for archiving and disaster recovery</p><p>o Distributing large data objects to users via direct download</p><p>Cloud Storage 🗄 has four storage 🗄 classes:</p><p>1. <strong>Regional storage 🗄</strong> enables you to store data at lower cost with the tradeoff of data being stored in a specific regional location.</p><p>2. <strong>Multi regional storage 🗄</strong> is geo redundant, Cloud Storage 🗄 stores, your data redundantly and at least two geographic locations separated by at least 100 miles within the multi-regional location of the bucket 🗑.</p><p>3. <strong>Near line storage 🗄</strong> is a low cost, highly durable storage 🗄 service for storing infrequently accessed data.</p><p>4. <strong>Cold Line storage 🗄</strong> is a very low cost, highly durable storage 🗄 service for data, archival, online backup and disaster recovery. Data is available within milliseconds, not hours or days.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*T6IbQs-_wW5_eXLR9qxm_w.png" /></figure><p>Buckets 🗑</p><p>o Naming requirements</p><p>o Cannot be nested</p><p>o Regional bucket 🗑 &amp; Multi-Regional cannot be changed</p><p>o Objects can be moved from bucket 🗑 to bucket 🗑</p><p>Objects</p><p>o Inherit storage 🗄 class of bucket 🗑 when created</p><p>o No minimum size: unlimited storage 🗄</p><p>Access</p><p>o gsutil command</p><p>o (RESTful) JSON API or XML API</p><p>Access control lists (ACLs)</p><p>For some applications, it is easier and more efficient to grant limited Time ⏳ access tokens that can be used by any user instead of using account-based authentication for controlling resource access.</p><p>Signed URLs</p><p>“Valet Key” access to Buckets 🗑 and objective via ticket:</p><p>o Ticket is a cryptographically signed URL</p><p>o Time ⏳-limited</p><p>o Operations specified in ticket: HTTP GET, PUT DELETE (not POST)</p><p>o Any user with URL can invoke permitted operations</p><p><strong>Cloud Storage 🗄 Features</strong></p><p>· Customer-supplied encryption key (CSEK)</p><p>o Use your own key instead of Google-managed keys 🔑</p><p>· Object Lifecycle 🔄Management</p><p>o Automatically delete or archive objects</p><p>· Object Versioning</p><p>o Maintain multiple versions of objects</p><p>§ Objects are immutable</p><p>§ Object Versioning:</p><p>· Maintain a history of modification of objects</p><p>· List archived versions of an object, restore an object to an older state, or delete a version</p><p>· Directory synchronization ↔️</p><p>o Synchronizes a VM directory with a bucket 🗑</p><p>· Object change notification</p><p>· Data import</p><p>· Strong 💪 consistency</p><p>Object Lifecycle 🔄Management policies specify actions to be performed on objects that meet certain rules</p><p>· Examples:</p><p>o Downgrade storage 🗄 class on objects older than a year.</p><p>o Delete objects created before a specific date.</p><p>o Keep only the 3 most recent versions of an object</p><p>· Object inspection occurs in asynchronous batches</p><p>· Changes can take 24 hours to apply</p><p>Object change notification can be used to notify an application when an object is updated or added to a bucket 🗑</p><p>Recommended: Cloud Pub/Sub Notifications for Cloud Storage 🗄</p><p>Data import services</p><p>· Transfer Appliance: Rack, capture and then ship your data to GCP</p><p>· Storage 🗄 Transfer Service: Import online data (another bucket 🗑, S3 bucket 🗑, Web Service)</p><p>· Offline Media Import: Third-party provider uploads the data from physical media</p><p>Cloud Storage 🗄 provides Strong 💪 global consistency</p><p><strong>Cloud SQL </strong>is a fully managed database 🛢 service (MySQL or PostgreSQL)</p><p>· Patches and updates automatically applied</p><p>· You administer MySQL users</p><p>· Cloud SQL supports many clients</p><p>o gCloud sql</p><p>o App Engine, G Suite scripts</p><p>o Applications and tools 🛠</p><p>§ SQL Workbench Toad</p><p>§ External applications using standard MySQL drivers</p><p>- Cloud SQL delivers high performance and scalability⚖️ with up to 30 TBs of storage 🗄 capacity, 40,000 IOPS and 416 GB of RAM</p><p>- Replica service that can replicate data between multiple zones</p><p>- Cloud SQL also provides automated and on demand backups.</p><p>- Cloud SQL scales⚖️ up (require a restart)</p><p>- Cloud SQL scales⚖️ out using read replicas.</p><p><strong>Cloud☁️ Spanner </strong>is a service built for the Cloud☁️ specifically to combine the benefits of relational database 🛢 structure with non-relational horizontal scale⚖️</p><p>Data replication is synchronized across zones using Google’s global fiber network</p><p>· Scale⚖️ to petabytes</p><p>· Strong 💪 consistency</p><p>· High Availability</p><p>· Used for financial and inventory applications</p><p>· Monthly upTime ⏳</p><p>o Multi-regional:99.999%</p><p>o Regional: 99.99%</p><p><strong>Cloud Firestore </strong>is a fast, fully managed serverless Cloud☁️ native NoSQL document database 🛢 that simplifies storing, syncing ↔️ and querying data for your Mobile 📱 Web and ioT applications a global scale⚖️.</p><p>· Simplifies storing, syncing ↔️, and querying data</p><p>· Mobile 📱, web🕸, and IoT apps at global scale⚖️</p><p>· Live synchronization ↔️ and offline support</p><p>· Security🔒 features</p><p>· ACID transactions</p><p>· Multi-region replication</p><p>· Powerful query engine</p><p>Datastore mode (new server projects):</p><p>· Compatible with Datastore applications</p><p>· Strong 💪 consistency</p><p>· No entity group limits</p><p>Native mode (new Mobile 📱 and web🕸 apps):</p><p>· Strongly 💪 consistent storage 🗄 layer</p><p>· Collection and document 📄 data model</p><p>· Real-Time updates</p><p>· Mobile 📱 and Web🕸 Client libraries📚</p><p><strong>Cloud Bigtable</strong> (Wide Column DB) is a fully managed, no SQL database 🛢 with petabytes scale⚖️ and very low latency.</p><p>· Petabyte-scale⚖️</p><p>· Consistent sub-10ms latency</p><p>· Seamless scalability⚖️ for throughput</p><p>· Learns and adjusts to access patterns</p><p>· Ideal for Ad Tech, FinTech, and IoT</p><p>· Storage 🗄 engine for ML applications</p><p>· Easy integration with open source big data tools 🛠</p><p><strong>Cloud MemoryStore </strong>is a fully managed Redis Service built on scalable⚖️, Secure🔒 and highly available infrastructure managed by Google Applications.</p><p>· In-memory data store service</p><p>· Focus on building great apps</p><p>· High availability, failover, patching and Monitoring 🎛</p><p>· Sub-millisecond latency</p><p>· Instances up to 300 GB</p><p>· Network throughput of 12 Gbps</p><p>· “Easy Lift-and-Shift”</p><p><strong>Resource Management </strong>lets you hierarchically manage resources</p><p>· Resources can be categorized by Project, Folder📂, and Organization</p><p>· Resources are global🌎, regional, or zonal</p><p>· Resource belongs to only one project</p><p>· Resources inherent policies from their parents</p><p>· Resource consumption is measured in quantities like rate of use or Time ⏳</p><p>· Policies contain a set of roles, and members and policies are set on</p><p>· Policy is less restrictive; it overrides the more restrictive resource policy.</p><p>· Organization node is root node for GCP resources</p><p>· Organization contains all billing accounts.</p><p>· Project accumulates the consumption of all its resources</p><p>o Track resource and quota usage</p><p>o Enable billing</p><p>o Manage permissions and credentials</p><p>o Enable services and APIs</p><p>· Project use 3 identifying attributes</p><p>o Project Name</p><p>o Project Number</p><p>o Project ID</p><p><strong>Quotas</strong></p><p>All resources are subject to project quotas or limits</p><p>Examples:</p><p>o Total resources you can create per project: 5 VPC networks/project</p><p>o Rate you make API requests in a project: 5 admin actions/second (Cloud☁️ Spanner)</p><p>o Total resources you can create per region: 24 CPUs region/project</p><p><em>Increase: Quotas page in GCP Console or a support ticket</em></p><p><em>Your use of GCP expands over time</em>⏳<em>, your quotas may increase accordingly.</em></p><p>Project Quotas:</p><p>o Prevent runaway consumption in case of an error or malicious attack</p><p>o Prevent billing spikes or surprises</p><p>o Forces sizing consideration and periodic review</p><p><strong>Labels and names</strong></p><p>Labels are a utility for organizing GCP resources</p><p>· Attached to resources: VM, disk, snapshot, image</p><p>o GCP Console, gCloud, or API</p><p>· Example uses of labels:</p><p>o Inventory</p><p>o Filter resources</p><p>o In scripts</p><p>§ Help analyze costs</p><p>§ Run bulk operations</p><p>§</p><p><strong>Comparing labels and tags</strong></p><p>· Labels are a way to organize resources across GCP</p><p>o Disks, image, snapshots</p><p>· User-defined strings.in key-value format</p><p>· Propagated through billing</p><p>· Tags are applied to instances only</p><p>· User-defined strings</p><p>· Tags are primarily used for networking (applying firewall rules🔥)</p><p><strong>Billing</strong></p><p>· Set a budget lets you track how you spend</p><p>· Set a budget alerts 🔔send alerts 🔔and emails📧to Billing Admin</p><p>· Use Cloud☁️ pubs up notifications to programmatically receive spend updates about this budget.</p><p>· Optimize your GCP spend by using labels</p><p>· Visualize GCP spend with Data Studio</p><p><em>Its recommended labeling all your resources and exporting billing data to Big Query to Analyze spend.</em></p><p><em>“Every single day. Every word you say… Every game you play. Every night you stay. I’ll be watching you”</em></p><p><strong>Resource Monitoring 🎛</strong></p><p>Stackdriver</p><p>· Integrated <strong>Monitoring 🎛</strong>, <strong>Logging</strong>, <strong>Error Reporting</strong>, <strong>Tracing </strong>and <strong>Debugging</strong></p><p>· Manages across platforms</p><p>o GCP and AWS</p><p>o Dynamic discovery of GCP with smart defaults</p><p>o Open-source agents and integrations</p><p>· Access to powerful data and analytics tools 🛠</p><p>· Collaboration with third-party software</p><p>Monitoring 🎛 is important to Google because it is at the base of Site Reliability Engineering (SRE).</p><p>· Dynamic config and intelligent defaults</p><p>· Platform, system, and application metrics</p><p>o Ingests data: Metrics, events, metadata</p><p>o Generates insights through dashboards, charts, alerts</p><p>· Uptime /health checks</p><p>· Dashboards</p><p>· Alerts</p><p><strong>Workspace</strong> is the root entity that hold Monitoring 🎛 and configuration information</p><p>· “Single pane of glass 🍸”</p><p>o Determine your Monitoring 🎛 needs up front</p><p>o Consider using separate Workspace for data and control isolation</p><p>To access an AWS account, you must configure a project in GCP to hold the AWS connector because workspaces can monitor all of your DCP projects in a single place.</p><p>Stack Driver Monitoring 🎛 allows you to create custom dashboards that contain charts of the metrics that you want a monitor.</p><p>Uptime checks test the availability of your public services</p><p>Stock driver Monitoring 🎛 can access some metrics without the Monitoring 🎛 agent, including CPU utilization, some disk traffic metrics, network traffic and up Time⏳ information.</p><p>Stack Driver <strong>Logging</strong> provides logging, error, reporting, tracing and debugging.</p><p>· Platform, systems, and application logs</p><p>o API to write to logs</p><p>o 30-day retention</p><p>· Log search/view/filter</p><p>· Log-based metrics</p><p>· Monitoring 🎛 alerts 🔔can be set on log events</p><p>· Data can be exported to Cloud Storage 🗄, BigQuery, and Cloud Pub/Sub</p><p>· Analyze logs in BigQuery and visualize in Data Studio</p><p>Stack driver <strong>Error Reporting </strong>counts, analyzes and aggravates the errors in your running Cloud☁️ services</p><p>· Error notifications</p><p>· Error dashboard</p><p>· Go, Java☕️, .NET, Node.js, PHP, Python 🐍, and Ruby♦️</p><p>Stack Driver <strong>Tracing </strong>is a distributed tracing system that collects Layton. See data from your applications and displays it in the GCP console.</p><p>· Displays data in near real-Time ⏳</p><p>· Latency reporting</p><p>· Per-URL latency sampling</p><p>· Collects latency data</p><p>o App Engine</p><p>o Google HTTP(S) load balancers🏋️‍♀️</p><p>o Applications instrumented with the Stackdriver Trace SDKs</p><p><strong>Debugging</strong></p><p>· Inspect an application without stopping🛑 it or slowing it down significantly</p><p>· Debug snapshots:</p><p>o Capture call stack and local variables of a running application</p><p>· Debug logpoints:</p><p>o Inject logging into a service without stopping🛑 it</p><p>· Java☕️, Python🐍, Go, Node.js and Ruby♦️</p><p>“<em>At last the sun is shining, the clouds of blue roll by”</em></p><p>We will continue next week with Part III of this series…Thanks –</p><p>–MCS</p><p><em>Originally published at </em><a href="https://sqlsquirrels.com/2020/10/16/week-of-october-16th/"><em>https://sqlsquirrels.com</em></a><em> on October 16, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77738b53e2be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week of October 9th]]></title>
            <link>https://ms4446.medium.com/week-of-october-9th-22d44b39415a?source=rss-bc079425cf0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/22d44b39415a</guid>
            <category><![CDATA[google-cloud]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[hybrid-cloud]]></category>
            <category><![CDATA[gcp]]></category>
            <dc:creator><![CDATA[Mark Shay]]></dc:creator>
            <pubDate>Wed, 07 Oct 2020 16:45:00 GMT</pubDate>
            <atom:updated>2020-10-07T17:40:47.536Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A1rK-ZR2jfW287qdq_ksVg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/354/0*7HYelPoR9g_Dpfs4" /></figure><p><strong>Part I of a Cloud☁️ Journey</strong></p><p><em>“On a cloud☁️ of sound 🎶, I drift in the night🌙”</em></p><p>Hi All -</p><p>Happy Hump 🐫 Day!</p><p>The last few weeks we spent some quality time visiting with Microsoft SQL Server 2019. A few weeks back, we kicked the tires 🚗 with <a href="https://sqlsquirrels.com/2020/09/18/week-of-september-18th/">IQP and the improvements made to TempDB</a>. Then week after we were fully immersed with Microsoft’s most ambitious offering in SQL Server 2019 with <a href="https://sqlsquirrels.com/2020/09/25/week-of-september-25th/">Big Data Clusters (BDC).</a></p><p>This week we make our triumphant return back to the cloud☁️. If you have been following our travels this past summer☀️ we focused on the core concepts of <a href="https://sqlsquirrels.com/2020/07/31/week-of-july-31st/">AWS</a> and then we concentrated on to the fundamentals of <a href="https://sqlsquirrels.com/2020/09/04/week-of-september-4th/">Microsoft Azure</a>. So, the obvious natural progression of our continuous cloud☁️ journey✈️ would be to further explore the Google Cloud Platform or more affectionately known as GCP. We had spent a considerable amount time 🕰 before learning many of the exciting offerings in <a href="https://sqlsquirrels.com/tag/gcp/">GCP</a> but our long awaited return was overdue. Besides we felt the need to gives some love❤️ and oxytocin 🤗 for our friends from Mountain View</p><p><em>“It starts with one</em>☝️ <em>thing…I don’t know why”</em></p><p>Actually, Google has <a href="https://www.google.com/about/philosophy.html">10 things</a> when it comes to their philosophy but more on that later. 😊</p><p>One of Google strong 💪 beliefs is that in “in the future every company will be a data company because making the fastest and best use of data is a critical source of competitive advantage.”</p><p>GCP is Google’s Cloud Computing☁️ solution that provides a wide variety of services such as compute, storage🗄, big data, and machine learning for managing and getting value from data and doing that at scale⚖️. GCP offers over <a href="https://cloud.google.com/products/">90 products and Services</a>.</p><p><em>“If you know your history… Then you would know where you coming from”</em></p><p>In 2006, AWS began offering cloud computing☁️ to the masses, several years later Microsoft Azure followed suit and shortly right after GCP joined the Flexible🧘‍♀️, Agile, Elastic, Highly Available and scalable⚖️ party 🥳. Although, Google was a late arrival to the cloud computing☁️ shindig🎉 their approach and strategy to Cloud☁️ Computing is far from a “<a href="https://www.merriam-webster.com/dictionary/Johnny-come-lately">Johnny-come-lately</a> “ 🤠</p><p><em>“Google Infrastructure for Everyone” </em>😀</p><p>Google does not view cloud computing☁️ as a “commodity” cloud☁️. Google’s methodology to cloud computing☁️ is of a “premier💎 cloud☁️”, one that provides the same innovative, high-quality, deluxe set of services, and rich development environment with the advance hardware that Google has been running🏃‍♂️ internally for years but made available through GCP.</p><p>In addition, Google who is certainly no stranger to <a href="https://opensource.google/projects/explore/featured">Open Source</a> software promotes a vision🕶 of the “open cloud☁️”. A cloud☁️ environment where companies🏢🏭 large and small 🏠can seamlessly move workloads from one cloud☁️ provider to another. Google wants customers to have the ability to run 🏃‍♂️their applications anywhere not just in Google.</p><p><em>“Get outta my dreams</em>😴 <em>… Get into my car </em>🚙 <em>“</em></p><p>Now that I extolled the virtues of Google’s vision 🕶 and strategy for Cloud computing☁️, it’s time to take this car 🚙 out for a spin. Fortunately, the team at Google Cloud☁️ have put together one of the best compilations since the <a href="https://en.wikipedia.org/wiki/Led_Zeppelin_Boxed_Set">Zeppelin Box Set</a> 🎸in there <a href="https://app.pluralsight.com/paths/certificate/cloud-engineering-with-google-cloud">Google Cloud Certified Associate Cloud Engineer Path</a> on Pluralsight.</p><p>Since there is some much to unpack📦, we will need to break our learnings down into multiple parts. So to help us put our best foot 🦶forward through the first part our journey will be Googler <a href="https://www.linkedin.com/in/brianthomasrice/">Brice Rice</a> and former Googler <a href="https://www.linkedin.com/in/catherine-gamboa-a065a23a/">Catherine Gamboa</a> through their <a href="https://app.pluralsight.com/library/courses/google-cloud-platform-fundamentals-core-infrastructure/recommended-courses">Google Cloud Platform Fundamentals — Core Infrastructure</a> course.</p><p>In a great introduction, Brian expounds on the definition of <a href="https://csrc.nist.gov/publications/detail/sp/800-145/final">Cloud Computing</a> ☁️ and a brief history on Google’s transformation from the virtualization model to a container‑based architecture, an automated, elastic, third‑wave cloud☁️ built from automated services.</p><p>Next, Brian reviews GCP computing architectures:</p><p><strong>Infrastructure as a Service (IaaS) — </strong>provide raw compute, storage🗄, and network organized in ways that are familiar from data centers. You pay for what you allocate</p><p><strong>Platform as a Service (PaaS) — </strong>binds application code you write to libraries📚 that give access to the infrastructure your application needs. You pay for what you use.</p><p><strong>Software as a Service (SaaS)</strong> — applications in that they’re consumed directly over the internet by end users. Popular examples: Search🔎, Gmail📧, Docs 📄, and Drive💽</p><p>Then we had an overview of Google’s network which according to some estimates carries as much as 40% of the world’s 🌎 internet traffic 🚦. The network interconnects at more than 90 internet exchanges and more than 100 points of presence worldwide🌎. One of the benefits of GCP is that it leverages Google’s robust network. Allowing GCP resources to be hosted in multiple locations worldwide🌎. At granular level these locations are organized by <strong>region</strong>s and <strong>zones</strong>. A region is a specific geographical🌎 location where you can host your resources. Each region has one or more zones (most regions have three or more zones).</p><p>All of the zones within a region have fast⚡️network connectivity among them. A zone is like as a single failure domain within a region. A best practice in building a fault‑tolerant application, is to deploy resources across multiple zones in a given region to protect against unexpected failures.</p><p>Next, we had summary on Google’s Multi-layered approach to security🔒.</p><ul><li>Server boards and the networking equipment in Google data centers are custom‑designed by Google.</li><li>Google also designs custom chips, including a hardware security<a href="https://sqlsquirrels.com/2020/10/07/week-of-october-9th/">🔒</a> chip (Titan) deployed on both servers and peripherals.</li><li>Google Server machines use cryptographic signatures✍️ to make sure they are booting the correct software.</li><li>Google designs and builds its own data centers, which incorporate multiple layers of physical security🔒 protections. (Access to these data centers is limited to only a few Google Employees)</li><li>Google’s infrastructure provides cryptographic🔐 privacy🤫 and integrity for remote procedure‑called data on the network, which is how Google Services communicate with each other.</li><li>Google has multitier, multilayer denial‑of‑service protections that further reduces the risk of any denial‑of‑service impact.</li></ul><p>Rounding out the introduction was a sneak peek 👀 into the Budgets and Billing 💰. Google offers customer-friendly 😊 pricing with a per‑second billing for its IaaS compute offering, Fine‑grained billing is a big cost‑savings for workloads that are bursting. GCP provides four tools 🛠to help with billing:</p><p>Budgets can be a fixed limit, or you can tie it to another metric, for example a percentage of the previous month’s spend.</p><p>Alerts 🔔 are generally set at 50%, 90%, and 100%, but its customizable</p><p>Billing export🧾 store detailed billing information in places where it’s easy to retrieve for more detailed analysis</p><p>Reports📊 is a visual tool in the GCP console that allows you to monitor your expenditure. GCP also implements quotas, which protect both account owners and the GCP community as a whole.</p><p>Quotas are designed to prevent the overconsumption of resources, whether because of error or malicious attack. There are two types of quotas, rate quotas and allocation quotas. Both get applied at the level of the GCP project.</p><p>After a great intro next Catherine kick starts🦵 us with GCP. She begins with a discussion around resource <a href="https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy">hierarchy</a> 👑 and trust🤝 boundaries.</p><p><strong>Projects</strong> are the main way you organize the resources (all resources belong to a project) you use in GCP. Projects are used to group together related resources, usually because they have a common business objective. A project consists of a set of users, a set of APIs, billing, quotas, authentication, and monitoring 🎛 settings for those APIs. Projects have 3 identifying attributes:</p><ol><li>Project ID (Globally unique)</li><li>Project Name</li><li>Project Number (Globally Unique)</li></ol><p>Projects may be organized into <strong>folders </strong>🗂. Folders🗂 can contain other folders 🗂. All the folders 🗂 and projects used by an organization can be put in <strong>organization nodes</strong>.</p><p><em>Please Note: If you use folders, you need to have an organization node at the top of the hierarchy</em> 👑.</p><p>Projects, folders🗂, and organization nodes are all places where the <strong>policies</strong> can be defined.</p><p>A <strong>policy</strong> is a set on a resource. Each policy contains a set of <strong>roles </strong>and <strong>members</strong> 👥.</p><p><em>Please note IAM provides finer‑grained types of roles for project that contains sensitive data, where primitive roles are too generic.</em></p><p>Another role made available in IAM to control the billing for a project without the right to change the resources in the project is <strong>billing administrator role.</strong></p><p>A service account is a special type of Google account intended to represent a non-human user that needs to authenticate and be authorized to access data in Google APIs.</p><p><strong>Resources </strong>inherit policies from the parent.</p><p><strong>Identity and Access Management</strong> ( <strong>IAM</strong>) allows administrators to manage who (i.e. Google account, a Google group, a service account, or an entire G Suite) can do what (role) on specific resources There are four ways to interact with IAM and the other GCP management layers:</p><p>When it comes to entitlements “<a href="https://us-cert.cisa.gov/bsi/articles/knowledge/principles/least-privilege#:~:text=The%20Principle%20of%20Least%20Privilege%20states%20that%20a%20subject%20should,control%20the%20assignment%20of%20rights."><strong>The principle of least privilege</strong></a>” should be followed. This principle says that each user should have only those privileges needed to do their jobs. In a least privilege environment, people are protected from an entire class of errors. GCP customers use IAM to implement least privilege, and it makes everybody happier 😊.</p><p>For example, you can designate an organization <strong>policy administrator</strong> so that only people with privilege can change policies. You can also assign a <strong>project creator role</strong>, which control who can spend money 💵.</p><p>Finally, we checked into <strong>Marketplace</strong> 🛒 which provides an easy way to launch common software packages in GCP. Many common web🕸 frameworks, databases🛢, CMSs, and CRMs are supported. Some Marketplace 🛒 images charge usage fees, like third parties with commercially licensed software. But they all show estimates of their monthly charges before you launch them.</p><p><strong>Google Compute Engine</strong></p><p><em>Please Note: GCP updates the base images for these software packages to fix critical issues and vulnerabilities, but it doesn’t update the software after it’s been deployed. </em>However, you’ll have access to the deployed system so you can maintain them.</p><p><em>“Look at this stuff…</em>🤩<em> Isn’t it neat? Wouldn’t you think my collection’s complete </em>🤷‍♂️<em>?”</em></p><p>Now with basics of GCP covered it was time 🕰 to explore 🧭 some the computing architectures made available within GCP.</p><p><strong>Virtual Private Cloud (VPC)</strong> — manage a networking functionality for your GCP resources. Unlike <a href="https://aws.amazon.com/vpc/faqs/">AWS</a> (natively), GCP VPC’s are global 🌎 in scope. They can have subnets in any GCP region worldwide. And subnets can span the zones that make up a region.</p><ul><li>Provides flexibility🧘‍♀️ to scale⚖️ and control how workloads connect regionally and globally🌎</li><li>Access VPCs without needing to replicate connectivity or administrative policies in each region</li><li>Bring your own IP addresses to Google’s network infrastructure across all regions</li></ul><p>Much like physical networks, VPCs have <strong>routing tables</strong>👮‍ and Firewall 🔥 Rules which are built in.</p><ul><li>Routing tables👮‍♂️ forward traffic🚦from one instance to another instance</li><li>Firewall🔥 allow to restrict access to instances, both incoming and outgoing traffic🚦.</li></ul><p><strong>Cloud DNS</strong> managed has low latency and high availability DNS service running on the same infrastructure as Google</p><p><strong>Cloud VPN</strong> securely connects your peer network to your Virtual Private Cloud (VPC) network through an IPsec VPN connection.</p><p><strong>Cloud Router</strong> lets your other networks and your Google VPC exchange route information over the VPN using the Border Gateway Protocol.</p><p><strong>VPC Network Peering</strong> enables you to connect VPC networks so that workloads in different VPC networks can communicate internally. Traffic🚦stays within Google’s network and doesn’t traverse the public internet.</p><ul><li>Direct Peering -Private connection between you and Google for your hybrid cloud☁️</li><li>Carrier Peering -Connection through the largest partner network of service providers</li></ul><p><strong>Dedicated Interconnect</strong> which allows direct private connections providing highest uptimes (99.99% SLA) for their interconnection with GCP</p><p><em>to store data of permanent value somewhere else because local SSD’s content doesn’t last past when the VM terminates.</em></p><p><strong>Google Compute Engine </strong>(IaaS) delivers Linux or Windows virtual machines (VMs) running in Google’s innovative data centers and worldwide fiber network. Compute Engine offers scale⚖️, performance, and value that lets you easily launch large compute clusters on Google’s infrastructure. There are no upfront investments, and you can run thousands of virtual CPUs on a system that offers quick, consistent performance. VMs can be created via Web 🕸 console or the gcloud command line tool🔧.</p><p>For Compute Engine VMs there are two kinds of persistent storage🗄 options:</p><p><em>If your application needs high‑performance disk, you can attach a local SSD</em>. ⚠️<em> Beware</em></p><p>Compute Engine offers innovative pricing:</p><ul><li>Per second billing</li><li>Preemptible instances</li><li>High throughput to storage🗄 at no additional cost</li><li>Only pay for hardware you need.</li></ul><p>Currently, N2D standard and high-CPU machine types have up to 224 vCPUs and 128 GB of memory which seems like enough horsepower 🐎💥 but GCP keeps upping 🃏🃏 the ante 💶 on <a href="https://cloud.google.com/compute/docs/machine-types">maximum instance type, vCPU, memory and persistent disk</a>. 😃</p><p>Sample Syntax creating a VM:</p><pre><strong>$ gcloud compute zones list | grep us-central1$ gcloud config set compute/zone us-central1-c</strong></pre><pre><strong>$ gcloud compute instances create &quot;my-vm-2&quot; -machine-type &quot;n1-standard-1&quot; -image-project &quot;debian-cloud&quot; -image &quot;ebian-9-stretch-v20170918&quot; -subnet &quot;default&quot;</strong></pre><p>Compute Engine also offers auto Scaling⚖️ which adds and removes VMs from applications based on load metrics. In addition, Compute Engine VPCs offering load balancing 🏋️‍♀️ across VMS. VPC supports s everal different kinds of load balancing 🏋️‍♀️:</p><p><strong>Cloud CDN</strong> -accelerates🏃‍♂️ content delivery in your application allowing users to experience lower network latency, the origins of your content will experience reduced load, and cost savings. Once you’ve set up HTTPS load balancing 🏋️‍♀️, simply enable Cloud CDN with a single checkbox.</p><p>Next on our plate 🍽 was to investigate storage🗄 options that are available in GCP</p><p><strong>Cloud Storage🗄</strong> is fully managed, high durability, high availability, scalable⚖️ service. Cloud Storage🗄 can be used for lots of use cases like serving website content, storing data for archival and disaster recovery, or distributing large data objects.</p><p>Cloud Storage🗄 offers 4 different types of storage🗄 classes:</p><ul><li>Regional</li><li>Multi‑regional 🌎</li><li>Nearline 😰</li><li>Coldline 🥶</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*RB0HiL9PjfntXFRT" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*UqTy30QDNoEyuIWx" /></figure><p>Cloud Storage🗄 is comprised of buckets 🗑 which create, and configure, and use to hold storage🗄 objects.</p><p><em>“Big wheels 𐃏 keep on turning”</em></p><p>Buckets 🗑 are:</p><p>Cloud☁️ Storage🗄supports several ways to bring data into Cloud Storage🗄.</p><ul><li>Use gsutil Cloud SDK.</li><li>Drag‑and‑drop in the GCP console (with Google Chrome browser).</li><li>Integrated with many of the GCP products and services:</li><li>Online storage🗄 transfer service (&gt;TB) (HTTPS endpoint)</li><li>Offline transfer appliance (&gt;PB) (rack-able, high capacity storage🗄 server that you lease from Google)</li></ul><p><strong>Cloud Bigtable </strong>is afully managed, scalable⚖️ NoSQL database🛢 service for large analytical and operational workloads. The databases🛢 in Bigtable are sparsely populated tables that can scale to billions of rows and thousands of columns, allowing you to store petabytes of data. Data encryption inflight and at rest are automatic</p><p>GCP fully manages the surface, so you don’t have to configure and tune it. It’s ideal for data that has a single lookup key🔑 and for storing large amounts of data with very low latency.</p><p>Cloud Bigtable is offered through the same open source API as HBase, which is the native database🛢 for the Apache Hadoop 🐘 project.</p><p><strong>Cloud SQL </strong>is a fully managed relational database🛢 service for MySQL, PostgreSQL, and MS SQL Server which provides:</p><p><strong>Cloud Spanner </strong>is a fully managed relational database🛢 with unlimited scale⚖️ (horizontal), strong consistency &amp; up to 99.999% high availability.</p><p>It offers transactional consistency at a global🌎 scale⚖️, schemas, SQL, and automatic synchronous replication for high availability, and it can provide petabytes of capacity.</p><p><strong>Cloud Datastore </strong>is a highly scalable⚖️ (Horizontal) NoSQL database🛢 for your web 🕸 and mobile 📱 applications.</p><ul><li>Designed for application backends</li><li>Supports transactions</li><li>Includes a free daily quota</li></ul><p>Comparing Storage🗄 Options</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*PCpfJDWCd3ZKtJif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*g39h-yP9SOieiCDj" /></figure><p><strong>Cloud Datastore</strong> is the best for semi‑structured application data that is used in App Engine applications.</p><p><strong>Bigtable</strong> is best for analytical data with heavy read/write events like AdTech, Financial 🏦, or IoT📲 data.</p><p><strong>Cloud Storage🗄</strong> is best for structured and unstructured binary or object data, like images🖼, large media files🎞, and backups.</p><p><strong>Cloud SQL</strong> is best for web🕸 frameworks and existing applications, like storing user credentials and customer orders.</p><p><strong>Cloud Spanner</strong> is best for large‑scale⚖️ database🛢 applications that are larger than 2 TB, for example, for financial trading and e‑commerce use cases.</p><p><em>“Everybody, listen to me… And return me my ship</em>⛵️… <em>I’m your captain👩🏾‍✈️,</em> <em>I’m your captain</em> 👩🏾‍✈️”</p><p><strong>Containers, Kubernetes</strong>☸️<strong>, and Kubernetes Engine</strong>☸ ️</p><p>Containers provide independent scalable⚖️ workloads, that you would get in a PaaS environment, and an abstraction layer of the operating system and hardware, like you get in an IaaS environment. Containers virtualize the operating system rather than the hardware. The environment scales⚖️ like PaaS but gives you nearly the same flexibility as Infrastructure as a Service</p><p>Kubernetes☸️ is an open source orchestrator for containers. K8s☸️ make it easy to orchestrate many containers on many hosts, scale⚖️ them, roll out new versions of them, and even roll back to the old version if things go wrong 🙁. K8s☸️ lets you deploy containers on a set of nodes called a <strong>cluster</strong>.</p><p>A cluster is set of master components that control the system as a whole, and a set of nodes that run containers.</p><p>K8s deploys a container or a set of related containers, it does so inside an abstraction called a <strong>pod</strong>.</p><p>A pod is the smallest deployable unit in Kubernetes.</p><p>Kubectl starts a deployment with a container running in a pod. A <strong>deployment</strong> represents a group of replicas of the same pod. It keeps your pods running 🏃‍♂️, even if a node on which some of them run on fails.</p><p>Google Kubernetes Engine (GKE)☸️ is Secured and managed Kubernetes service☸️ with four-way auto scaling⚖️ and multi-cluster support.</p><ul><li>Leverage a high-availability control plane including multi-zonal and regional clusters</li><li>Eliminate operational overhead with auto-repair 🧰, auto-upgrade, and release channels</li><li>Secure🔐 by default, including vulnerability scanning of container images and data encryption</li><li>Integrated Cloud☁️ Monitoring 🎛 with infrastructure, application, and Kubernetes-specific☸️ views</li></ul><p>GKE is like an IaaS offering in that it saves you infrastructure chores and it’s like a PaaS offering in that it was built with the needs of developers 👩‍💻 in mind.</p><p>Sample Syntax building a K8 cluster:</p><pre>$gcloud container clusters create k1</pre><p>In GKE to make the pods in your deployment publicly available, you can connect a load balancer🏋️‍♀️ to it by running the kubectl expose command. K8s☸️ then creates a <strong>service</strong> with a fixed IP address for your pods.</p><p><strong>Imperative commands</strong></p><p>A service is the fundamental way K8s ☸️ represents load balancing 🏋️‍♀️. A K8s☸️ attaches an external load balancer🏋️‍♀️ with a public IP address to your service so that others outside the cluster can access it.</p><p>In GKE, this kind of load balancer🏋️‍♀️ is created as a network load balancer🏋️‍♀️. This is one of the managed load balancing 🏋️‍♀️ services that Compute Engine makes available to virtual machines. GKE makes it easy to use it with containers.</p><p><strong>Service groups</strong> a set of pods together and provides a stable end point for them</p><pre>$kubectl get services shows you your service&#39;s public IP address</pre><pre>$kubectl scale - scales⚖️ a deployment $kubectl expose - creates a service $kubectl get pods watch the pods come online</pre><p><strong>Introduction to Hybrid and Multi-Cloud Computing (Anthos)</strong></p><p>The real strength of K8s☸️ comes when you work in a <strong>declarative</strong> of way. Instead of issuing commands, you provide a configuration file (YAML) that tells K8s☸️ what you want your desired state to look like, and Kubernetes figures out how to do it.</p><p>When you choose a rolling update for a deployment and then give it a new version of the software it manages, Kubernetes will create pods of the new version one by one, waiting for each new version pod to become available before destroying one of the old version pods. Rolling updates are a quick way to push out a new version of your application while still sparing your users from experiencing downtime.</p><p><em>“Going where the wind</em>🌬 <em>goes… Blooming like a red rose</em>🌹 <em>“</em></p><p>Modern hybrid or multi‑cloud☁️ architectures allows you to keep parts of your system’s infrastructure on‑premises, while moving other parts to the cloud☁️, creating an environment that is uniquely suited to many company’s needs.</p><p>Modern distributed systems allow a more agile approach to managing your compute resources</p><ul><li>Move only some of you compute workloads to the cloud☁️</li><li>Move at your own pace</li><li>Take advantage of cloud’s☁️ scalability⚖️ and lower costs 💰</li><li>Add specialized services to compute resources stack</li></ul><p><strong>Anthos</strong> is Google’s modern solution for hybrid and multi-cloud☁️ systems and services management.</p><p>The Anthos framework rests on K8s☸️ and GKE deployed on‑prem, which provides the foundation for an architecture that is fully integrated with centralized management through a central control plane that supports policy‑based application life cycle🔄 delivery across hybrid and multi‑cloud☁️ environments.</p><p>Anthos also provides a rich set of tools🛠 for monitoring 🎛 and maintaining the consistency of your applications across all of your network, whether on‑premises, in the cloud☁️️ K8s☸️, or in multiple clouds☁️☁️.</p><p>Anthos Configuration Management provides a single source of truth for your cluster’s configuration. That source of truth is kept in the policy repository, which is actually a Git repository.</p><p><em>“And I discovered</em>🕵️‍♀️ <em>that my</em> <em>castles</em>🏰 <em>stand…Upon pillars of</em> <em>salt</em>🧂 <em>and pillars of sand</em> 🏖</p><p><strong>App Engine</strong> (PaaS) builds a highly scalable⚖️ application on a fully managed serverless platform.</p><p>App Engine makes deployment, maintenance, autoscaling⚖️ workloads easy allowing developers 👨‍💻to focus on innovation</p><p>GCP provides an App Engine SDK in several languages so developers 👩‍💻 can test applications locally before uploaded to the real App Engine service.</p><p>App Engine’s <strong>standard environment</strong> provides runtimes for specific versions of Java☕️, Python🐍, PHP, and Go. The standard environment also enforces restrictions🚫 on your code by making it run in a so‑called sandbox. That’s a software construct that’s independent of the hardware, operating system, or physical location of the server it runs🏃‍♂️ on.</p><p>If these constraints don’t work for a given applications, that would be a reason to choose the <strong>flexible environment.</strong></p><p>App Engine flexible environment:</p><ul><li>Builds and deploys containerized apps with a click</li><li>No sandbox constraints</li><li>Can access App Engine resources</li></ul><p>App Engineflexible environment apps use standard runtimes, can access App Engine services such as</p><ul><li>Datastore</li><li>Meme cache</li><li>Task Queues</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/0*fXjCwppza6HWDtx5" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/0*tQnhdxIXJVMJcotN" /></figure><p><strong>Cloud Endpoints</strong> — Develop, deploy, and manage APIs on any Google Cloud☁️ back end.</p><p>Cloud Endpoints helps you create and maintain APIs</p><ul><li>Distributed API management through an API console</li><li>Expose your API using a RESTful interface</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*-UsIHr1C9hEq74hs" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*hI7_pETM5jDwJYHt" /></figure><p><strong>Developing in the Cloud☁️</strong></p><p><strong>Apigee Edge</strong> is also a platform for developing and managing API proxies.</p><p>Apigee Edge focus on business problems like rate limiting, quotas, and analytics a</p><p><strong>Deployment: Infrastructure as code</strong></p><ul><li>A platform for making APIs available to your customers and partners</li><li>Contains analytics, monetization, and a developer portal</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*L61Jq0wyKBA0ZvQk" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*Oyoql5I1JfUtIfch" /></figure><p><strong>Cloud Source Repositories</strong> — Fully featured Git repositories hosted on GCP</p><p><em>“Follow my lead, oh, how I need</em><strong>Monitoring 🎛: Proactive instrumentation</strong> <em>… Someone to watch over me”</em></p><p><strong>Cloud Functions</strong> — Scalable⚖️ pay-as-you-go functions as a service (FaaS) to run your code with zero server management.</p><ul><li>No servers to provision, manage, or upgrade</li><li>Automatically scale⚖️ based on the load</li><li>Integrated monitoring🎛, logging, and debugging capability</li><li>Built-in security🔒 at role and per function level based on the principle of least privilege</li><li>Key🔑 networking capabilities for hybrid and multi-cloud☁️☁️ scenarios</li><li>Deployment: Infrastructure as code</li></ul><p><strong>Deployment Manager</strong> — creates and manages cloud☁️ resources with simple templates</p><ul><li>Provides repeatable deployments</li><li>Create a .yaml template describing your environment and use Deployment Manager to create resources</li></ul><p><em>“Whoa oh oh oh oh… Something big I feel it happening”</em></p><p><strong>Stackdriver </strong>is GCP’s tool for monitoring 🎛, logging and diagnostics. Stackdriver provides access to many different kinds of signals from your infrastructure platforms, virtual machines, containers, middleware and application tier; logs, metrics and traces. It provides insight into your application’s health👨🏽‍⚕️, performance and availability. So, if issues occur, you can fix them faster.</p><p>Here are the core components of Stackdriver;</p><p>Stackdriver Monitoring 🎛 checks the end points of web🕸 applications and other Internet‑accessible services running on your cloud☁️ environment.</p><p>Stackdriver Logging view logs from your applications and filter and search on them.</p><p>Stackdriver error reporting tracks and groups the errors in your cloud☁️ applications and it notifies you when new errors are detected.</p><p>Stackdriver Trace sample the latency of App Engine applications and report per URL statistics.</p><p>Stackdriver Debugger of connects your application’s production data to your source code so you can inspect the state of your application at any code location in production</p><p><strong>GCP Big Data Platform — </strong>services are fully managed and scalable⚖️ and Serverless</p><p><strong>Cloud Dataproc</strong> is a fast, easy, managed way to run🏃‍♂️ Hadoop 🐘 MapReduce 🗺, Spark 🔥, Pig 🐷 and Hive 🐝 Service</p><ul><li>Create clusters in 90 seconds or less on average</li><li>Scale⚖️ cluster up and down even when jobs are running 🏃‍♂️</li><li>Easily migrate on-premises Hadoop 🐘 jobs to the cloud☁️</li><li>Use Spark🔥 Machine Learning Libraries📚 (MLib) to run classification algorithms</li></ul><p><strong>Cloud Dataflow</strong> 🚰 — Stream⛲️ and Batch processing; unified and simplified pipelines</p><ul><li>Processes data using Compute Engine instances.</li><li>Managed expressive data Pipelines</li><li>Write code once and get batch and streaming⛲️.</li><li>ETL pipelines to move, filter, enrich, shape data</li><li>Data analysis: batch computation or continuous computation using streaming</li><li>Orchestration: create pipelines that coordinate services, including external services</li><li>Integrates with GCP services like Cloud Storage🗄, Cloud Pub/Sub, BigQuery and BigTable</li></ul><p><em>“Domo arigato misuta Robotto” </em><strong>🤖</strong></p><p><strong>BigQuery</strong> 🔎 is a fully‑managed, petabyte scale⚖️, low‑cost analytics data warehouse</p><p><strong>Cloud Pub/Sub</strong> — Scalable⚖️, flexible🧘‍♀️ and reliable enterprise messaging 📨</p><p><strong>Pub</strong> in Pub/Sub is short for publishers</p><p><strong>Sub</strong> is short for subscribers.</p><ul><li>Supports many-to-many asynchronous messaging📨</li><li>Application components make push/pull subscriptions to topics</li><li>Includes support for offline consumers</li><li>Simple, reliable, scalable⚖️ foundation for stream analytics</li><li>Building block🧱 for data ingestion in Dataflow, IoT📲, Marketing Analytics</li><li>Foundation for Dataflow streaming⛲️</li><li>Push notifications for cloud-based☁️ applications</li><li>Connect applications across GCP (push/pull between Compute Engine and App Engine</li></ul><p><strong>Cloud Datalab</strong> 🧪 is a powerful interactive tool created to explore, analyze, transform and visualize data and build machine learning models on GCP.</p><ul><li>Interactive tool for large-scale⚖️ data exploration, transformation, analysis, and visualization</li><li>Integrated, open source</li></ul><p>Cloud☁️ machine‑learning platform🤖 provides modern machine‑learning services🤖 with pre‑trained models and a platform to generate your own tailored models.</p><p><strong>TensorFlow</strong> 🧮 is an open‑source software library that’s exceptionally well suited for machine‑learning applications🤖 like neural networks🧠.</p><p>TensorFlow 🧮 can also take advantage of Tensor🧮 processing units (TPU), which are hardware devices designed to accelerate machine‑learning 🤖 workloads with TensorFlow 🧮. GCP makes them available in the cloud☁️ with Compute Engine virtual machines.</p><p>Generally, applications that use machine‑learning platform🤖 fall into two categories, depending on whether the data worked on is <strong>structured</strong> or <strong>unstructured</strong>.</p><p>For structured data, ML 🤖can be used for various kinds of classification and regression tasks, like customer churn analysis, product diagnostics, and forecasting. In addition, Detection of anomalies like fraud detection, sensor diagnostics, or log metrics.</p><p>For unstructured data, ML 🤖can be used for image analytics, such as identifying damaged shipment, identifying styles, and flagging🚩 content. In addition, ML🤖 can be used for text analytics like a call 📞 center log analysis, language identification, topic classifications, and sentiment analysis.</p><p><strong>Cloud Vision API</strong> 👓 derives insights from your images in the cloud☁️ or at the edge with AutoML Vision👓 or use pre-trained Vision API👓 models to detect emotion, understand text, and more.</p><ul><li>Analyze images with a simple REST API</li><li>Logo detection, label detection</li><li>Gain insights from images</li><li>Detect inappropriate content</li><li>Analyze sentiment</li><li>Extract text</li></ul><p><strong>Cloud Natural Language API</strong> 🗣extracts information about people, places, events, (and more) mentioned in text documents, news articles, or blog posts</p><ul><li>Uses machine learning🤖 models to reveal structure and meaning of text</li><li>Extract information about items mentioned in text documents, news articles, and blof posts</li></ul><p><strong>Cloud Speech API</strong> 💬 enables developers 👩‍💻 to convert audio to text.</p><ul><li>Transcribe your content in real time or from stored files</li><li>Deliver a better user experience in products through voice commands</li><li>Gain insights from customer interactions to improve your service</li></ul><p><strong>Cloud Translation API🈴</strong> provides a simple programmatic interface for translating an arbitrary string into a supported language.</p><ul><li>Translate arbitrary strings between thousands of language pairs</li><li>Programmatically detect a document’s language</li><li>Support for dozens of languages</li></ul><p><strong>Cloud Video Intelligence API📹 </strong>enable powerful content discovery and engaging video experiences.</p><ul><li>Annotate the contents of videos</li><li>Detect scene changes</li><li>Flag inappropriate content</li><li>Support for a variety of video formats</li></ul><p><em>“Fly away, high away, bye bye…” </em>🦋</p><p>We will continue next week with Part II of this series….</p><p>Thanks -</p><p>-MCS</p><p><em>Originally published at </em><a href="https://sqlsquirrels.com/2020/10/07/week-of-october-9th/"><em>https://sqlsquirrels.com</em></a><em> on October 9, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22d44b39415a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week of September 25th]]></title>
            <link>https://ms4446.medium.com/week-of-september-25th-25dd07fa0091?source=rss-bc079425cf0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/25dd07fa0091</guid>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[sql-server-2019]]></category>
            <category><![CDATA[azure-sql-database]]></category>
            <category><![CDATA[sql-server]]></category>
            <category><![CDATA[data-lake]]></category>
            <dc:creator><![CDATA[Mark Shay]]></dc:creator>
            <pubDate>Sat, 26 Sep 2020 03:23:00 GMT</pubDate>
            <atom:updated>2020-09-26T18:29:49.525Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nWeXcDWoD2Djx7MKpdDI_Q.jpeg" /></figure><p><em>“Dynamite with a laser beam…Guaranteed to blow your mind</em></p><p><em>”</em>Happy National Lobster 🦞 Day!</p><p><em>“And here I go again on my own… Goin’ down the only road I’ve ever known”</em></p><p>This week we continued where we last left off the <a href="https://sqlsquirrels.com/2020/09/18/week-of-september-18th/">previous week</a> as we continued exploring the depths of SQL Server 2019. Last week, we just merely scratched 💅 the surface of SQL Server 2019 as we dove🤿 into <a href="https://docs.microsoft.com/en-us/sql/relational-databases/performance/intelligent-query-processing?view=sql-server-ver15">IQP</a> and the improvements made to <a href="https://www.mssqltips.com/sqlservertip/6230/memoryoptimized-tempdb-metadata-in-sql-server-2019/">TempDB</a>. This week we tackled Microsoft’s most ambitious SQL Server offering to date in SQL Server 2019 Big Data Clusters (BDC). When I first thought of BDCs the first thing that came to mind 🤔 was a Twix Bar 🍫. Yes, we all know <a href="https://www.youtube.com/watch?v=7QM-VqkxIEQ">Twix</a> is the is the “ <strong>only candy with the cookie crunch</strong> “ but what makes the Twix bar so delicious 😋 is the perfect melding of smooth Chocolate, Chewy Carmel and of course crisp cookie🍪! Well, that’s exactly what Big Data Cluster is like… You’re probably thinking Huh?</p><p>Big Data Clusters (BDC) is MSFT’s groundbreaking new Big Data/Data Lake architecture that unifies virtual business data and operational data stored in relational databases with IoT for true real-time BI and embedded Artificial Intelligence (AI) and Machine Learning (ML). BDC combines the power⚡️of SQL Server, Spark 🔥, and the Hadoop Distributed File System (HDFS) 🐘 into a <a href="https://deloitte.wsj.com/cio/2015/04/13/the-unified-data-platform-a-new-model-for-managing-data/">unified data platform</a>. But that’s not all! Since BDC runs natively on Linux🐧 it’s able to embrace modern architectures for deploying applications like Linux-based Docker🐧- 🐳 containers on Kubernetes ☸︎.</p><p>By Leveraging K8s ☸︎ for orchestration, deployments of BDCs are predictable, fast 🏃🏻, elastic🧘‍♀️ and scalable ⚖️. Seeing that Big data clusters can run any Kubernetes ☸︎ environment whether it be on-premise 🏠 (i.e. <a href="https://www.openshift.com/blog/announcing-microsoft-sql-server-2019-big-data-clusters-on-red-hat-openshift">Red Hat OpenShift</a>) or in the cloud☁️ (i.e. <a href="https://aws.amazon.com/eks/">Amazon EKS</a>); BDC makes a perfect fit to be hosted in <a href="https://docs.microsoft.com/en-us/azure/aks/intro-kubernetes">Azure Kubernetes Service (AKS)</a>.</p><p>Another great feature that BDC makes use of is data virtualization, also known as “ <a href="https://docs.microsoft.com/en-us/sql/relational-databases/polybase/polybase-guide?view=sql-server-ver15">Polybase</a> “. Polybase made its original debut with SQL Server 2016. It had seemed like Microsoft had gone to sleep😴 on it but now with SQL Server 2019 BDC, Microsoft has broken out big time! BDC takes advantage of Data Virtualization as it’s “data hub”. So, you don’t need to spend time 🕰 and expense💰 of traditional extract, transform, and load (ETL) 🚜 and Data Pipelines. In addition, it lets organizations leverage existing SQL Server expertise and extract value from third-party data sources such as NoSQL, Oracle, Teradata and HDFS🐘.</p><p>Lastly, BDC takes advantage of Azure Data Studio (ADS) for both deployments and administration of BDC. For those who are not familiar with ADS, it’s a really cool 😎 tool 🛠 that you can benefit from by acquainting yourself with. Of course, SSMS isn’t going anywhere but with ADS you get a cross-platform database lightweight tool 🛠 that uses Jupyter notebooks📒 and Python🐍 scripting making deployments and administration of BDCs a breeze. OK, I am ready to rock and roll 🎶!</p><p><em>“I love❤️ rock n’ roll</em>🎸 <em>… So put another dime in the jukebox </em>📻<em>, baby”</em></p><p>Before we can jump right into the deep end of the Pool 🏊‍♂️ with Big Data Cluster, we felt a need for a little primer on Virtualization, Kubernetes ☸︎, and Containers. Fortunately, we knew just who to deliver the perfect overview, no other then one of the prominent members of the Mount Rushmore of SQL Server, <a href="https://buckwoody.wordpress.com/author/buckwoody/">Buck Woody</a> who through his guest appearance with Long time product team member and Technology Evangelist and <a href="https://www.linkedin.com/in/sanjaysoni9/">Sanjay Soni</a> in the <a href="https://www.youtube.com/watch?v=q7mxWcYqBMM">Introduction to Big Data Cluster on SQL Server 2019 | Virtualization, Kubernetes ☸︎, and Containers</a> YouTube Video. Buck who has a very unique style and an amazing skill of taking complex technologies and making them simple. His supermarket 🛒 analogy to explain Big Data, Hadoop and Spark 🔥, virtualization, containers, and Kubernetes ☸︎ is pure brilliance! Now, armed 🛡🗡 with Buck’s knowledge bombs 💣 we were ready to light 🔥 this candle 🕯!</p><p><em>“Let’s get it started (ha), let’s get it started in here”</em></p><p>Taking us through BDC architecture and deployments was newly minted Microsoft Data Platform MVP <a href="https://mohammaddarab.com/about/">Mohammad Darab</a> who put together a series of super exciting <a href="https://mohammaddarab.com/bdc/">videos as well as excellent detailed blog posts on BDC</a> and Long Time SQL Server veteran and Microsoft Data Platform MVP <a href="https://mvp.microsoft.com/en-us/PublicProfile/5003056?fullName=Ben%20Weissman">Ben Weissman</a> through his awesome <a href="https://app.pluralsight.com/library/courses/building-microsoft-sql-server-big-data-cluster/table-of-contents">Building Your First Microsoft SQL Server Big Data Cluster</a> Pluralsight course. Ben’s speculator course covers not only architecture and deployment but how to get data in and out of the, make the most of out of them and how to monitor, maintain, and troubleshoot BDC.</p><p><em>“If you have built castles </em>🏰 <em>in the air, your work need not be lost; that is where they should be. Now put the foundations </em>🧱 <em>under them.” — Henry David Thoreau</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*jcP6n7HQN-oIIfTY" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*wmIPfl_uTUqTY7cN" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*8tCfE9uSMdKnqd61" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*IKs9BRZmPSuygia4" /></figure><p>A big data cluster consists of several major components:</p><p>Data not residing in your master instance will be exposed through the concept of <strong>External tables</strong>. Examples are CSV files or an HDFS store or Data on another RDBMS. External tables can be queried the same as local tables on the SQL Server with several cavorts:</p><ul><li>Unable modify the table structure or content</li><li>No Indexes can be applied (only statistics are kept. SQL Server to houses that meta data.</li><li>Data source might require you to provide credentials.</li><li>Data source may also need a format definition like text qualifiers or separators for CSV files</li></ul><p>The <strong>controller </strong>provides management and security for the cluster and acts as the control plane for the cluster. It takes care of all the interactions with K8s ☸︎, the SQL Server instances that are part of the cluster and other components like HDFS🐘, Spark🔥, Kibana, Grafana, and Elastic Search</p><p>The controller manages:</p><ul><li>Cluster lifecycle, bootstrap, delete update, etc.</li><li>Master SQL Server Instance</li><li>Compute, data, and Storage Pools 🏊‍♂️</li><li>Cluster Security</li></ul><p>The <strong>Compute Pool 🏊‍♂️</strong> is a set a stateless multiple SQL Server 2019 instances that work together. The Compute Pool 🏊‍♂️ leverage Data Virtualization or Polybase to scale-out⚖️ queries across partitions. The Compute Pool 🏊‍♂️ is automatically provisioned as part of BDC. Management and Patching of Computer Pools 🏊‍♂️ ais easy because they run on Docker 🐳 containers running in K8☸️ pods.</p><p><em>Please note: Queries on BDC can also function without the Compute Pool 🏊‍♂️.</em></p><p>Compute Pool 🏊‍♂️ is responsible for:</p><ul><li>Joining of two or more directories in HDFS🐘 with 100+ files</li><li>Joining of two or more data sources</li><li>Joining multiple tables with different partitioning or distribution schemes</li><li>Data stored in Blob Storage</li></ul><p>The <strong>Storage Pool 🏊‍♂️</strong> consists of pods comprised of SQL Servers on Linux🐧 and Spark🔥 on HDFS 🐘 (deployed automatically). All the Nodes of the BDC are members of an HDFS🐘 Cluster. The Storage Pool 🏊‍♂️ stores file‑based 🗂 data like a CSV and queried directly through external tables and T‑SQL, or you can use Python🐍 and Spark🔥. If you already have an HDFS🐘 on either Azure Data Lake (ADLS) store or AWS S3 buckets🗑 you can easily mount your existing storage into your BDC without the need to shift all your data around.</p><p>The Storage Pool is responsible for:</p><ul><li>Data ingestion through Spark🔥</li><li>Data Storage in HDFS🐘 (Parquet format). HDFS🐘 data is spread across all storage nodes in the BDC for persistency</li><li>Data access through HDFS🐘 and SQL Server Endpoints</li></ul><p>The <strong>Data Pool 🏊‍♂️</strong> is used for data persistence and caching. Under the covers the Data Pool 🏊‍♂️ is a set of SQL Servers (Defined at Deployment) that are using Columnstore Index and Sharding. In other words, SQL Server will create physical tables with same structure and evenly distribute the data across the total number of servers. The Queries will be also be distributed across server but the user it will be transparent as all the magic🧙 is happening behind the scenes. The data stored in the data Pool 🏊‍♂️ does not support transactions as its sole purpose is for caching. It is used to ingest data from SQL Queries or Spark🔥 Jobs. BDC data marts are persisted in the data Pool 🏊‍♂️.</p><p>Data Pool 🏊‍♂️ is used for:</p><ul><li>Complex Query Joins</li><li>Machine Learning</li><li>Reporting</li></ul><p>The <strong>application Pool</strong> 🏊‍♂️ is used to run jobs like SSIS, store and execute ML models, and all kinds of other applications which are generally exposed through a web service.</p><p><em>“This is 10% luck</em>🍀 <em>… 20% skill… 15% concentrated power</em>🔌 <em>of will… 5% pleasure</em>😆 <em>… 50% pain</em>🤕 <em>… And a 100% reason to remember the name”</em></p><p>After both great overviews of the BDC architecture by Mo and Ben, we were eager to build this spaceship 🚀. First, we need to download the required tools 🛠🧰 so we can happily😊 have our base machine where we will begin deploying our first BDC. I have chosen the Mac 💻 just to spice 🥵 things up as my base machine.</p><p><strong>Optional Tools:</strong></p><h3>Below are the Required Tools:</h3><ul><li>Azure Data Studio (ADS)</li><li>ADS Extension for Data Virtualization</li><li>Python 🐍</li><li>Kubectl ☸️</li><li>Azure-CLI<strong> (</strong>and only required if using AKS)</li><li>Text Editor 🗒</li><li>PowerShell Extension for ADS</li><li>Zip utility Software 🗜</li><li>SQL Server Utilities</li><li>SSH</li></ul><p><strong>Base Machine</strong></p><p>Now that we got all our prerequisites downloaded, we next needed to determine where we should our deploy BDC. The most natural choice seemed to be with AKS.</p><p>To help walk🚶‍♂️us through the installation of our base machine and the deployment of BDS using ADS on AKS, we once again turned to Mo Darab who put together an excellent and easy to follow along series of videos <a href="https://www.youtube.com/playlist?list=PLlNI6Bft7vpBjKwYrX49IL6yg2u6xh2yY">Deploying Big Data Clusters</a> on his YouTube channel.</p><p>In his video “ <a href="https://www.youtube.com/watch?v=FDHZ3itTfaI&amp;list=PLlNI6Bft7vpBjKwYrX49IL6yg2u6xh2yY&amp;index=1">How to set Up a Base Machine</a> “, Mo used a Windows machine opposed to us who went with the Mac 💻 . But for all intents and purposes the steps are pretty much the same. The only difference is the package📦 manager that we need to use. Windows the recommended package manager is Chocolatey 🍫 while on the Mac 💻 its Brew 🍺.</p><p>Here were the basic steps:</p><pre>§ brew install kubernetes-cli</pre><p><em>“Countdown commencing, fire one”</em></p><pre>§ brew update &amp;&amp; brew install azure-cli</pre><ul><li>Install Python</li><li>Install azdata</li><li>Install <a href="https://docs.microsoft.com/en-us/sql/azure-data-studio/extensions/add-extensions?view=sql-server-ver15"><strong>ADS Extension for Data Virtualization</strong></a></li><li>Install Pandas (manage package option in ADS/ Add New Pandas/ Click Install)</li></ul><p><em>“But there is no joy in Mudville-mighty </em><a href="https://poets.org/poem/casey-bat"><em>Case</em></a><em>y has struck out.”</em></p><p>Now, we had our base machine and it was time ⏱ to deploy. To guide us through the deployment process, we once again went to Mo and followed along in his <a href="https://www.youtube.com/watch?v=-L33S4EhSO0">How to Deploy Big Data Cluster on AKS using Azure Data Studio</a>. Mo walked us through the wizard 🧙‍♂️ in ADS which basically creates a Notebook 📒 that builds our BDC. We created our deployment Jupyter notebook 📒 and then clicked Run 🏃‍♂️ and let it rip☄️. Everything seemed to be humming 🎶 along except 2 hours later our Jupyter notebook was still running 🏃‍♂️.</p><p>Obviously, something wasn’t right? 🤔 Unfortunately, we didn’t’ have much visibility on what’s happening with the install through the notebook but hey that’s ok we have a terminal prompt in ADS. So we can just run some K8☸️ commands to see what’s happening under the covers. Ok, so after running a few K8 commands we noticed “ <strong>ImagePullBackOff</strong> “ error with our SQL Server Images. After a little bit research, we determined someone forgot 🙄to update the Microsoft Repo with the latest CU Image.</p><p>So we filled a bug 🐞 on <a href="https://github.com/MicrosoftDocs/sql-docs/issues/5480">GitHub</a> and we ran the BDC wizard 🧙‍♂️ changed the Docker🐳 settings pointing to the latest package available on the Docker🐳 Registry and we were back in business until… And then Bam!🥊🥊</p><pre>Operation failed with status: &#39;Bad Request&#39;. Details: Provisioning of resource(s) for container service mssql-20200923030840 in resource group mssql-20200923030840 failed. Message: Operation could not be completed as it results in exceeding approved Total Regional Cores quota.</pre><p>What shall we do? What does our <a href="https://sqlsquirrels.com/2020/09/04/week-of-september-4th/">Azure Fundamentals</a> training tells us to do? That’s right we go to Azure Portal and submit a support ticket and beg the good people at Microsoft to increase our Cores Quota. So, we did that and almost instantaneously MSFT quick obliged. 😊</p><p><strong>Data Virtualization (SQL Server)</strong></p><p>Great, we are back in business (Well sort of).. After several more attempts we ran into more Quota issues with all three types (SKU, Static, and Basic) of <a href="https://docs.microsoft.com/en-us/azure/virtual-network/public-ip-addresses">Public IP Addresses </a>. So, 3 more support tickets later and there was finally joy 😊 to the world🌎.</p><p>Next, we turned back to Ben who provided some great demos in his Pluralsight course on how to set up Data Virtualization for both a SQL Server and HDFS 🐘 files as a data sources</p><ol><li>Right‑mouse click -&gt;Virtualize Data</li><li>Data virtualization wizard 🧙‍♂️ will launch.</li><li>Next step chooses data source</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/0*oHVBGLq3dHUuPZzs" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/0*h4slcGP19ueoKhKB" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/0*SXMMhJ0-EUZEgIsv" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/0*XZ-0wVDItHUedq-C" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/447/0*o2RsEIzDod2bR_KQ" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/447/0*DUZNX4hZ59CZ-kND" /></figure><ul><li>Next, the wizard🧙‍♂️ will connect to the source and a list of the tables and views</li><li>Choose the script option</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/0*MN84RER3EtItNO0h" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/0*jYZJmtxychWiTqVF" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/0*POTL_swvGVF-O6fk" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/0*4bCWv3v8UhzCw8Ux" /></figure><p>The external table inherits a schema from its source, and transformation would happen in your queries.</p><p>You can choose between just having them created or to generate a script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/0*S1K8V0byj8Il9M3O" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/0*GuDD4KNhAAmJew_1" /></figure><p>CREATE EXTERNAL TABLE [virt].[PersonPhone]</p><p>(</p><p>[BusinessEntityID] INT NOT NULL,</p><p>[PhoneNumber] NVARCHAR(25) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,</p><p>[PhoneNumberTypeID] INT NOT NULL,</p><p>[ModifiedDate] SMALLDATETIME NOT NULL</p><p>)</p><p><strong>WITH (LOCATION = N’[AdventureWorks2015].[Person].[PersonPhone]’, DATA_SOURCE = [SQLServer]);</strong></p><ol><li>Right‑mouse‑click your HDFS 🐘 and create a new directory</li><li>Upload the flight delay dataset to it.</li><li>Expand the directory 📁 to see files 🗂</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/279/0*QhBzNOvIdvF9ZxUQ" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/279/0*axrpso-G33whHVkr" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/0*1GFjzchXux-haVpf" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/0*0cZA0CJOqrjdkO-V" /></figure><ul><li>The wizard 🧙‍♂️will ask you for the database in which you want to create the external table, a name for the data source;</li><li>Next step preview of our data,</li><li>next step, the wizard 🧙‍♂️ recommends a column type</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*z6-lp3D6mGdc3SEZ" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*oIBYydHg2X7EQdzY" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/477/0*Y1ZF1i6nyaTb3omP" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/477/0*mOgT-1q3ZYn4sPXH" /></figure><p>CREATE EXTERNAL DATA SOURCE [SqlStoragePool]</p><p>WITH (LOCATION = N’sqlhdfs://controller-svc/default’);</p><p>CREATE EXTERNAL FILE FORMAT [CSV]</p><p>WITH (FORMAT_TYPE = DELIMITEDTEXT, FORMAT_OPTIONS (FIELD_TERMINATOR = N’,’, STRING_DELIMITER = N’”’, FIRST_ROW = 2));</p><p>CREATE EXTERNAL TABLE [csv].[airlines]</p><p>(</p><p>[IATA_CODE] nvarchar(50) NOT NULL,</p><p>[AIRLINE] nvarchar(50) NOT NULL</p><p><strong>Monitoring 🎛 Big Data Clusters through Azure Data Studio</strong></p><p>)</p><p>WITH (LOCATION = N’/FlightDelays/airlines.csv’, DATA_SOURCE = [SqlStoragePool], FILE_FORMAT = [CSV]);</p><p><strong>Troubleshooting Big Data Clusters through Azure Data Studio</strong></p><p>BDC comes with a pre-deployed Grafana container for SQL Server and system metrics. This map server collects all those metrics from every single node, container, and pod and provides them individual dashboards 📊.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*HemcuXWNChd2AhkU" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*SLtE4nqgULEE2BoO" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/0*ilNcWjlUHKfBIsFq" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/0*Wih_xXAzgo3oPKqW" /></figure><p>The Kibana dashboard 📊 is part of the Elastic Stack and provides a looking glass🔎 into all of your log files in BDC.</p><p><em>“And I feel like it’s all been done Somebody’s tryin’ to make me stay You know I’ve got to be movin’ on”✈️</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/0*aGt9mVZ0VnskIyKv" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/0*82Mm181Nz7m2r4ml" /></figure><p>In ADS, on the main dashboard 📊 there is a button Troubleshoot. This provides a library📚 of notebooks 📒 that you can use to troubleshoot and analyze the cluster. Notebooks 📒 are categorized and provide all kinds of different aspects on monitoring 🎛 of a diagnosing to help you repair 🛠 an issue within your cluster.</p><p>In addition, the <strong>azdata </strong>utility can be monitoring 🎛, running queries and notebooks 📒, and retrieve a cluster’s endpoints. the namespace and username as well.</p><p>We really enjoyed spending time learning SQL Server 2019 Big Data Cluster. 😊</p><p>Below are some of the destinations I am considering for my travels for next week:</p><p>Thanks -</p><p>-MCS</p><p><em>Originally published at </em><a href="https://sqlsquirrels.com/2020/09/25/week-of-september-25th/"><em>https://sqlsquirrels.com</em></a><em> on September 25, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25dd07fa0091" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week of September 18th]]></title>
            <link>https://ms4446.medium.com/week-of-september-18th-e57454e2ca16?source=rss-bc079425cf0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e57454e2ca16</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[microsoft-sqlserver]]></category>
            <category><![CDATA[sql-server-2019]]></category>
            <category><![CDATA[sql-server]]></category>
            <dc:creator><![CDATA[Mark Shay]]></dc:creator>
            <pubDate>Fri, 18 Sep 2020 15:59:00 GMT</pubDate>
            <atom:updated>2020-09-20T16:10:33.724Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h_BfqdYf2O3LemRQu_O_PA.jpeg" /></figure><p><em>“Catch the mist, catch the myth…Catch the mystery, catch the drift”</em></p><p>L’shanah tovah!</p><p>So after basking in last week’s <a href="https://sqlsquirrels.com/2020/09/12/week-of-september-12th/">accomplishment</a> of passing the <a href="https://docs.microsoft.com/en-us/learn/certifications/exams/az-900">AZ-900: Microsoft Azure Fundamentals</a> certification exam this week we decided that we need come down from the clouds. Now, grounded we knew exactly where we needed to go. For those who know me well, I have spent a large part of my career supporting and Engineering solutions for Microsoft SQL Server. Microsoft released SQL Server 2019 back in November of the same year.</p><p>For the most part, we really haven’t spent too much on our journey going deep into SQL Server. So it has been long overdue that we give SQL Server 2019 a looksy and besides we needed to put the <strong>S-Q-L</strong> back in <a href="https://sqlsquirrels.com/">SQL Squirrels</a></p><p>SQL Server 2019 had been Microsoft’s most ambitious release of the product that has been around now for just a little over 25 years.</p><p>The great folks at MSFT built on previous innovations in the product to further enhance the development of languages, data types, on-premises or cloud environments, and operating systems. Just a few of the big headline features of SQL Server 2019 are:</p><ul><li>Intelligent Query Processing (IQP)</li><li>Memory-optimized TempDB</li><li>Accelerated Database Recovery (ADR)</li><li>Data Virtualization with PolyBase</li><li>Big Data Clusters</li></ul><p>So let’s un-peel the onion and begin diving into SQL Server 2019. So, where to begin? Full disclosure, I am kind of a bit of SQL Server 2019 internals geek. So we started with a tour of some of the offerings in <a href="https://docs.microsoft.com/en-us/sql/relational-databases/performance/intelligent-query-processing?view=sql-server-ver15">Intelligent Query Processing</a></p><p>The IQP feature in SQL Server 2019 provides a broad impact that improves the performance of existing workloads with minimal implementation effort to adopt. In theory, you just simply change the database compatibility level of your existing user databases when you upgrade to 2019 and your query just works faster with no code changes! Of course this sounds almost too good to be true?</p><p><em>“Here we are now, entertain us”</em></p><p>To take us through an unbiased lens at IQP is no other than the man, the myth, the legend, Microsoft Certified Master <a href="https://www.brentozar.com/">Brent Ozar</a>. Brent produced two amazing presentations for the SQL Server community, <a href="https://www.youtube.com/watch?v=gTZBNym0ahk">What’s New in SQL Server 2019</a> and <a href="https://www.quest.com/video/the-new-robots-in-sql-server-2017-2019-and-azure8143292/">The New Robots in SQL Server 2017, 2019 and Azure</a>.</p><p>Brent with his always quirky, galvanic, and sometimes cynical style gives us the skinny on the Good, the Bad, and the Ugly on IQP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*sJCCRJKUPIabnfdZ" /></figure><p>“<em>I never played by the rules, I never really cared…My nasty reputation takes me everywhere</em>“</p><p>First we began, looking at <strong>Table Variables</strong>. For those who have been around the SQL Server block, table variables have been around since the good o’l days of SQL 2000 as a performance improvement alternative to using temporary tables.</p><p>However, SQL Server doesn’t maintain statistics on table variables which as you probably know the query optimizer uses to determine the best execution plan. Basically, the SQL Server query optimizer just assumes that a table variable(s) only has one row whether it does or doesn’t. So performance wasn’t so great to say the least. Thus, Table Variables don’t have the best reputation.</p><p>Well, SQL Server 2019 to rescue! (Sort of..) In SQL Server 2019, by simply switching the Database “compat mode” to <strong>SQL Server 2019 (15.x) SQL Server</strong>, SQL Server will now use the actual number of rows in the table variable to create the plan. This is just fantastic! However, as Brent diligently points out this nifty little enhancement isn’t all Rainbows and Unicorns. Although it does solve the pesky estimated row problem with the query optimizer has with table variables, but now introduces the enigma that is <a href="https://www.red-gate.com/simple-talk/sql/t-sql-programming/parameter-sniffing/">parameter sniffing</a>.</p><p>Parameter sniffing has plagued SQL Server since the beginning of time and is one of the more common performance</p><p>issues we SQL people encounter. In simplest terms, SQL Server tries to optimize the execution plan by leveraging a previously ran plan used. The problem lies when there is different results set due to the parameters provided. Overall, this feature is definite improvement but not the silver bullet.</p><p><em>“Memories may be beautiful and yet…”</em></p><p>Next, we took a look @ the Memory Grant Feedback (row mode) feature which originally made its debut in SQL Server 2017. A <strong>memory grant</strong> is used by the SQL Server database engine to allocate how much memory it will use for a given query.</p><p>Sometimes it can allocate too much or too little than the actual memory needed. Obviously, if too much memory is allocated than there will be less memory available for other processes, and if too little is allocated than memory will spill to disk and performance will suffer.</p><p><em>“Here I come to save the day!”</em></p><p>Once again, by simply switching the Database “compat mode” to <strong>SQL Server 2019 (15.x)</strong>, SQL Server will now automatically adjust the amount of memory granted for a query. Awesome! … but what’s the catch? Well, similar to the new Table variable enhancement situation, memory grants are sensitive to the dreaded parameter sniffing as SQL Server will base its decision making on the previous run query. In addition, If you rebuild your indexes or create new indexes, the adaptive memory grants feature will forget everything it learned about previously run plans and start all over.</p><p>This is an improvement to the past performance of memory grants but unfortunately not the panacea.</p><p><em>“I will choose a path that’s clear.. I will choose free will”</em></p><p>Further, we next explored another feature that first made an appearance in SQL Server 2017 in <strong>Adaptive Joins.</strong> Back then this sleek feature was only available for Columnstore index but now in SQL Server 2019 is available for our run of the mill b-tree or row-type work loads. In SQL Server, with Adaptive Joins the query optimizer will dynamically determines at runtime the threshold number of rows and then it chooses between a Nested Loop or Hash Match join operator. Again, we simply switch the Database “compat mode” to SQL Server 2019 (15.x) and abracadabra!</p><p>This is awesome! But… Well, once again parameter sniffing rears its ugly head. As Brent astutely points out during his presentation and documents in his detailed <a href="https://www.brentozar.com/archive/2019/04/parameter-sniffing-in-sql-server-2019-adaptive-joins/">blog post</a> when dealing with complex queries often times SQL Server will produce several plans. So when SQL Server 2019 tries to solve this problem with more options for the optimizer to choose from it will in some particular cases might backfire depending on your workloads.</p><p><em>“Just when I thought our chance had passed..You go and save the best for last”</em></p><p>The last feature we keyed on as part of IQP was <strong>Batch Mode </strong>execution. This is just another great innovation that came straight out Columnstore Index (SQL 2012). Now offered in SQL Server 2019, users can take advantage of this enhancement without needing to use a Columnstore Index.</p><p>Batch mode is a huge performance enhancement especially with CPU-bound queries and for queries that use aggregation, sorts, and group by operations. Batch mode performs scans and calculations using batches. To enable the batch mode processing all you have to do is… thats right.. you guessed it… Switching the Database “compat mode” to <strong>SQL Server 2019 (15.x)</strong></p><p><em>“Don’t cry Don’t raise your eye It’s only teenage wasteland”</em></p><p>Continuing our journey with SQL Server 2019.. We ventured to take a sneak peak at the improvements SQL Server 2019 made to TempDB. Guiding us through the murky terrain of TempDB was SQL Royalty and Microsoft Certified Master <a href="https://sqlgoddess.com/about/">Pam Lahoud</a>. Pam presented in two short but very thorough videos as part of the <a href="https://m.youtube.com/playlist?list=PL-_k_UrAvrYugTB6GXpPSs_NMdTVX7XRD">Data Exposed series</a>:</p><ul><li><a href="https://www.youtube.com/watch?v=LQejtjKERWM">It Just Runs Faster: SQL Server 2019 TempDB Improvements</a></li><li><a href="https://www.youtube.com/watch?v=g4aemv5O9as">How (and When) To: Memory Optimized TempDB Metadata</a></li></ul><p>In these great videos, Pam gives us the lowdown on improvements to TempDB in SQL Server 2019. TempDB is of course one of the famous or infamous system databases as part of SQL Server. As SQL Server, has been enhanced over the last several decades more and more “stuff” has been chucked into TempDB. TempDB has often been referred to as the “Wastelands”. Some of the activities that go on in TempDB are:</p><ul><li>Temp Tables</li><li>Table Variables</li><li>Cursors</li><li>DBCC CHECKDB</li><li>Table-Valued Functions</li><li>Row Versions</li><li>Online Index Operations</li><li>Sorts</li><li>Triggers</li><li>Statistics Updates</li><li>Hash Worktables</li><li>Spools</li></ul><p>As result of all these happenings in SQL Server, we often might experience some pain in Object allocation contention, Metadata contention, and Temp table cache contention.</p><p>“<em>Look up in the sky! It’s a Bird… It’s a Plane… It’s ..</em>“</p><p>..SQL Server 2019. (Of course)</p><p>In SQL 2019, there are two major improvements that impact TempDB performance. The first improvement made helps reduce some of the Temp table cache contention issues. SQL 2019 intelligently<strong> partitions cache objects and optimizing cache look up</strong>.</p><p>To address object allocation contention issues SQL 2019 now offers <strong>concurrent PFS</strong> <strong>updates</strong>. In addition, by enabling concurrent PFS updates this allows us to have multiple threads share a latch on the PFS page and therefore we can have more more concurrent threads and less attention on those object allocation pages</p><p>The Next major enhancement is <strong>memory optimized metadata table</strong>s. This is the big one that got into the brochure!</p><p>Under the hood, SQL Server 2019 moves the system objects into memory optimized tables that have latched free, lock free structures which greatly increases the concurrency that we can have against those metadata tables and that helps us alleviate that metadata contention.</p><p>By Default the Memory-Optimized TempDB Metadata feature is not turned out but its quite easy to enable:</p><pre><strong>ALTER SERVER CONFIGURATION SET MEMORY_OPTIMIZED TEMPDB_METADATA = ON;</strong></pre><p>For those who see a flurry of tempdb activity, this feature seems like a no brainer</p><p><em>“Makes us want to stay, stay, stay… For awhile”</em></p><p>Below are some of the places I am considering for my explorations for next week:</p><ul><li>Continuing with SQL Server 2019</li><li>Google Cloud Certified Associate Cloud Engineer Path</li></ul><p>Thanks –</p><p>–MCS</p><p><em>Originally published at </em><a href="https://sqlsquirrels.com/2020/09/18/week-of-september-18th/"><em>https://sqlsquirrels.com</em></a><em> on September 18, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e57454e2ca16" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week of September 12th]]></title>
            <link>https://ms4446.medium.com/week-of-september-12th-7b1c3edcb387?source=rss-bc079425cf0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b1c3edcb387</guid>
            <category><![CDATA[azure-certification]]></category>
            <category><![CDATA[microsoft-azure]]></category>
            <category><![CDATA[azure-fundamentals]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Mark Shay]]></dc:creator>
            <pubDate>Sun, 13 Sep 2020 03:03:39 GMT</pubDate>
            <atom:updated>2020-09-13T03:25:21.210Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xUiy1J4tH_N7DTQEL1l7Mw.jpeg" /></figure><p>“ <em>Now they always say, ‘Congratulations’” </em>🎉🥳</p><p>Happy International🌎 Programmers’👩🏽‍💻day!</p><p>So last week we decided to get our <a href="https://sqlsquirrels.com/2020/09/04/week-of-september-4th/">Microsoft Azure fundies</a> on. So naturally, it would only make sense to test out our knowledge🤓 and take the <a href="https://docs.microsoft.com/en-us/learn/certifications/exams/az-900">AZ-900: Microsoft Azure Fundamentals</a> certification exam 📝.</p><p>So, this week we decided to go down that road 🚙 and I am happy 😊 to report we passed.</p><p><em>“That’s what the flair is about… it’s about fun </em>😃<em>!” — Stan from Chotchkie’s</em></p><p>Ok, so besides picking up some additional flair to match our <a href="https://sqlsquirrels.com/2020/08/28/week-of-august-28th/">AWS Practitioner badge</a> it does provide us with some additional street “Cloud ☁️ Cred” and we can also show lack of favoritism of one cloud ☁️ provider over another. The bottom line is all clouds☁️ good 😊 and very powerful⚡️!</p><p>To help prepare for the exam📝, we turned to several resources. Fortunately, there is a lot of great content out there.. For a quick primer we turned to <a href="https://savilltech.com/author/savilljohn/">John Savill</a> &lt;- who literally got pumped up 🏋🏻‍♂️ and delivered an excellent primer on Azure architecture and the Core Concepts through his <a href="https://www.youtube.com/watch?v=t1nB1RYihJg">AZ-900 Azure Fundamentals Hints and Tips</a> Youtube video and to “Tech Trainer” <a href="https://techtrainertim.com/index.html">Tim Warner</a> who was happy 😊 to be our instructor 👨‍🏫 through his amazing <a href="https://www.youtube.com/playlist?list=PLYGZ9Q0oTOHfsI-3IAhvyc09ssPDfoePv">Microsoft Azure Fundamentals Study Guide</a> YouTube Series</p><p>Finally, just to get a feel for types of questions that might appear on the exam 📝 I purchased <a href="https://www.testpreptraining.com/microsoft-azure-fundamentals-az-900-practice-exam-questions">TestPrepTraining — Microsoft Azure Fundamentals (AZ-900) Practice Exam</a> which provided over 1,000 Azure Fundamental-type questions. With that being said there were some similar questions I saw in the course’s practice tests but there were still many questions on my actual exam 📝 that I had never seen 👀 before. In fact, the questions were even in completely different format then the courseware. Overall, I was quite impressed how Microsoft structured this test. They made it quite challenging and with the expectations that you had to have practical experience using the Azure Portal and that you just didn’t memorize a bunch concepts and plethora of questions.</p><p><em>“My, my, my, I’m once bitten </em>🦈<em> twice shy baby”</em></p><p>For those who might remember when I first attempted to take the <a href="https://aws.amazon.com/certification/certified-cloud-practitioner/">AWS Cloud Practitioner Exam</a>, it didn’t exactly go as <a href="https://sqlsquirrels.com/2020/08/07/week-of-august-7th/">planned</a>. So perhaps now, I might be a little gun shy ☺️ or just proponent of having highly available and fault tolerant environment (like the cloud ☁️ itself) to be used for taking these exams 📝. So, in preparation of the exam 📝, I prepared 2 Mac books 💻 and one Windows laptop to be available with the secure <a href="https://home.pearsonvue.com/Test-takers/OnVUE-online-proctoring.aspx">OnVUE</a> browser hours ⏳ before the test to mitigate against any unforeseen circumstances.</p><p><em>“Hold your head up… Keep your head up, movin’ on”</em></p><p>Below are some areas I am considering for my travels next week:</p><ul><li>SQL Server 2019</li><li>Google Cloud Certified Associate Cloud Engineer Path</li></ul><p>Thanks -</p><p>-MCS</p><p><em>Originally published at </em><a href="https://sqlsquirrels.com/2020/09/12/week-of-september-12th/"><em>https://sqlsquirrels.com</em></a><em> on September 13, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b1c3edcb387" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week of September 4th | SQL Squirrels]]></title>
            <link>https://ms4446.medium.com/week-of-september-4th-sql-squirrels-642e05d55229?source=rss-bc079425cf0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/642e05d55229</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[microsoft-azure]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Mark Shay]]></dc:creator>
            <pubDate>Sat, 05 Sep 2020 03:59:00 GMT</pubDate>
            <atom:updated>2020-09-09T18:35:04.143Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*oEwcGd28ZNLQOMcJMYe8ZA.jpeg" /></figure><p><em>“You’re my blue sky, you’re my sunny</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p><em>️ day.”</em></p><p>Happy Labor Day</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>Weekend!</p><p>Back at the end of July, we decided to re-route course and go back to the basics with AWS Cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>focusing on the <a href="https://sqlsquirrels.com/2020/07/31/week-of-july-31st/">core concepts and principals of the AWS</a>. Despite hitting a <a href="https://sqlsquirrels.com/2020/08/07/week-of-august-7th/">temporary obstacle</a>, we subsequently took and passed the <a href="https://aws.amazon.com/certification/certified-cloud-practitioner/">AWS Certified Cloud Practitioner</a> certification exam</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p><a href="https://sqlsquirrels.com/2020/08/28/week-of-august-28th/">last week</a>. Feeling the need to spread the love</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>around the Troposphere we decided we should circle</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>back to Microsoft’s very popular cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>offering Azure and focus on the “fundies” or Fundamentals of Azure. Of course, this wasn’t our first time</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>at this rodeo</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>. We spent several occasions in <a href="https://sqlsquirrels.com/category/azure/">Microsoft Stratosphere</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>before. The most recent was looking at <a href="https://sqlsquirrels.com/category/cosmos-db/">Microsoft’s NoSQL Azure</a> offerings. This time</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>we would concentrate specifically on General Cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>Concepts, Azure Architectural Components, Microsoft Azure Core Services, Security</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>, Privacy</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>, Compliance, and Pricing</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>, Service Level Agreements, and Lifecycles. To obtain such knowledge we would need to explore several resources starting with first course</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>of <a href="https://sqlsquirrels.com/2020/09/04/week-of-september-4th/%3c-https:/docs.microsoft.com/en-us/learn/paths/azure-fundamentals">Azure fundamentals</a> which was an amazing compilation of rich documentation, vignettes</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>from current and former blue badgers/ Cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>Advocates <a href="https://developer.microsoft.com/en-us/advocates/anthony-bartolo">Anthony Bortolo</a>, <a href="https://developer.microsoft.com/en-us/advocates/sonia-cuff">Sonia Cuff</a>, <a href="https://developer.microsoft.com/en-us/advocates/phoummala-schmitt">Phoummala Schmitt</a>, <a href="https://www.linkedin.com/in/susanmhinton/">Susan Hinton</a>, <a href="https://developer.microsoft.com/en-us/advocates/rick-claus">Rick Claus</a>, <a href="https://developer.microsoft.com/en-us/advocates/christina-warren">Christina Warren</a>, <a href="https://developer.microsoft.com/en-us/advocates/pierre-roman">Pierre Roman</a> and <a href="https://developer.microsoft.com/en-us/advocates/scott-cate">Scott Cate</a> and several short labs</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>that give you free access to the Azure Cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>and let you implement solutions. For our second course</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>we out to YouTube and found 5 ½ hours</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>of goodness</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>with <a href="https://www.howtonetwork.com/about-us/#Paul%20Browning">Paul Browning’s</a> awesome videos on “<a href="https://www.youtube.com/watch?v=XbWciktv5s8">Microsoft Azure Fundamentals (AZ 900) — Complete Course</a><strong>”</strong> and then for encore we out to Pluralsight and visited with both <a href="https://mgbleedstechtalk.wordpress.com/about/">Michael Brown</a> and his <a href="https://app.pluralsight.com/library/courses/microsoft-azure-security-privacy-concepts/table-of-contents">Microsoft Azure Security</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p><a href="https://app.pluralsight.com/library/courses/microsoft-azure-security-privacy-concepts/table-of-contents">and Privacy</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p><a href="https://app.pluralsight.com/library/courses/microsoft-azure-security-privacy-concepts/table-of-contents">Concepts</a> and with <a href="http://www.buchatech.com/about/">Steve Buchanan</a> and his <a href="https://app.pluralsight.com/library/courses/microsoft-azure-pricing-support-options/table-of-contents">Microsoft Azure Pricing and Support Options</a> because who can ever get enough of Security</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>and Pricing</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>?</p><p><em>“So, I look in the sky, but I look in vain…Heavy cloud</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p><em>, but no rain</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p><em>”</em></p><p><strong>General Cloud</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p><strong>️ Concepts</strong></p><p>First, let’s review… What is cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>computing anyway? There are numerous meanings out there. According to <a href="https://en.wikipedia.org/wiki/Cloud_computing">Wikipedia</a> <em>“Cloud</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p><em>computing is the on-demand availability of computer system resources, especially data storage</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p><em>(cloud</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p><em>storage</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p><em>) and computing power</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p><em>, without direct active management by the user. “</em></p><p>It’s really just a catchy name. So, despite contrary belief Cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>Computing has nothing to do with the clouds</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>or the weather</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>in the sky. In simplest terms it means sharing of pooled computing resources over the Internet. And Ready for the catcher? “that you can rent”. In other words, you pay for what you use. Opposed to traditional computing way where a company or organization would invest in potentially expensive real estate to house owned Compute</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>, Storage</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>, Networking or fancy Analytics.</p><p>So now we are faced with the argument Capital expenditure (traditional computing cost model) versus operational expenditure (Cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>Computing cost model)</p><p>Capital expenditure (CapEx)</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>consist on the funds that a company uses to purchase major physical goods or services that the company will use for more than one year and the value will depreciate over time</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>Operational expenditure (OpEx)</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>are deducted in the same year they’re made, allowing you to deduct those from your revenues faster.</p><p>So, looking from a cost perspective, the cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>can offer a better solution for a better cost since the cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>provider’s already has those, so you would benefit from the economies of scale</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>.</p><p>That’s great but let’s leave the expenses to the bean counters. After all we are technologists and we want the best performance and efficient technology solutions. So, what other benefits does Cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>provide me? How about Scalability</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>, Elasticity, Agility, Fault Tolerance, High Availability, Disaster Recovery and Security</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>.</p><ul><li><strong>Scalability</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li><strong>:</strong> Cloud</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>will increase or decrease resources and services used based on the demand or workload at any given time</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>. Cloud</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>supports both <em>vertical</em> and <em>horizontal</em> scaling depending on your needs.</li><li><strong>Elasticity</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li><strong>:</strong> Cloud</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>compensate spike</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>or drop</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>in demand by automatically adding or removing resources.</li><li><strong>Agility</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li><strong>:</strong> Cloud</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>eliminates the burdens of maintaining software patches, hardware setup, upgrades, and other IT management tasks. All of this is automatically done for you. Allowing you to focus on what matters: building and deploying applications.</li><li><strong>Fault Tolerance:</strong> Cloud</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>has fully redundant datacenters located in various regions all over the globe.</li><li><strong>High Availability &amp; Disaster Recovery:</strong> Cloud</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>can replicate your services into multiple regions for redundancy and locality or select a specific region to ensure you meet data-residency and compliance laws for your customers.</li><li><strong>Security</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li><strong>:</strong> Cloud</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>offers a broad set of policies, technologies, controls, and expert technical skills that can provide better security</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>than most organizations can otherwise achieve.</li></ul><p>Ok, now I am sold. But what types of clouds</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>are there? There are multiple types of cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>computing services, but the three main ones are:</p><p><strong>Infrastructure as a service (IaaS) — </strong>enables applications to run</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>on the cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>instead of using their own infrastructures. Allows the most control over provided hardware that runs your applications</p><p><strong>Platform as a Service (PaaS)- </strong>enables developers to create as software without investing in expensive</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>hardware. Allows you to create an application quickly without managing the underlying infrastructure.</p><p><strong>Software as a Service (SaaS) — </strong>provides answers to desktop needs for end users. Based on an architecture where one version of the application is used for all customers and licensed through a monthly or annual subscription.</p><p>What about Cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>Deployment models? Well, there are multiple types of cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>deployment models out there as well.</p><p><strong>Public cloud</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p><strong>:</strong> cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>vendor that provides cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>services to multiple clients. All of the clients securely</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>share the same hardware in the back end.</p><p><strong>Private cloud</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p><strong>️:</strong> organization uses their own hardware and software resources to achieve cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>services.</p><p><strong>Hybrid cloud</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p><strong>️:</strong> this cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>model is a combination of both private and public cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>models.</p><p><strong>Community cloud</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p><strong>:</strong> this model consists of a pool of computer resources. These resources are available to the different organizations with common needs. Clients or tenants can access the resources quickly and securely</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>. clients are referred to as tenants.</p><p><em>“Blue skies, smilin’</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p><em>at me Nothin’ but blues skies do I see”</em></p><p>So now that we expounded the virtues of Cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>computing Concepts let’s take a deeper a look on what we came for… <strong>Microsoft Azure</strong> is a cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>computing service created by Microsoft for building, testing, deploying, and managing applications and services through a global network of Microsoft managed data centers.</p><p><em>“Architecture starts when you carefully put two bricks</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p><em>together. There it begins.”</em></p><p><strong>Azure Architectural Components</strong></p><p>Microsoft Azure is made up of data centers located around the globe</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>. These data centers are organized and made available to end users by region. A r<strong>egion </strong>is a geographical area on the planet</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>containing at least one, but potentially multiple data centers that are in close proximity and networked together with a low-latency network.</p><p>Azure divides the world</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>into <strong>geographies</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>that are defined by geopolitical boundaries or country borders. An Azure geography is a discrete market typically containing two or more regions that preserves data residency and compliance boundaries.</p><p><strong>Availability sets</strong> are a way for you to ensure your application remains online if a high-impact maintenance event is required, or if a hardware failure occurs. Availability sets are made up of Update domains (UD) and Fault domains (FD).</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p><strong>Fault domains </strong>is a logical group of underlying hardware that share a common power</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>source and network switch, similar to a rack within an on-premise data center.</p><p><strong>Update domains </strong>is a logical group of underlying hardware that can undergo maintenance or be rebooted at the same time</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>. An update domain is a group of VMs that are set for planned maintenance events at the same time</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>.</p><p><strong>Paired regions </strong>support redundancy across two predefined geographic</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>regions, ensuring that even if an outage affects an entire Azure region, your solution is still available.</p><p>Additional advantages of regional pairs:</p><ul><li>In the event of a wider Azure outage, one region is prioritized out of every pair to help reduce the time</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>to restore for applications.</li><li>Planned Azure updates are rolled out to paired regions one at a time</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>to minimize downtime</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>and risk of application outage.</li><li>Data continues to reside within the same geography as its pair (except for Brazil South) for tax and law enforcement jurisdiction purposes.</li></ul><p><strong>Availability Zones </strong>are physically separate locations within an Azure region that use availability sets to provide additional fault tolerance.</p><p><strong>Resource group</strong> is a unit of management for your resources in Azure. A resource group is like container that allows you to aggregate and manage all the resources required for your application in a single manageable unit.</p><p><strong>Azure Resource Manager</strong> is a management layer in which resource groups and all the resources within it are created, configured, managed, and deleted.</p><p><em>“It is our choices, Harry, that show what we truly are, far more than our abilities.”― J.K. Rowling</em></p><p><strong>Azure Services</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>Azure provides over 100 services that enable you to do everything from running</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>your existing applications on virtual machines to exploring</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>new software paradigms such as intelligent bots and mixed reality. The below table are some of the services available in Azure:</p><p><strong>Azure compute</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>– is an on-demand computing service for running cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>-based applications.</p><p>There are four common techniques for performing compute</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>in Azure:</p><ol><li>Virtual machines — software emulations of physical computers</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ol><li>.</li><li>Containers — virtualization environment for running</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ol><li>applications.</li><li>Azure App Service — (PaaS) offering in Azure that is designed to host enterprise-grade web-oriented applications</li><li>Serverless computing — cloud</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ol><li>hosted execution environment that runs</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ol><li>your code but completely abstracts the underlying hosting environment.</li></ol><p>Azure Virtual Machines (VMs) (IaaS) lets you create and use virtual machines in the cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>.</p><h4>Scaling VMs in Azure</h4><p><strong>Availability sets</strong> is a logical grouping of two or more VMs that help keep your application available during planned or unplanned maintenance</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>.</p><ul><li>Up to three fault domains that each have a server rack with dedicated power</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>and network resources</li><li>Five logical update domains which then can be increased to a maximum of 20</li></ul><p><strong>Azure Virtual Machine Scale</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>Sets let you create and manage a group of identical, load balanced VMs.</p><p><strong>Azure Batch</strong> enables large-scale</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>job scheduling and compute</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>management with the ability to scale</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>to tens, hundreds, or thousands of VMs.</p><ul><li>Starts a pool of compute</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>VMs for you</li><li>Installs applications and staging data</li><li>Runs</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>jobs with as many tasks as you have</li><li>Identifies failures</li><li>Re-queues work</li><li>Scales</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>down the pool as work completes</li></ul><p><strong>Containers in Azure</strong></p><p>Azure supports Docker</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>containers (a standardized container model), and there are several ways to manage containers in Azure.</p><ul><li>Azure Container Instances (ACI)</li><li>Azure Kubernetes Service (AKS)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ol><li><strong>Azure Container Instances (ACI)</strong> offers the fastest and simplest way to run</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ol><li>a container in Azure.</li><li><strong>Azure Kubernetes Service (AKS)</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ol><li>is a complete orchestration service for containers with distributed architectures with multiple containers.</li></ol><p>Containers are often used to create solutions using a <em>microservice architecture</em>. This architecture is where you break solutions into smaller, independent pieces.</p><p><strong>Azure App Service</strong></p><p>Azure App Service (PaaS) enables you to build and host web apps, background jobs, mobile</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>backends, and RESTful</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>APIs in the programming language of your choice without managing infrastructure. It offers automatic scaling</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>and high availability.</p><p>App Service, you can host most common app service styles, including:</p><ol><li>Web apps- includes full support for hosting web apps using ASP.NET, ASP.NET Core, Java</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ol><li>, Ruby</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ol><li>, Node.js, PHP, or Python</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ol><li>.</li><li>API apps — build REST-based</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ol><li>Web</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ol><li>APIs using your choice of language and framework</li><li>Web Jobs — allows you to run</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ol><li>a program (.exe, Java</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ol><li>, PHP, Python</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ol><li>, or Node.js) or script (.cmd, .bat, PowerShell</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ol><li>, or Bash</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ol><li>) in the same context as a web</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ol><li>app, API app, or mobile</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ol><li>app. They can be scheduled or run</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ol><li>by a trigger</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ol><li>.</li><li>Mobile</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ol><li>app back-ends — quickly build a backend for iOS and Android apps.</li></ol><p><strong>Azure Networking</strong></p><p>Azure Virtual Network enables many types of Azure resources such as Azure VMs to securely</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>communicate with each other, the internet, and on-premises networks. Virtual networks can be segmented into one or more <em>subnets</em>. Subnets help you organize and secure</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>your resources in discrete sections.</p><p><strong>Azure Load Balancer</strong> is a load balancer service that Microsoft provides that helps take care of the maintenance for you. Load Balancer supports inbound and outbound scenarios, provides low latency and high throughput ↔️, and scales</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>up to millions of flows for all Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) applications. Azure Application Gateway</p><p><strong>VPN gateway</strong> is a specific type of virtual network gateway that is used to send encrypted traffic</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>between an Azure Virtual Network and an on-premises location over the public internet. It provides a more secure</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>connection from on-premises to Azure over the internet.</p><p><strong>Application Gateway</strong> is a load balancer designed for web applications. It uses Azure Load Balancer at the transport level (TCP) and applies sophisticated URL-based routing rules to support several advanced scenarios.</p><p>Here are some of the benefits of using Azure Application Gateway over a simple load balancer:</p><ul><li>Cookie</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>affinity.</li><li>SSL termination</li><li>Web</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>application firewall</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>(WAF)</li><li>URL rule-based routes.</li><li>Rewrite HTTP headers</li></ul><p><strong>Content delivery network</strong> (CDN) is a distributed network of servers that can efficiently deliver web</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>content to users. It is a way to get content to users in their local region to minimize latency.</p><p><strong>Azure Storage</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>is a service that you can use to store files</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>, messages</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>, tables , and other types of information.</p><p><strong>Disk storage</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>provides disks for virtual machines, applications, and other services to access and use as they need, similar to how they would in on-premises scenarios. Disk storage</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>allows data to be persistently stored and accessed from an attached virtual hard disk.</p><p><strong>Azure Blob storage</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>is object storage</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>solution for the cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>. Blob storage</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>is optimized for storing massive amounts of unstructured data, such as text or binary data.</p><p>Blob storage</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>is ideal for:</p><ul><li>Serving images or documents directly to a browser.</li><li>Storing files for distributed access.</li><li>Streaming video</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>and audio</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>.</li><li>Storing data for backup and restore, disaster recovery, and archiving.</li><li>Storing data for analysis by an on-premises or Azure-hosted service.</li></ul><p><strong>Azure Files Storage</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>enables you to set up highly available network file shares that can be accessed by using the standard Server Message Block (SMB) protocol. That means that multiple VMs can share the same files with both read and write access. You can also read the files using the REST</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>interface or the storage</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>client libraries</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>File shares can be used for many common scenarios:</p><ul><li>Many on-premises applications use file shares.</li><li>Configuration files</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>can be stored on a file share and accessed from multiple VMs.</li><li>Diagnostic logs, metrics, and crash dumps are just three examples of data that can be written to a file</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>share and processed or analyzed later.</li></ul><p><strong>Azure Archive Blob Storage</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>Azure Archive Blob storage</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>is designed to provide organizations with a low cost means of delivering durable, highly available, secure cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>storage</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>for rarely accessed data with flexible latency requirements. Azure storage</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>offers different access tiers include:</p><ul><li><strong>Hot</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>– Optimized for storing data that is accessed frequently.</li><li><strong>Cool</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>– Optimized for storing data that is infrequently accessed and stored for at least 30 days.</li><li><strong>Archive</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><ul><li>– Optimized for storing data that is rarely accessed and stored for at least 180 days with flexible latency requirements (on the order of hours).</li></ul><p><strong>Storage</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p><strong>Replication</strong></p><p>Azure regions and geographies</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>become important when you consider the available storage</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>replication options. Depending on the storage</p><p>type, you have different replication options.</p><ol><li><strong>Locally redundant storage</strong></li><li><strong>(LRS)- </strong>Replicates your data 3x within the region in which you create your storage</li><li>account.</li><li><strong>Zone redundant storage</strong></li><li><strong>(ZRS) — </strong>Replicates your data 3x across two to three facilities, either within a single region or across two regions.</li><li><strong>Geo-redundant storage</strong></li><li><strong>(GRS) — </strong>Replicates your data to secondary region that is hundreds of miles away from the primary region.</li><li><strong>Read-access Geo-Redundant storage</strong></li><li><strong>(RA-GRS)- </strong>Replicates your data to a secondary region, as with GRS, but also then provides read only access to the data in the secondary location.</li></ol><p><strong>Azure Database</strong></p><p><strong>services</strong> are fully managed PaaS database</p><p>services. Enterprise-grade performance with built-in high availability, scales</p><p>quickly and reach global</p><p>distribution.</p><p><a href="https://sqlsquirrels.com/category/cosmos-db/"><strong>Azure Cosmos DB</strong></a></p><p>is a globally</p><p>distributed database</p><p>service that enables you to elastically and independently scale</p><p>throughput and storage</p><p>across any number of Azure’s geographic</p><p>regions. It supports schema-less data that lets you build highly responsive and Always On applications to support constantly changing data.</p><p><strong>Azure SQL Database</strong></p><p>is a relational database</p><p>as a service (DBaaS) based on the latest stable version of Microsoft SQL Server database</p><p>engine. SQL Database</p><p>is a high-performance, reliable, fully managed and secure database</p><p>without needing to manage infrastructure. SQL database</p><p>offers 4 service tiers to support lightweight to heavyweight</p><p>database</p><p>loads:</p><ul><li>Basic</li><li>Standard</li><li>Premium</li><li>Premium RS</li></ul><p><strong>Azure Database</strong></p><p><strong>for MySQL</strong> is a relational database</p><p>service powered by the MySQL community edition. It’s a fully managed database</p><p>as a service offering that can handle mission-critical workloads with predictable performance and dynamic Scalability</p><p>.</p><p><strong>Azure Database</strong></p><p><strong>for PostgreSQL</strong> is a relational database</p><p>service based on the open-source Postgres database</p><p>engine. It’s a fully managed database-as-a-service offering that can handle mission-critical workloads with predictable performance, security</p><p>, high availability, and dynamic Scalability</p><p>.</p><p><strong>Azure Database</strong></p><p><strong>Migration Service</strong> is a fully managed service designed to enable seamless migrations from multiple database</p><p>sources to Azure data platforms with minimal downtime</p><p>(online migrations). The service uses the Microsoft Data Migration Assistant to generate assessment reports that provide recommendations to help guide you through required changes prior to performing a migration.</p><p><strong>Dynamic Scalability</strong></p><p><strong>️</strong> enables your database</p><p>to transparently respond to rapidly changing resource requirements and enables you to only pay for the resources that you need when you need them.</p><p><strong>Elastic pools to maximize resource utilization</strong></p><p>Elastic pools are designed dial performance up or down on demand especially if usage patterns are relatively predictable.</p><p><strong>Azure Marketplace</strong></p><p>Azure Marketplace is a service on Azure that helps connect end users with Microsoft partners, independent software vendors (ISVs), and start-ups that are offering their solutions and services, which are optimized to run</p><p>on Azure. The solution catalog spans several industry categories:</p><ul><li>Open-source container platforms</li><li>Virtual machine images</li><li>Databases</li><li>Application build and deployment software</li><li>Developer tools</li><li>Threat detection</li><li>Blockchain</li></ul><p><strong>Internet of Things (IoT)</strong></p><p>is the ability for devices to garner and then relay information for data analysis. There are many services that can assist and drive end-to-end solutions for IoT on Azure. Two of the core Azure IoT service types are:</p><ul><li><strong>IoT</strong></li><li><strong>Central</strong> is a fully managed global IoT software as a service (SaaS) solution that makes it easy to connect, monitor, and manage your IoT assets at scale</li><li>.</li><li><strong>Azure IoT</strong></li><li><strong>Hub </strong>is a managed service hosted in the cloud</li><li>that acts as a central message hub for bi-directional communication between your IoT application and the devices it manages. You can use Azure IoT Hub to build IoT solutions with reliable and secure communications between millions of IoT devices and a cloud</li><li>-hosted solution backend.</li></ul><p><strong>Big data and analytics — </strong>Data comes in all types of forms and formats. When we talk about big data, we’re referring to <em>large</em> volumes of data.</p><p><strong>Azure Synapse Analytics </strong>is a limitless analytics service that brings together enterprise data warehousing and big data analytics.</p><p><strong>Azure HDInsight</strong> is a fully managed, open-source analytics service for enterprises. It is a cloud</p><p>service that makes it easier, faster, and more cost-effective to process massive amounts of data. HDInsight supports open-source frameworks and create cluster types:</p><ul><li>Apache Spark</li><li>Apache Hadoop</li><li>Apache Kafka</li><li>Apache HBase</li><li>Apache Storm</li><li>Machine Learning Services</li></ul><p><strong>Microsoft Azure Databricks</strong></p><p>provides data science and data engineering teams with a fast, easy and collaborative Spark-based platform on Azure. It gives Azure users a single platform for Big Data processing and Machine Learning.</p><p><strong>Artificial Intelligence (AI)</strong></p><p>is the creation of software that imitates human behaviors and capabilities. Key</p><p>elements include:</p><ul><li><strong>Machine learning</strong> — This is often the foundation for an AI system, and is the way we “teach” a computer model to make prediction and draw conclusions from data.</li><li><strong>Anomaly detection</strong> — The capability to automatically detect errors or unusual activity in a system.</li><li><strong>Computer vision</strong></li><li>– The capability of software to interpret the world visually through cameras, video, and images.</li><li><strong>Natural language processing</strong> — The capability for a computer to interpret written or spoken language and respond in kind.</li><li><strong>Conversational AI</strong> — The capability of a software “agent” to participate in a conversation.</li></ul><p><strong>Azure Machine Learning</strong> <strong>service</strong> is a cloud</p><p>-based platform for creating, managing, and publishing machine learning models. Azure Machine Learning provides the following features and capabilities:</p><ul><li>Automated machine learning</li><li>Azure Machine Learning designer</li><li>Data and compute</li><li>management</li><li>Pipelines</li></ul><p><strong>Azure Machine Learning studio</strong> is a web</p><p>portal for data scientist developers in Azure Machine Learning. The studio combines no-code and code-first experiences for an inclusive data science platform.</p><p><strong>Serverless computing</strong> lets you run</p><p>application code without creating, configuring, or maintaining a server. Azure has two implementations of serverless compute</p><p>:</p><ul><li><strong>Azure Functions</strong>, which can execute code in almost any modern language.</li><li><strong>Azure Logic Apps</strong>, which are designed in a web-based designer and can execute logic triggered by Azure services without writing any code.</li></ul><p><strong>Azure Event Grid</strong> allows you to easily build applications with event-based architectures. Event Grid has built-in support for events coming from Azure services, like storage</p><p>blobs and resource groups.</p><p><em>“DevOps brings together people, processes, and technology, automating software delivery to provide continuous value to your users.”</em></p><p><strong>Azure DevOps Services</strong> allows you to create <em>build</em> and <em>release</em> pipelines that provide continuous integration, delivery, and deployment for your applications.</p><ul><li><strong>Azure DevOps</strong> — (SaaS) platform from Microsoft that provides an end-to -end DevOps toolchain</li><li>for developing and deploying software. It also integrates with most leading tools</li><li>on the market and is a great option for orchestrating a DevOps toolchain</li><li>.</li><li><strong>Azure DevTest Labs</strong></li><li>– (PaaS) enables developers on teams to efficiently self-manage virtual machines (VMs. DevTest Labs</li><li>creates labs</li><li>consisting of pre-configured bases or Azure Resource Manager templates.</li></ul><p><strong>Azure management options</strong></p><p>You can configure and manage Azure using a broad range of tools</p><p>and platforms. Tools</p><p>that are commonly used for day-to-day management and interaction include:</p><ul><li><strong>Azure portal</strong> for interacting with Azure via a Graphical User Interface (GUI)</li><li><strong>Azure PowerShell</strong></li><li>cross-platform version of PowerShell</li><li>that enables you to connect to your Azure subscription and manage resources.</li><li><strong>Azure Command-Line Interface</strong> (CLI) cross-platform command-line program that connects to Azure and executes administrative commands</li><li><strong>Azure Cloud</strong></li><li><strong>Shell</strong></li><li>interactive, authenticated, browser-accessible shell</li><li>for managing Azure resources.</li><li><strong>Azure mobile</strong></li><li><strong>app</strong> access, manage, and monitor</li><li>all your Azure accounts and resources from your iOS</li><li>or Android phone or tablet.</li><li><strong>Azure SDKs</strong> for a range of languages and frameworks, and REST</li><li>APIs manage and control Azure resources programmatically.</li></ul><p><strong>Azure Advisor</strong> is a free service built into Azure that provides recommendations on high availability, security</p><p>, performance, operational excellence, and cost. Advisor analyzes your deployed services and looks for ways to improve your environment across each of these areas.</p><p><em>“Don’t worry about a thing Cause every little thing gonna be alright”</em></p><p><strong>Security</strong></p><p><strong>, Privacy</strong></p><p><strong>, Compliance</strong></p><p><strong>Azure Advisor Security</strong></p><p><strong>Assistance.</strong></p><ul><li>Azure Advisor Security</li><li>Assistance integrates with Security</li><li>Center.</li><li>Provide best practice security</li><li>recommendations.</li><li>Azure Advisor Security</li><li>Assistance helps prevent, detect, and respond to security</li><li>threats.</li><li>You or your team should be using this tool every day to get the latest security</li><li>recommendations.</li><li>Configuration of this tool</li><li>, the amount of information it is gathering, the type of information it is gathering, is controlled through Security</li><li>Center.</li></ul><p><strong>Securing Azure Virtual Networks</strong></p><p><strong>Network Security</strong></p><p><strong>Groups (NSGs) — </strong>filter traffic</p><p>.</p><ul><li>NSG has an inbound list and an outbound list.</li><li>Attached to subnets or network cards</li><li>Each NSG could be linked to multiple resources</li><li>NSG are stateful.</li></ul><p><strong>Application Security</strong></p><p><strong>Groups — </strong>allow us to reference a group of resources</p><ul><li>Used as even a source or destination of traffic</li><li>.</li><li>They do not replace network security</li><li>groups.</li><li>Enhance them network security</li><li>groups are still required.</li></ul><p>When working with application security</p><p>groups,</p><ul><li>create the application security</li><li>group</li><li>link the application security</li><li>group to a resource</li><li>use the application security</li><li>group when working with network security</li><li>groups.</li></ul><p><strong>Azure Firewall</strong></p><p>is a stateful firewall</p><p>service and highly available solution provided by Azure. It’s a virtual appliance configured at the virtual network level. It protects access to your virtual networks. Features of Azure Firewall</p><p>include:</p><ul><li>Threat intelligence.</li><li>It supports both outbound and inbound NATing</li><li>Integrates with Azure Monitor</li><li>Network traffic</li><li>filtering rules</li><li>Unlimited in scale</li></ul><p><strong>Azure DDos protection</strong> provides DDoS mitigation for networks and applications.</p><p>Always on as a service.</p><ul><li>Provides protection all the way up to the application layer.</li><li>Integrates Azure Monitor</li><li>for reporting services.</li><li>Features offered by Azure DDoS protection include:</li><li>Multi‑layered support, so protection from layer 4 attacks up to layer 7 attacks.</li><li>Attack analytics. So, we can get reports on attacks in progress, as well as post attack reports</li><li>Scale</li><li>and elasticity</li><li>Provides protection against unplanned costs</li><li>.</li></ul><p>Azure DDoS comes in two different service tiers, <strong>basic</strong> and <strong>standard</strong>.</p><p><strong>Azure Web Application Firewall</strong></p><p>is designed to publish your applications to the outside world</p><p>, whether they’re in Azure or on‑premises, and lures bound traffic</p><p>towards them.</p><p><strong>Forced tunneling</strong> allows the control of flow of internet‑bound traffic</p><p>.</p><p><strong>Security</strong></p><p><strong>Scenarios</strong></p><ul><li>Control Internet traffic</li><li>– User defined routes, Azure FW</li><li>or marketplace device</li><li>Azure hosted SQL Server — NSGs</li><li>VPN — Forced tunneling</li></ul><p>Azure identity services</p><p>Identity services will help us in the <strong>authentication</strong></p><p>and <strong>authorization</strong></p><p>of our users. Authentication works hand in hand with authorization.</p><p><strong>Authentication</strong></p><p>– The act of proving who or what something is</p><p><strong>Authorization</strong></p><p>– Granting the correct level of access to a resource or service</p><p>In Azure, authentication</p><p>is provided by <strong>Azure AD</strong> and authorization is provided by <strong>role‑based access control.</strong></p><p><strong>Azure Active Directory</strong> is a cloud-based identity service used in Azure. It used to authenticate and authorize users. When we think Azure Active Directory, think single sign on. Azure Active Directory is not to be equivalent of <strong>Active Directory Domain Services</strong> used on-premise.</p><p><strong>Active Directory Domains Service</strong>s — full Active Directory Domain Service that we’ve used for years on‑premise.</p><p><strong>Azure AD Domain Services</strong> (PaaS)- introduced to make it easier to migrate legacy applications as it supports both NTLM and Kerberos for authentication</p><p>. also supports Group Policies, trust</p><p>relationships, as well as several over domain service features.</p><p><strong>Azure AD Connect</strong> as being like a synchronization tool.</p><p><strong>Multi‑factor authentication</strong> involves providing several pieces of information to prove who you are. <strong><em>Microsoft strongly recommends that we use multi‑factor authentication.</em></strong></p><p><strong>Azure Security</strong></p><p><strong>Center</strong> reports our complying status against certain standards.</p><p>It provides continuous assessment of existing and new services that we deploy, it also provides threat protection for both infrastructure and Platform as a Service services.</p><p><strong>Azure Key</strong></p><p><strong>Vault</strong> is a service we can use to protect our secrets. Azure Key</p><p>Vault uses hardware security</p><p>modules. These hardware security</p><p>modules have been validated to support the latest Federal Information Processing Standards.</p><p><strong>Azure Information Protection (AIP</strong>) to classify documents</p><p>and emails</p><p>. AIP applies Labels to documents</p><p>. Labeled documents</p><p>can be protected. There are two sides to Azure Information Protection</p><p>These classifications come in the form of metadata that can be attached with a header or added as watermarks to the document you’re trying to protect. Once classified, then the documents can be protected.</p><p><strong>Classification of Documents</strong>.</p><p>Azure uses Azure Rights Management to encrypt the documents using Rights Managements templates.</p><p><strong>Azure Advanced Threat Protection</strong></p><p>(Azure ATP) is a cloud</p><p>-based security</p><p>solution that identifies, detects, and helps you investigate advanced threats, compromised identities, and malicious insider actions directed at your organization. Azure ATP</p><p>portal allows you to create your Azure ATP</p><p>instance, and view the data received from Azure ATP</p><p>sensors.</p><p><strong>Azure ATP</strong></p><p><strong>sensors</strong> are installed directly on your domain controllers. The sensor monitors domain controller traffic</p><p>without requiring a dedicated server or configuring port mirroring.</p><p><strong>Azure ATP cloud</strong></p><p><strong>service</strong> runs on Azure infrastructure and is currently deployed in the United States, Europe, and Asia. Azure ATP cloud</p><p>service is connected to Microsoft’s intelligent security</p><p>graph.</p><p><strong>Azure Policy</strong> is a collection of rules. Each policy we create is assigned to a scope, such as an Azure subscription. When using Azure Policy, we create a policy definition, a policy assignment, and policy parameters,</p><p>When we create Azure policies, they can be used by themselves or they can be used with <strong>initiatives</strong>. Initiatives are a collection of policies. To use initiatives, we create an initiative definition, an initiative assignment, and initiative parameters</p><p><strong>Role Based Access Control (RBAC) </strong>is used daily by your organization. It’s central to access control in Azure. Azure provides shared access. RBAC is made up of several different components</p><ul><li>Roles are groups of permissions that are needed to perform different administrative actions in Azure. We then assign role members before configuring a scope for the role.</li><li>Scope details where a role can be used. There are many built‑in roles, each giving different sets of permissions, but three built‑in roles are used more than any other.</li></ul><p>Three used most often roles are:</p><ul><li><strong>Owner role</strong> full control of that resource, including the ability to assign other users and group access.</li><li><strong>Contributor role</strong> allows you to do everything except manage permissions.</li><li><strong>Reader</strong></li><li><strong>role</strong>. This role is read‑only</li></ul><p><em>Always follow the principle of least privilege</em>.</p><p><strong>Locks</strong></p><p><strong>– </strong>prevent deletions or editing of resource groups and their content Two types Locks</p><p>are Read‑only and Delete.</p><p>If you make a resource group read‑only, then all the resources in there can be accessed, but no new resources can be added to the resource group or removed from the resource group.</p><p>Delete, then no resources can be deleted from the resource group, but new resources can be added.</p><p><strong>Azure Blueprints — </strong>advanced way of orchestrating the deployment of resource templates and artifacts.</p><ul><li>Blueprints maintain a relationship between themselves and the resources that they deployed.</li><li>Blueprints include Azure policy and initiatives as well as artifacts such as roles.</li></ul><p>To use Blueprints, we require a Blueprint definition, we Publish the Blueprint, and then Assign it to a scope.</p><p>Blueprint definition</p><ul><li>Resource groups can be defined and created</li><li>Azure policy can be included to enforce compliance</li><li>Azure resource manager templates can be included to deploy resources</li></ul><p>Roles can be assigned to resources that blueprints have created</p><p>Azure Monitor to collect and analyze metric information both on premise and in Azure</p><p>Azure Service Health that we can use to see the health status of the Azure services</p><ul><li>Personalized dashboards</li><li>Configurable alerts</li><li>Guidance and Support</li></ul><p><strong>Service Trust</strong></p><p><strong>Portal</strong> (STP) hosts the Compliance Manager service and is the Microsoft public site for publishing audit reports and other compliance-related information relevant to Microsoft’s cloud</p><p>services.</p><ul><li>ISO</li><li>SOC</li><li>NIST</li><li>FedRAMP</li><li>GDPR</li></ul><p><strong>Microsoft Privacy</strong></p><p><strong>Statement </strong>explains what personal data Microsoft processes, how Microsoft processes it, and for what purposes.</p><p><strong>Microsoft Trust</strong></p><p><strong>Center </strong>is a website resource containing information and details about how Microsoft implements and supports security</p><p>, Privacy</p><p>, compliance, and transparency in all Microsoft cloud</p><p>products and services.</p><ul><li>In-depth information about security</li><li>, Privacy</li><li>, compliance offerings, policies, features, and practices across Microsoft cloud</li><li>products.</li><li>Recommended resources in the form of a curated list of the most applicable and widely used resources for each topic.</li><li>Information specific to key</li><li>organizational roles, including business managers, tenant admins or data security</li><li>teams, risk assessment and Privacy</li><li>officers, and legal compliance teams.</li><li>Cross-company document search, which is coming soon and will enable existing cloud</li><li>service customers to search the Service Trust</li><li>Portal.</li><li>Direct guidance and support for when you can’t find what you’re looking for.</li></ul><p><strong>Compliance Manager</strong> is a workflow-based risk assessment dashboard within the Trust</p><p>Portal that enables you to track, assign, and verify your organization’s regulatory compliance activities related to Microsoft professional services and Microsoft cloud</p><p>services such as Microsoft 365, Dynamics 365, and Azure.</p><p>Compliance Manager provides the following features:</p><ul><li>Detailed information provided by Microsoft to auditors and regulators (ISO 27001, ISO 27018, and NIST).</li><li>Compliance with regulations (HIPAA).</li><li>An organization’s self-assessment on compliance with these standards and regulations.</li><li>Enables you to assign, track, and record compliance and assessment-related activities</li><li>Provides a Compliance Score to help you track your progress and prioritize auditing</li><li>Provides a secure repository in which to upload and manage evidence and other artifacts</li><li>Produces richly detailed reports which can be provided to auditors and regulators</li></ul><p><strong>Special Azure regions</strong> exist for compliance and legal reasons. These regions are not generally available, and you have to apply to Microsoft if you want to use one of these special regions.</p><ul><li>US</li><li>Gov regions support US government agencies (US Gov Virginia and US Gov Iowa)</li><li>China</li><li>special regions. China East, China North. (Partnership with 21Vianet)</li><li>Germany</li><li>regions. Germany Central and German Northeast. (compliant with German data laws)</li></ul><p>There are two types of subscription boundaries that you can use, including:</p><p><strong>Azure subscriptions</strong> provide you with authenticated and authorized access to Azure products and services and allows you to provision resources. An Azure subscription is a logical unit of Azure services that links to an Azure account, which is an identity in Azure Active Directory (Azure AD) or in a directory that an Azure AD trusts</p><p>.</p><p>An account can have one subscription or multiple subscriptions that have different billing models and to which you apply different access-management policies.</p><ul><li><strong>Billing boundary</strong>. This subscription type determines how an Azure account is billed for using Azure.</li><li><strong>Access control boundary</strong>. Azure will apply access-management policies at the subscription level, and you can create separate subscriptions to reflect different organizational structures. An example is that within a business, you have different departments to which you apply distinct Azure subscription policies.</li></ul><p>The organizing structure for resources in Azure has four levels: <strong>management groups</strong>, <strong>subscriptions</strong>, <strong>resource groups</strong>, and <strong>resources</strong>. The following image shows the relationship of these levels i.e. the hierarchy of organization for the various objects</p><p><strong>Management groups</strong>:</p><p>Allow you to apply governance conditions (access &amp; policies) a level of scope above subscriptions</p><p>These are containers that help you manage access, policy, and compliance for multiple subscriptions. The resources and subscriptions assigned to a management group automatically inherit the conditions applied to the management group.</p><p>Azure offers three main types of <strong>subscriptions</strong>:</p><ul><li><strong>A free account</strong></li><li><strong>Pay-As-You-Go</strong></li><li><strong>Member offers</strong></li></ul><p>There are three main <strong>customer types</strong> on which the available purchasing options for Azure products and services is contingent, including:</p><ul><li><strong>Enterprise</strong></li><li><strong>Web</strong></li><li><strong>direct</strong></li><li><strong>Cloud</strong></li><li><strong>Solution Provider</strong></li></ul><p><strong>Options for purchasing Azure products and services</strong></p><ul><li>Pay-As-You-Go Subscriptions</li><li>Open Licensing</li><li>Enterprise Agreements</li><li>Purchase Directly through a Cloud</li><li>Solution Provider (CSP)</li></ul><p><strong>Azure free account</strong></p><p>The Azure free account includes free access to popular Azure products for 12 months, a credit to spend for the first 30 days, and access to more than 25 products that are always free.</p><p><strong>Factors affecting costs</strong></p><p><strong>Resource type:</strong></p><p>When you provision an Azure resource i.e. Compute</p><p>, Storage</p><p>, and Networking, Azure creates one or more-meter instances for that resource. The meters track the resources’ usage, and each meter generates a usage record that is used to calculate your bill.</p><p><strong>Services: </strong>Azure usage rates and billing periods can differ between Enterprise, Web</p><p>Direct, and Cloud</p><p>Solution Provider (CSP) customers.</p><p><strong>Location:</strong></p><p>The Azure infrastructure is globally distributed, and usage costs</p><p>might vary between locations that offer Azure products, services, and resources.</p><p>All inbound or ingress data transfers to Azure data centers from on-premises environments are free. However, outbound data transfers (except in few cases like backup recovery) incur charges</p><p><strong>Zones for billing purposes</strong></p><p>A Zone is a geographical grouping of Azure Regions for billing purposes. the following Zones exist and include the sample regions as listed below:</p><ul><li><strong>Zone 1</strong> — West US, East US</li><li>,Canada West</li><li>,West Europe</li><li>,France Central</li><li>and others</li><li><strong>Zone 2</strong> — Australia Central</li><li>, Japan West</li><li>, Central India</li><li>, Korea South</li><li>and others</li><li><strong>Zone 3</strong> — Brazil South</li><li><strong>DE Zone 1</strong> — Germany Central, Germany Northeast</li></ul><p><strong>Pricing Calculator</strong></p><p>The <strong>Pricing Calculator</strong></p><p>is a tool that helps you estimate the cost of Azure products. It displays Azure products in categories, and you choose the Azure products you need and configure them according to your specific requirements. Azure then provides a detailed estimate of the costs</p><p>associated with your selections and configurations.</p><p><strong>Total Cost of Ownership Calculator</strong></p><p>The Total Cost of Ownership Calculator is a tool that you use to estimate cost savings you can realize by migrating to Azure. To use the TCO calculator, complete the three steps that the following sections explain.</p><ol><li>Define your workloads</li><li>Adjust assumptions</li><li>View the report</li></ol><p><strong>Best Practices for Minimizing Azure Costs</strong></p><ul><li>Shut down unused resources</li><li>Right-size underused resources</li><li>Configure autoscaling</li><li>Reserved instances pre‑pay for resources at a discounted rate.</li><li>Azure cost management provides a set of tools</li><li>for monitoring</li><li>, allocating, and optimizing your Azure costs</li><li>. The main features of the Azure Cost Management toolset include:</li><li>Reporting</li><li>Data enrichment</li><li>Budgets</li><li>Alerting</li><li>Recommendations</li><li>Price</li><li><strong>Quotas.</strong> place around the resources and the amount of resources that you’re using.</li><li><strong>Spending limits</strong> as your approaching that spending limit, you won’t be able to deploy more resources and not going to go over a <strong>budget</strong>.</li><li><strong>Azure Hybrid Benefit </strong>Migrate your workloads to Azure, the best cloud</li><li>for Windows Server and SQL Server</li><li><strong>Tags</strong></li><li>when deploying resources in Azure, you will want to tag your resources. You can use this to identify resources for chargeback in your organization.</li></ul><p><strong>SLAs for Azure products or services</strong></p><p>An SLA defines performance targets for an Azure product or service. The performance targets that an SLA defines are specific to each Azure product and service.</p><ul><li>SLAs describe Microsoft’s commitment to providing Azure customers with certain performance standards.</li><li>There are SLAs for individual Azure products and services.</li><li>SLAs also specify what happens if a service or product fails to perform to a governing SLA’s specification.</li></ul><h4>Service Credits</h4><p>SLAs also describe how Microsoft will respond if an Azure product or service fails to perform to its governing SLA’s specification.</p><p><strong>Application SLA</strong></p><p>Azure customers can use SLAs to evaluate how their Azure solutions meet their business requirements and the needs of their clients and users. By creating your own SLAs, you can set performance targets to suit your specific Azure application. When creating an <strong>Application SLA</strong> consider the following:</p><ul><li>Identify workloads.</li><li>Plan for usage patterns.</li><li>Establish availability metrics</li><li>Establish recovery metrics</li><li>Implement resiliency strategies.</li><li>Build availability requirements into your design.</li></ul><p><strong>Composite SLA</strong></p><p>When combining SLAs across different service offerings, the resultant SLA is a called a <em>Composite SLA</em>. The resulting composite SLA can provide higher or lower uptime</p><p>values, depending on your application architecture.</p><h4>Service lifecycle in Azure</h4><p>Microsoft offers previews of Azure services, features, and functionality for evaluation purposes. With <em>Azure Previews</em>, you can test pre-release features, products, services, software, and even regions.</p><p>There are two categories of preview that are available:</p><ul><li><strong>Private preview</strong> — An Azure feature is available to <em>certain</em> Azure customers for evaluation purposes.</li><li><strong>Public preview</strong> — An Azure feature is available to <em>all</em> Azure customers for evaluation purposes.</li></ul><p><strong>General availability</strong></p><p>Once a feature is evaluated and tested successfully, the feature may be made available for all Azure customers. A feature released to all Azure customers typically goes to <em>General Availability</em> or <em>GA</em>.</p><p>The <a href="https://azure.microsoft.com/updates">Azure updates </a>page provides the latest updates to Azure products, services, and features, as well as product roadmaps and announcements.</p><p><em>“On the road again…I just can’t wait to get on the road again”</em></p><p>Thanks –</p><p>–MCS<em>Originally published at </em><a href="https://sqlsquirrels.com/2020/09/04/week-of-september-4th/"><em>https://sqlsquirrels.com</em></a><em> on September 5, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=642e05d55229" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week of August 28th | SQL Squirrels]]></title>
            <link>https://ms4446.medium.com/week-of-august-28th-sql-squirrels-bd2b0654fb72?source=rss-bc079425cf0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd2b0654fb72</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws-cloud]]></category>
            <category><![CDATA[aws-cloud-practitioner]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Mark Shay]]></dc:creator>
            <pubDate>Sat, 29 Aug 2020 03:50:46 GMT</pubDate>
            <atom:updated>2020-08-29T16:11:25.361Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1qvyPv2iIG1o7p12kVMySw.jpeg" /></figure><p><strong><em>Taking care of business (every way)</em></strong></p><p>Happy National Bow Tie 🎀Day!</p><p>So last week, we dusted ourselves off, climbed 🧗‍♂️ back up on our horse 🐎, and reconvened with our continuous learning adventures. To get ourselves warmed🔥 up we decided to renew our knowledge with <a href="https://sqlsquirrels.com/2020/08/21/week-of-august-21st/">PowerShell</a> ⚡️🐚 but we still had some unfinished business to attend too. If you have been following our travels 🚀, you might remember earlier this month we hit a <a href="https://sqlsquirrels.com/2020/08/07/week-of-august-7th/">bump in the road</a>. But just like the armless Black Knight 🛡🗡 from <a href="https://www.imdb.com/title/tt0071853/">Monty Python and the Holy Grail</a> it was just a mere “flesh wound”. Ok, perhaps not. Actually, at the time 🕰️ it stung 🐝 pretty bad 😞 but after a two-week investigation by the good folks at AWS ☁️ it was deemed that my test on the 4 thof August had indeed got corrupted. They offered their sincere apology for the inconvenience and more importantly provided me a voucher so I can reschedule the <a href="https://aws.amazon.com/certification/certified-cloud-practitioner/">AWS Cloud Practitioner Exam</a> at no cost. Well, this week I decided to re-take the exam 📝 and I am happy 😊 to report I passed the exam 📝 without issue.</p><p>To help prepare for the exam📝 I purchased the <a href="https://www.udemy.com/course/aws-certified-cloud-practitioner-practice-exams-c/">Udemy — AWS Certified Cloud Practitioner 500 Practice Exam Questions</a>. There were some similar questions taken from this course’s practice tests but it seems AWS☁️ likes to keep their certified professionals honest. So there were quite a few questions I have never seen before.</p><p>So it’s highly recommend that in addition to gaining practical experience working with AWS that you also <a href="https://sqlsquirrels.com/2020/07/31/week-of-july-31st/">review there courseware</a> and fully understand the core concepts like the <a href="https://aws.amazon.com/blogs/apn/the-5-pillars-of-the-aws-well-architected-framework/">AWS Well-Architected Framework</a> and have a good basic understanding of many of the <a href="https://aws.amazon.com/products/">AWS Products and services</a></p><p>Despite the obstacle earlier this month, it was good experience preparing for the exam and ultimately passing and getting the certification. Now, we are even more well reversed in the cloud ☁️ and have street cloud ☁️ credit to back it up. 😎</p><p><em>“And I’m on my way… I don’t know where I’m going </em>🤷🏻‍♂️ <em>… I’m on my way… I’m taking my time </em>⏳ <em>… But I don’t know where?”</em></p><p>Below are some areas I am considering for my travels next week:</p><p>Thanks -</p><p>-MCS</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*Yj75ZJEKr3VYenYqVuBo_Q.png" /></figure><p><em>Originally published at </em><a href="https://sqlsquirrels.com/2020/08/28/week-of-august-28th/"><em>https://sqlsquirrels.com</em></a><em> on August 28, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd2b0654fb72" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week of August 21st | SQL Squirrels]]></title>
            <link>https://ms4446.medium.com/week-of-august-21st-sql-squirrels-472ec59676e3?source=rss-bc079425cf0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/472ec59676e3</guid>
            <category><![CDATA[sql-server]]></category>
            <category><![CDATA[powershell]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Mark Shay]]></dc:creator>
            <pubDate>Sat, 22 Aug 2020 16:06:51 GMT</pubDate>
            <atom:updated>2020-08-22T16:27:28.032Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xcDZHBNwSRSXxgfksh67KA.jpeg" /></figure><p>Happy Poet’s 📜 Day!</p><p><em>“I’ve been too long, I’m glad to be back”</em></p><p>So, after a 2-week hiatus we are glad to be back and all powered⚡️up and ready to get back on our continuous journey ✈️in learning. In our most recent learning, we have spent time🕰️ in the clouds ☁️☁️ (in particular AWS) so we thought we might circle⭕ back to an oldie but goodie with PowerShell⚡️🐚. Why PowerShell⚡️🐚 you might ask? That’s seems so yesterday. However, it’s still very much still today. Microsoft has been very much committed to PowerShell⚡️🐚 especially in regards to managing Windows. Every application from Exchange to SQL to Active Directory is built with PowerShell⚡️🐚 as a basis for the administration. In addition, Cloud ☁️ solutions such as Office 365 and Azure integrate with PowerShell⚡️🐚.</p><p>When we first started with PowerShell⚡️🐚 around circa ~2012 with version 3 and then of course with version 4 which debuted just a year later it was all the rage. Just a quick a review for those not familiar with PowerShell⚡️🐚. PowerShell⚡️🐚 is a management framework that combines a command-line shell 🐚 and scripting language allowing IT professionals🧑‍💻the ability to perform real‑world tasks such as gathering remote computer 🖥️ information, automate repetitive tasks, and troubleshooting system problems. Initially, PowerShell⚡️🐚 was built for Windows only running🏃‍♂️ on top of the Windows .NET Framework but in 2016 Microsoft made the strategic decision and pivoted to offer PowerShell⚡️🐚 as Open Source through PowerShell⚡️🐚 Core running🏃‍♂️ on top of course .NET Core which is an open source framework that runs 🏃 on Linux🐧, macOS🍎 and Windows .</p><p>So where shall we begin? In the past, we have found when reviewing a familiar technology solution that the best place to start is with the basics and we found the perfect course on Pluralsight through <a href="https://www.itsallgeek2mike.com/about/">Michael Bender’s</a> <a href="https://app.pluralsight.com/library/courses/PowerShell%E2%9A%A1%EF%B8%8F%F0%9F%90%9A%20-getting-started/table-of-contents">PowerShell: Getting Started</a> Michael’s excellent course provides a strong fundamental knowledge of PowerShell⚡️🐚 with a personal guarantee that upon completion of the course you will be able to <em>“hit the ground running🏃‍♂️ with usable PowerShell⚡️🐚 ninja🤺skills.”</em></p><p>In the course introduction, Michael succinctly discusses why PowerShell⚡️🐚 is more than a scripting language and a command line interface but an execution engine that provides the ability for you to interface with your environment using a variety of tools. First, he touches on the traditional <strong>Windows PowerShell </strong>console that allows us to run many different commands i.e. Get‑Service. Then he dives into <strong>PowerShell Core</strong> which pretty much lets you do much of the same things but with the flexibility to run across multiple platforms. Then he discusses the tools🔧 we can use to developed PowerShell⚡️🐚 scripts with the legacy Windows PowerShell⚡️🐚 ISE (Integrated Scripting Engine) and the newer Visual Studio Code. Next, he discusses Windows Admin Center which uses PowerShell⚡️🐚 on the back end to do all of the administration on Windows Server and also integrates with Microsoft Azure☁️.</p><p>Now after a great introduction we were ready to dive right into the PowerShell⚡️🐚 Basics. At a very basic level with PowerShell⚡️🐚 follows a <strong>Verb‑Noun</strong> syntax. In other words, you do something to something. For example, if you wanted to get information about the verbs that are available for use in PowerShell⚡️🐚. You would use a cmdlet called “Get‑Verb”. Another important piece to PowerShell⚡️🐚 commands is parameter(s). Parameters are used to pass information into PowerShell⚡️🐚 commands so that we have information that we can use for the command to use to do its work.</p><p>Ex: Get‑Service <strong>ComputerName</strong></p><p>Next, Michael introduces us to three of the most important commands that everyone should know which of course is Get‑Command, Get‑Help, and Get‑Member. These commands are so significant because they allow you to find the answers you need to work within PowerShell⚡️🐚. So, there is no need to Google or Bing to find the right syntax. Everything is right there in the console. Also, it’s really the best way to learn how to do something within PowerShell⚡️🐚.</p><p>· <strong>Get‑Command </strong>is used to search for the installed commands within PowerShell⚡️🐚.</p><p>· <strong>Get‑Help </strong>allows us to see how we use a specific command that we found so it displays the help information.</p><p>· <strong>Get‑Member </strong>allows us to get the properties and methods of objects that are the output of a specific command</p><p>PowerShell⚡️🐚 is an object‑oriented language. Unlike other scripting languages that rely on syntax to get things done, PowerShell⚡️🐚 uses objects as its output and objects have properties that make them up and they have methods that you can perform actions against them. The best way to visualize objects in PowerShell⚡️🐚 is to view the data in a table format. PowerShell⚡️🐚 places all of the data from commands into a collection or a table to store that data.</p><p>Next, we took a deep dive with pipeline in PowerShell⚡️🐚 which is really where the real power in PowerShell⚡️🐚 comes in. PowerShell⚡️🐚 treats all data as objects that can be used to their full potential in PowerShell⚡️🐚. So pipelining PowerShell⚡️🐚 is a way to send the output of one command into a second command, and this allows you to do more complex work like sort or filter something, and then from that output, we can do something.</p><p>Ex: Get-Service <strong>|</strong> where {$_.Status -eq “Stopped”}</p><p>Then the course further discusses one of the most common use cases for PowerShell⚡️🐚 which is gathering system information. In PowerShell⚡️🐚 there several options. The first option is Windows Management Instrumentation (WMI). <strong>WMI</strong> is based on the Common Information Model, an open standard that defines how managed elements in an IT environment are represented as a common set of objects, as well as the relationship between them. The second option is CIM. <strong>CIM</strong> was originally introduced in PowerShell⚡️🐚 v3 to work with WMI. CIM cmdlets are now the de facto standard and the WMI cmdlets are now considered legacy as there has been no recent development or enhancements to WMI. When WMI Cmdlets are being called information is accessed through namespaces in the WMI repository. CIM is namespace that for the specifics classes that we’re looking for. An example of a classes is <strong>Win32_Processor</strong> which contains information like device ID and name for our processors. This information is stored as properties that are accessible from the objects output by the command.</p><p>Now that we are comfortable using PowerShell⚡️🐚 on local systems, Michael now discusses how we can use PowerShell⚡️🐚 to connect remote systems which is generally how PowerShell⚡️🐚 is used as much of our troubleshooting and problem resolution happens remotely. PowerShell⚡️🐚 has a few options for remoting, WMI and Windows Remote management (WinRM). <strong>WinRM</strong> is a Web Service for Management Protocol (WS Man) which allows users to run power show commands on remote computers 🖥️. Both options are available on Windows PowerShell and PowerShell Core. PowerShell⚡️🐚 remoting allows you to send commands to a remote machine on your network. WinRM is responsible for maintaining the connections between these two systems. The computers 🖥️ you want to connect to need must have listener set up so that WinRM knows to listen for the power shell connections. By default, Windows clients don’t have PowerShell⚡️🐚 remoting turned on. So, it must be enabled if you plan to use PowerShell⚡️🐚 for remote Administration.</p><p><a href="https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/enable-psremoting?view=powershell-7">Enable-PSRemoting</a> needs to be enabled on the target machine</p><p>Next, you need to give the user access to PowerShell⚡️🐚 remoting <a href="https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/enter-pssession?view=powershell-7">Enter-PSSession</a></p><p>This allows you to modify the session permissions and this will allow the remote connection to happen for PowerShell core. You need to set up the remote system to be an endpoint for power shell connections. This is done by installing a script located in the PS Home Directory</p><p>To put the finishing touches on this excellent introductory course Michael walks us through on how to Build a User Inventory Script with PowerShell⚡️🐚</p><p>By default, PowerShell⚡️🐚 ‘s <strong>execution policy</strong> is set to <strong>Restricted</strong>; which means that scripts will not run.</p><p>The <a href="https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-7"><strong>Set-ExecutionPolicy</strong></a>cmdlet enables you to determine which Windows PowerShell⚡️🐚 scripts will be allowed to run on your computer.</p><p>Windows PowerShell⚡️🐚 has four different execution policies:</p><ul><li><strong>Restricted </strong>— No scripts can be run. Windows PowerShell⚡️🐚 can be used only in interactive mode.</li><li><strong>AllSigned </strong>— Only scripts signed by a trusted publisher can be run.</li><li><strong>RemoteSigned </strong>— Downloaded scripts must be signed by a trusted publisher before they can be run.</li><li><strong>Unrestricted </strong>— No restrictions; all scripts can be run.</li></ul><p>After completing this amazing course, we are now armed with foundational knowledge on how to use PowerShell⚡️🐚. So, we decided to continue our review of PowerShell⚡️🐚 and how we can utilize it with SQL Server to perform common DBA and Developer tasks. Once again, we turned to Pluralsight through SQL Server MVP <a href="https://arcanecode.com/info/">Robert C. Cain</a> fantastic course on <a href="https://app.pluralsight.com/library/courses/powershell-and-sql-server/table-of-contents">PowerShell and SQL Server</a></p><p>Robert’s course provides the fundamentals of using PowerShell⚡️🐚 to manage SQL Servers. The course is designed as a six-part series covering basic DBA Tasks using just PowerShell⚡️🐚, an introduction to SQL Management Objects (SMO) and the SQL Provider, Basic DBA tasks using both SMO and SQL Provider, Development using SQL Provider, Development using SMO, and Real-World🌎 Examples, SQL PS, PowerShell⚡️🐚 Jobs</p><p>After providing us with a simple PowerShell⚡️🐚 email function “ <a href="https://sqlsquirrels.com/wp-content/uploads/2020/08/01_DBA_with_PowerShell.ps1_.docx">Send Easy Mail</a>” that can be used with SQL Server notifications or alerts we take a look how to manage the SQL Server <strong>Services</strong> which we obviously find status of their services through “Get-Service” cmdlet. When using the Get-Service cmdlet you need to pass in several parameters.</p><p>Get-service -ComputerName $server | where {($_.name -like “MSSQL$*” -or $_.name -like “MSSQLSERVER” -or $_.name -like “SQL Server (*”)}</p><p>Next, we took a look at counters. As Database professionals many of us keep a customized list of counters to monitor our database environment. PowerShell⚡️🐚 makes it extremely easy to get counter information using the Get-Counter cmdlet.</p><p>A great example on we can use counters with PowerShell⚡️🐚 can be found on <a href="https://www.mssqltips.com/sqlservertip/5592/monitor-performance-counters-using-PowerShell-in-sql-server-agent-job-step/">MSSQL Tips</a>. WMI which we learned earlier stands for Windows Management Instrumentation. WMI and PowerShell⚡️🐚 can be used for a common task like monitoring how much disk space you have available on the system.</p><p>Another great example can be found on <a href="https://www.mssqltips.com/sqlservertip/3109/monitor-sql-server-disk-space-using-PowerShell/">MSSQL Tips</a></p><p>PowerShell⚡️🐚 also makes it very easy to get information out of the event log using Get-EventLog.</p><p>See <a href="https://www.mssqltips.com/sqlservertip/2911/using-PowerShell%E2%9A%A1%EF%B8%8F%F0%9F%90%9A%20-to-access-event-logs-for-sql-server/">MSSQL Tips</a></p><p>Next, Robert introduces us to SQL Provider and the SQL Management Object (SMO). In order to use SMO effectively you will need to have a basic understanding of objects most of which received during <a href="https://app.pluralsight.com/library/courses/powershell-getting-started/table-of-contents">Michael’s course</a></p><p>Just to briefly review, objects are based on classes, classes are generally referred to as the blueprint for creating an object. In PowerShell⚡️🐚, you would have instantiated an instance of that class. Instantiation refers to the process of creating a single object from the class. An instance in object terms refers to that particular object which you just instantiated. As we know, objects have properties. These properties hold information about the current state of an object. Objects can also have methods and method is similar to how stored procedure works. In other words, it will only work inside of its current database. Whenever you organize a group of objects together it’s known as a collection. For example, a database object would have a collection of table objects. Another important concept to grasp is objects can contain other objects and collections.</p><p><strong>SMO</strong> is a set of. NET libraries specifically designed for working with SQL Server. These libraries stored in. NET DLLs are loaded with classes. From these classes you can create objects that parallel things in SQL Server.</p><p>The <strong>SQL Provider</strong> is a PSSnapin which is a compiled module written PowerShell⚡️🐚. The SQL Provider PSSnapin is collection of cmdlets specific to SQL Server.</p><p>By default, neither the SQL Provider or the SMO libraries are loaded them into PowerShell⚡️🐚. So, they need to be added manually by executing the following syntax:</p><p>Install-Module -Name SqlServer</p><p>or</p><p>Install-Module -Name SqlServer -AllowClobber</p><p>As a basic example, we can use SQL Provider to connect to a SQL Server its quite easy to find what instances are on that server. We can use Get-ChildItem cmdlet to return the instance information and then put that into an array. Then we can utilize the foreach and for each object in these instances that’s returned so we can do our work against each child name contained in our instances array. SMO is a. NET library that Microsoft designed for working with SQL Server. At the very core of SMO everything is a server object and an object is something as it exists. For example, a server object has a corresponding server associated with it. Each server has things on it such as backup devices, credentials and databases, etc. In addition to objects SMO has collections which are basically an array of objects. The SMO model considers each instance to be an individual server. Because SMO starts at the instance level, there’s no really good way using SMO to go out and query all of your machines and find out what instances you’re running🏃‍♂️. However, we can use ADO. NET to get all our servers we want to manage.</p><p>After covering SQL Provider and SMO, Robert then show us through his <a href="https://sqlsquirrels.com/wp-content/uploads/2020/08/03_DBA_with_SMO_and_SQL_Provider.ps1_.doc.docx">custom script</a> how we can use SQL Provider and SMO to perform tasks a DBA might do. Next, we looked at the relationship between SMO and the SQL Provider.</p><p>After performing DBA tasks with SQL Provider and SMO, we learned how to develop against SQL Server using just the SQL Provider. <a href="https://sqlsquirrels.com/wp-content/uploads/2020/08/04_Dev_with_SQL_Provider.ps1_.docx">See Scripts</a></p><p>Next, we were provided the challenge of doing the same tasks in the previous module like creating databases but this time🕰️ using SMO. <a href="https://sqlsquirrels.com/wp-content/uploads/2020/08/05_Dev_with_SMO.ps1_.docx">See Scripts</a></p><p>Finally, as we wrapped up Robert’s excellent series, we were provided real world example of using PowerShell⚡️🐚. Our mission was to find tables that contain Text, end text and image data types. <a href="https://sqlsquirrels.com/wp-content/uploads/2020/08/06_Real_World_Examples.ps1_.docx">See Scripts</a></p><p>As encore, the course covers SQLPS. SQLPS is a special customized shell just for working with SQL Server. It was initially written between PowerShell⚡️🐚 v1 and PowerShell⚡️🐚 v2, so it’s bit of amalgamation. It most cases SQLPS should be avoided as it not the full PowerShell⚡️🐚 environment and especially should be avoided for SQL Server Agent Scheduled jobs as you should call to the full shell when executing SQL Server Scheduled Jobs. We really enjoyed our time🕰️ re-learning PowerShell⚡️🐚 and are glad to be back on our learning Journey.</p><p><em>“The Magical Mystery Tour Is coming to take you away… Coming to take you away”</em></p><p>Thanks -</p><p>-MCS</p><p><em>Originally published at </em><a href="https://sqlsquirrels.com/2020/08/22/week-of-august-21st/"><em>https://sqlsquirrels.com</em></a><em> on August 22, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=472ec59676e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>