AZ 104 Notes PDF Neeraj
AZ 104 Notes PDF Neeraj
• ADDS vs Azure AD • Configure VNet Peering • Configure Azure App Service Plans
• Azure AD licensing • Configure VPN Gateway ○ Implement Azure App Service Plans
• Device Identities • Configure ExpressRoute and Virtual WAN ○ Determine App Service Plan Pricing
• SSPR • Lab 05 - Implement Intersite Connectivity ○ Scale Up and Scale Out the App Service
• Users & Groups Plan
• Lab 01 – Manage Azure Active ○ Configure App Service Plan Scaling
Directory Identities • Configure Azure App Services
Module-02> Governance & Compliance Module-06> Network Traffic Management Module-09> Containers, AKS
• Subscriptions • Configure Network Routing and Endpoints • Configure Containers
• Policy UDR, Service Endpoints, Private link • Configure Azure Kubernetes Service
• RBAC • Azure Load Balancer • Lab 09a - Implement Web Apps
• Lab 02a - Manage Subscriptions and • Azure Application Gateway • Lab 09b - Implement Azure Container
RBAC • Network Watcher Instances
• Lab 02b - Manage Governance via • Lab 06 – Implement Traffic Management • Lab 09c - Implement Azure Kubernetes
Azure Policy Service (optional)
NOTES Page 1
01- Administer Identity
Sunday, May 8, 2022 10:38 PM
An identity and access management service that helps you access internal and external resources.
Connections to Azure AD
Components of Azure AD
NOTES Page 2
Hybrid Identity
Azure AD Vs ADDS
NOTES Page 3
Provisioning: Organizations create external users manually as regular Azure AD provides a special class of identity to support external identities. Azure AD B2B will
external users in a dedicated external AD forest, resulting in manage the link to the external user identity to make sure they are valid.
identities administration overhead to manage the lifecycle of
external identities (guest users)
Entitlement Administrators make users members of groups. App Groups are also available in Azure AD and administrators can also use groups to grant
management and resource owners then give groups access to apps permissions to resources. In Azure AD, administrators can assign membership to groups
and groups or resources. manually or use a query to dynamically include users to a group.
Administrators can use Entitlement management in Azure AD to give users access to a
collection of apps and resources using workflows and, if necessary, time-based criteria.
Admin Organizations will use a combination of domains, Azure AD provides built-in roles with its Azure AD role-based access control (Azure AD
management organizational units, and groups in AD to delegate RBAC) system, with limited support for creating custom roles to delegate privileged access
administrative rights to manage the directory and to the identity system, the apps, and resources it controls.
resources it controls. Managing roles can be enhanced with Privileged Identity Management (PIM) to provide just-
in-time, time-restricted, or workflow-based access to privileged roles.
Credential Credentials in Active Directory are based on passwords, Azure AD uses intelligent password protection for cloud and on-premises. Protection
management certificate authentication, and smartcard authentication. includes smart lockout plus blocking common and custom password phrases and
Passwords are managed using password policies that substitutions.
are based on password length, expiry, and complexity. Azure AD significantly boosts security through Multi-factor
authentication and passwordless technologies, like FIDO2.
Azure AD reduces support costs by providing users a self-service password reset system.
Apps
Infrastructure Active Directory forms the basis for many infrastructure In a new cloud world, Azure AD, is the new control plane for accessing apps versus relying
apps on-premises components, for example, DNS, DHCP, on networking controls. When users authenticate, Conditional access (CA), will control which
IPSec, WiFi, NPS, and VPN access users, will have access to which apps under required conditions.
Traditional and Most on-premises apps use LDAP, Windows-Integrated Azure AD can provide access to these types of on-premises apps using Azure AD application
legacy apps Authentication (NTLM and Kerberos), or Header-based proxy agents running on-premises. Using this method Azure AD can authenticate Active
authentication to control access to users. Directory users on-premises using Kerberos while you migrate or need to coexist with legacy
apps.
SaaS apps Active Directory doesn't support SaaS apps natively and SaaS apps supporting OAuth2, SAML, and WS-* authentication can be integrated to use
requires federation system, such as AD FS. Azure AD for authentication.
Line of business Organizations can use AD FS with Active Directory to LOB apps requiring modern authentication can be configured to use Azure AD for
(LOB) apps with support LOB apps requiring modern authentication. authentication.
modern
authentication
Mid-tier/Daemon Services running in on-premises environments normally Azure AD provides managed identities to run other workloads in the cloud. The lifecycle of
services use AD service accounts or group Managed Service these identities is managed by Azure AD and is tied to the resource provider and it can't be
Accounts (gMSA) to run. These apps will then inherit used for other purposes to gain backdoor access.
the permissions of the service account.
Devices
Mobile Active Directory doesn't natively support mobile Microsoft’s mobile device management solution, Microsoft Intune, is integrated with Azure
devices without third-party solutions. AD. Microsoft Intune provides device state information to the identity system to evaluate
during authentication.
Windows Active Directory provides the ability to domain join Windows devices can be joined to Azure AD. Conditional access can check if a device is
desktops Windows devices to manage them using Group Policy, Azure AD joined as part of the authentication process. Windows devices can also be
System Center Configuration Manager, or other third- managed with Microsoft Intune. In this case, conditional access, will consider whether a
party solutions. device is compliant (for example, up-to-date security patches and virus signatures) before
allowing access to the apps.
Windows servers Active Directory provides strong management Windows servers virtual machines in Azure can be managed with Azure AD Domain
capabilities for on-premises Windows servers using Services. Managed identities can be used when VMs need access to the identity system
Group Policy or other management solutions. directory or resources.
Linux/Unix Active Directory doesn't natively support non-Windows Linux/Unix VMs can use managed identities to access the identity system or resources. Some
workloads without third-party solutions, although Linux machines organizations, migrate these workloads to cloud container technologies, which can also use
can be configured to authenticate with Active Directory managed identities.
as a Kerberos realm.
Azure AD Terms
Identity
Azure AD Tenant/Directory
An object that can be authenticated
Azure AD Concepts
Account
NOTES Page 4
subscription
Azure AD Concepts
Account
Azure AD Account
Feature name Azure Active Office 365 Azure Active Directory Azure Active Directory
Directory Free Premium P1 Premium P2
Authentication, single sign-on and multifactor authentication This feature is partially This feature is partially included included
included included
(MFA)
Applications Access This feature is partially This feature is partially included included
included included
Cloud app discovery (Microsoft Defender for Cloud Apps)7 not included not included included included
Application Proxy for on-premises, header-based, and Integrated Windows Authentication not included not included included included
Authorization and Conditional Access This feature is partially This feature is partially This feature is partially included included
included included
Session lifetime management Learn more not included not included included included
Administration and hybrid identity This feature is partially This feature is partially included included
included included
Azure AD Connect Health reporting9 not included not included included included
Global password protection and management – cloud-only users included included included included
Global password protection and management – custom banned passwords, users not included not included included included
synchronized from on-premises Active Directory
Microsoft Identity Manager user client access license (CAL)10 not included not included included included
End-user self-service This feature is partially This feature is partially This feature is partially included included
included included
NOTES Page 5
Application launch portal (My Apps) included included included included
Self-service account management portal (My Account) included included included included
Self-service password change for cloud users included included included included
Self-service password reset/change/unlock with on-premises write-back not included not included included included
Self-service sign-in activity search and reporting not included included included included
Self-service group management (My Groups) not included not included included included
Self-service entitlement management (My Access) not included not included not included included
Identity Governance This feature is partially This feature is partially This feature is partially included included
included included
Automated group provisioning to apps not included not included included included
Access certifications and reviews not included not included not included included
Privileged Identity Management (PIM), just-in-time access not included not included not included included
Event logging and reporting This feature is partially This feature is partially This feature is partially included included
included included
Advanced security and usage reports not included not included included included
Identity Protection: vulnerabilities and risky accounts not included not included not included included
Identity Protection: risk events investigation, SIEM connectivity not included not included not included included
Delegated user management portal (My Staff) not included not included included included
From <https://www.microsoft.com/en-in/security/business/identity-access-management/azure-ad-pricing>
Azure AD registered devices Azure AD joined devices Hybrid Azure AD joined devices
NOTES Page 6
• • Joined only to Azure AD - organizational account required
Microsoft account • Can use Conditional Access policies authentication
• Attached to an Azure AD account • OS – Windows 10+ devices • You want to continue to use Group Policy
granting access to resources to manage the device
• Control using Mobile Device • You want to use existing image solutions
Management (MDM) tools like to deploy devices
Microsoft Intune • OS - Windows 7+ devices
• OS – Windows 10+, iOS, Android,
and MacOS
https://docs.microsoft.com/en-us/azure/active-directory/devices/concept-azure-ad-register
NOTES Page 7
SSPR Authentication Methods
NOTES Page 8
USER ACCOUNTS
GROUP ACCOUNTS
NOTES Page 9
ASSIGNMENT TYPES
License Assignment
License Operations
• View license plans and plan details
• Set the Usage Location parameter
• Assign licenses to users and groups
• Change license plans for users and groups
• Remove a license
ADMINISTRATIVE UNIT
An administrative unit is an Azure AD resource that can be a container for other Azure AD resources. An administrative unit can contain only users, groups, or devices.
Administrative units restrict permissions in a role to any portion of your organization that you define.
NOTES Page 10
Administrative units restrict permissions in a role to any portion of your organization that you define.
for example, use administrative units to delegate the Helpdesk Administrator role to regional support specialists, so they can manage users only in the region that they support.
License requirements
Using administrative units requires an Azure AD Premium P1 license for each administrative unit administrator, and an Azure AD Free license for each administrative unit member
https://docs.microsoft.com/en-us/azure/active-directory/roles/administrative-units
ARCHITECTURES
https://docs.microsoft.com/en-us/azure/architecture/reference-architectures/identity/azure-ad
NOTES Page 11
Multiple forests with AD DS and Azure AD
https://docs.microsoft.com/en-us/azure/architecture/example-scenario/wvd/multi-forest
KNOWLEDGE CHECK
NOTES Page 12
NOTES Page 13
02- Governance
Sunday, October 31, 2021 2:58 AM
Azure Subscriptions
NOTES Page 14
https://docs.microsoft.com/en-us/azure/cloud-adoption-framework/decision-guides/subscriptions/
https://azure.microsoft.com/en-in/support/legal/offer-details/
NOTES Page 15
Resource Groups
Resources with Similar lifecycles should be part of same RG- resources that are created together, updated
together & deleted together should be part of same RG.
NOTES Page 16
Naming
Resource Quotas
NOTES Page 17
Resource Quotas
Tags
Cost Management
• AHB- Azure Hybrid Benefit
• Reserved Instances
• Scheduled Stoppage of VM's during non-required hours
• Deletion of Unattached disks
• Right Sizing workloads
• Select right resources
• Right regions- Locations
• Data Transfer costs
• Optimize-Alerts, budgets & azure Advisor
NOTES Page 18
https://azure.microsoft.com/en-in/pricing/calculator/
TCO calulator
https://azure.microsoft.com/en-in/pricing/tco/calculator/
Azure Policy
https://docs.microsoft.com/en-us/powershell/module/az.resources/get-azpolicydefinition?view=azps-6.5.0
NOTES Page 19
#Get policies
Get-AzPolicyDefinition
# Get a reference to the resource group that is the scope of the assignment
$rg = Get-AzResourceGroup -Name '<resourceGroupName>'
# Create the policy assignment with the built-in definition against your resource group
New-AzPolicyAssignment -Name 'audit-vm-manageddisks' -DisplayName 'Audit VMs without managed disks Assignment' -
Scope $rg.ResourceId -PolicyDefinition $definition
NOTES Page 20
RBAC-Role Based Access Control
Role Assignment
NOTES Page 21
Knowledge Check
NOTES Page 22
NOTES Page 23
03- Azure Administration
Tuesday, May 31, 2022 3:16 PM
What Is ARM?
NOTES Page 24
Element name Required Description
$schema Yes Location of the JSON schema file that describes the
version of the template language
contentVersion Yes Version of the template
parameters No Values that are provided when deployment is
executed to customize resource deployment
variables No Values that are used as JSON fragments in the
template to simplify template language expressions
functions No Values that are used as JSON fragments in the
template to simplify template language expressions
resources Yes Resource types that are deployed or updated in a
resource group
outputs No Values that are returned after deployment
NOTES Page 25
04- Networking
Thursday, September 23, 2021 9:06 PM
Virtual Networking
Internet Remote Users
RDP.SSH
P-2-S connection
Point to site connections
EAST US
Network ELB
watcher Firewall (Azure or 3rd Party)
NSG
Web servers UDR's/ Route Network virtual VPN
10.1.0.0/24 tables appliance g/w
Security
Center IP/ID systems
Bastian host
Application
ILB Gateway
Log
analytics Site to site connection
IKEv2
128.8.8.8
Vnet 2 VNET 3
ExpressRoute Connections
Legend
Azure = AWS= GCP
NSG= SG = Firewall
Microsoft Perspective EXPRESSROUTE= Direct connect= Direct Interconnect
• Subnets are part of the address space in VNet VM= EC2= GCE
Virtual Networks
When creating a VNet, it is recommended that you use the address ranges enumerated in RFC 1918, which have been set aside by the IETF for private, non-routable address spaces:
• 10.0.0.0 - 10.255.255.255 (10/8 prefix)
• 172.16.0.0 - 172.31.255.255 (172.16/12 prefix)
• 192.168.0.0 - 192.168.255.255 (192.168/16 prefix)
Azure assigns resources in a virtual network a private IP address from the address space that you provision. For example, if you deploy a VM in a VNet with address space 10.0.0.0/16, the
VM will be assigned a private IP like 10.0.0.4. it is important to note that Azure reserves 5 IP addresses within each subnet. These are x.x.x.0-x.x.x.3 and the last address of the subnet. x.x.x.1-
x.x.x.3 is reserved in each subnet for Azure services.
• x.x.x.0: Network address
• x.x.x.1: Reserved by Azure for the default gateway
• x.x.x.2, x.x.x.3: Reserved by Azure to map the Azure DNS IPs to the VNet space
• x.x.x.255: Network broadcast address
NOTES Page 26
nslookup contoso.internal.cloudapp.net 168.63.129.16
win-10-eus-lab.neerajtech.com.
win-10-eus-lab.internal.cloudapp.net
https://docs.microsoft.com/en-us/azure/cloud-adoption-framework/ready/enterprise-scale/architecture
NOTES Page 27
NOTES Page 28
NOTES Page 29
Load Balancing
Sunday, June 5, 2022 2:01 PM
Load Balancer
NOTES Page 30
NOTES Page 31
NOTES Page 32
07- Storage-main
Saturday, May 21, 2022 6:00 PM
Azure Storage
• Object Storage
• 1 storage accounts =5.6 Petabytes storage, only pay for data being stored
• Multiple Data Replication Options
• Storage Tiering options available(Hot, Cool, Archive)
• REST API Compliant
Multiple client libraries supported-.Net, Java, PHP, Python, Ruby, NodeJS
NOTES Page 33
• Multiple client libraries supported-.Net, Java, PHP, Python, Ruby, NodeJS
Architect and optimize your internet traffic with Azure routing preference | Azure Blog and Updates | Microsoft Azure
NOTES Page 34
Network routing preference - Azure Storage | Microsoft Docs
DISK OPTIONS
TYPES OF STORAGE
Type of storage account Supported storage Redundancy options Usage
NOTES Page 35
Type of storage account Supported storage Redundancy options Usage
services
Standard general- Blob Storage Locally redundant storage Standard storage account type for blobs, file
purpose v2 (including Data Lake (LRS) / geo-redundant shares, queues, and tables. Recommended
Storage1), Queue storage (GRS) / read-access for most scenarios using Azure Storage. If
Storage, Table geo-redundant storage you want support for network file system
Storage, and Azure (RA-GRS) (NFS) in Azure Files, use the premium file
Files shares account type.
Zone-redundant storage
(ZRS) / geo-zone-
redundant storage (GZRS) /
read-access geo-zone-
redundant storage (RA-
GZRS)2
Premium block blobs3 Blob Storage LRS Premium storage account type for block
(including Data Lake blobs and append blobs. Recommended for
Storage1) ZRS2 scenarios with high transaction rates or that
use smaller objects or require consistently
low storage latency. Learn more about
example workloads.
Premium file shares3 Azure Files LRS Premium storage account type for file shares
only. Recommended for enterprise or high-
ZRS2 performance scale applications. Use this
account type if you want a storage account
that supports both Server Message Block
(SMB) and NFS file shares.
Premium page blobs3 Page blobs only LRS Premium storage account type for page
blobs only. Learn more about page blobs
and sample use cases.
From <https://docs.microsoft.com/en-us/azure/storage/common/storage-account-overview>
Replication Strategies
NOTES Page 36
• Three replicas, one region
• Protects against disk, node, rack failures
• Write is acknowledged when all replicas are committed
• Superior to dual-parity RAID
Zone-redundant storage
Geo-redundant storage
NOTES Page 37
• Recovery point objective (RPO) delay to secondary can be queried
Geo-zone-redundant storage(GZRS)
Storage Endpoints
nslookup storagedemose.blob.core.windows.net
Private Endpoint
After adding private endpoint nslookup yields private IP of the PE Network Interface Card on a VM allowed to connect to a
Storage account
NOTES Page 38
Storage account
NOTES Page 39
NOTES Page 40
NOTES Page 41
nslookup storagedemose.blob.core.windows.net
NOTES Page 42
SAS URI
FILE SYNC
NOTES Page 43
Azure File
Sync - Na...
https://docs.microsoft.com/en-us/azure/storage/file-sync/file-sync-planning
NOTES Page 44
https://docs.microsoft.com/en-us/azure/storage/file-sync/file-sync-planning
https://docs.microsoft.com/en-us/azure/architecture/hybrid/hybrid-file-services
STORAGE TOOLS
STORAGE EXPLORER
NOTES Page 45
IMPORT EXPORT SERVICE
AZCOPY
NOTES Page 46
08- COMPUTE
Saturday, May 21, 2022 7:36 PM
Virtual Machines
Containers
VM Planning
NOTES Page 47
VM Sizing
NOTES Page 48
Planning Virtual Machines
NOTES Page 49
Each Azure VM has two or more disks:
-OS disk
-Temporary disk (contents can be lost)
-Data disks (optional)
VM Connection Options-
NOTES Page 50
1> Azure Bastian
Azure Bastion provides a secure remote connection from the Azure portal to Azure virtual machines (VMs) over Transport Layer Security (TLS). Provision Azure
Bastion to the same Azure virtual network as your VMs or to a peered virtual network. Then connect to any VM on that virtual network or a peered virtual
network directly from the Azure portal.
https://docs.microsoft.com/en-us/azure/bastion/bastion-overview
NOTES Page 51
2>RDP for Window
3>SSH For Linux
Availability Set
Fault domain
• Prevent Hardware failures like limit the impact of potential physical hardware failures, network outages, or power interruptions
• 1 Rack that share common power source and network switch.
• Max= 3 FD per availability set, Default value=2
Update domain
• Max= 20 UD, Default=5
• Update domains indicate groups of virtual machines and underlying physical hardware that can be rebooted at the same time
• The order of update domains being rebooted may not proceed sequentially during planned maintenance, but only one update domain is rebooted at a
time. A rebooted update domain is given 30 minutes to recover before maintenance is initiated on a different update domain.
NOTES Page 52
https://docs.microsoft.com/en-us/azure/virtual-machines/availability-set-overview
AVAILABILITY ZONES
NOTES Page 53
Scaling
• Vertical scaling (scale up and scale down) is the process of increasing or decreasing power to a single instance of a workload; usually manual
• Horizontal scaling (scale out and scale in) is the process of increasing or decreasing the number of instances of a workload; frequently automated
VM extensions
NOTES Page 54
Desired State Configuration
configuration IISInstall
{
Node “localhost”
{
WindowsFeature IIS
{
Ensure = “Present”
Name = “Web-Server”
}
}
}
NOTES Page 55
09-Webapp
Sunday, May 22, 2022 11:00 AM
A fully managed platform (PaaS) for building, deploying, and scaling your web apps.
• Different types of App Services: Web Apps, Web Apps for Containers, and API Apps
• Automatically patches and maintains the OS and language frameworks.
• App Service can scale up or out manually or automatically.
NOTES Page 56
https://azure.microsoft.com/en-in/pricing/details/app-service/windows/
HTML Code
NOTES Page 57
09-Containers & AKS
Monday, June 13, 2022 4:05 PM
Virtual Machine
Containers
Virtual Machine:
• It runs on top of an emulating software called the hypervisor which sit between the hardware and the virtual machine.
• The hypervisor is the key to enable virtualization. It manages the sharing of physical resources into virtual machines.
• Each virtual machine runs its own guest operating system. They are less agile and have low portability than containers.
Container:
• It sits on the top of a physical server and its host operating system.
• They share a common operating system that requires care and feeding for bug fixes and patches.
• They are more agile and have high portability than virtual machines.
NOTES Page 58
6. VM uses a lot of system memory. While containers require very less memory.
7. VM is more secure. While containers are less secure.
8. VM’s are useful when we require all of OS resources to run various While containers are useful when we are required
applications. to maximise the running applications using
minimal servers.
9. Examples of VM are: Hyper-V, KVM, Xen, VMware. While examples of containers are:RancherOS,
PhotonOS, Containers by Docker.
Container Architecture
NOTES Page 59
ISSUES
NOTES Page 60
Azure Kubernetes Service
NOTES Page 61
10-Backup and Disaster Recovery
Sunday, July 3, 2022 7:40 PM
Benefits of Backup
NOTES Page 62
Microsoft Azure Recovery Services Agent
AZURE PORTAL
NOTES Page 63
Backup Virtual Machines
Restore VM's
1. On the same VM
2. On another VM
3. Restore only files
Restore VM
NOTES Page 64
Replace Existing
NOTES Page 65
File Recovery
• Backup files and folders on physical or virtual • Backup 3x per day • Files • Recovery
Windows OS services vault
Azure • Full flex for when to backups • Always requires live Azure subscription • Folders
• Locally
Backup Server
NOTES Page 66
• Locally
Backup Server
attached disk
(MABS) • Recovery granularity • No support for tape backup • Volumes
Soft Delete
NOTES Page 67
Soft delete on Storage accounts
NOTES Page 68
NOTES Page 69
11-Monitoring
Thursday, June 16, 2022 2:12 PM
NOTES Page 70
Study Links
Tuesday, May 31, 2022 11:07 AM
• Tutorial: Create a custom role for Azure resources using Azure CLI
• Tutorial: Create a custom role for Azure resources using Azure PowerShell
• Add or remove role assignments using Azure RBAC and the Azure portal
• List role assignments using Azure RBAC and the Azure portal
• Understand deny assignments for Azure resources
• Understand how multiple Azure Active Directory tenants interact
• Use the Azure Import/Export service to export data from Azure Blob storage
• Use the Azure Import/Export service to import data to Azure Blob Storage
• Get started with Storage Explorer
• Get started with AzCopy
Links Page 71
• What is Azure Files?
• Quickstart: Create and manage Azure file shares with the Azure portal
• Create an Azure file share
• Planning for an Azure File Sync deployment
• Deploy Azure File Sync
• Tutorial: Extend Windows file servers with Azure File Sync
• Quickstart: Upload, download, and list blobs with the Azure portal
• Azure Blob storage: hot, cool, and archive access tiers
Implement and manage virtual networking Create and configure VNET peering • configure private and public IP addresses, network routes, network interface, subnets, and virtual network
• Virtual network peering
• Create, change, or delete virtual network peering
• Tutorial: Connect virtual networks with virtual network peering using the Azure portal
• Configure private IP addresses for a virtual machine using the Azure portal
• Quickstart: Create a virtual network using the Azure portal
• Create, change, or delete a network interface
• Add, change, or delete a virtual network subnet
• Create, change, or delete a virtual network
Links Page 72
• Use Azure DNS to provide custom domain settings for an Azure service
• How to manage DNS Zones in the Azure portal
• Quickstart: Configure Azure DNS for name resolution using the Azure Portal
• Tutorial: Host your domain in Azure DNS
• Quickstart: Create an Azure private DNS zone using the Azure portal
Links Page 73