Sunday, October 1, 2017

[AZURE 70-534 - Cheat Sheet and Exam Notes Part-1] Design Azure Resource Manager (ARM) networking and GLOBAL Infrastructure

AZURE Data Centers Architecture

  1.  In order to check latency of data center use http://azurespeedtest.azurewebsites.net/
  2. No All the services are available in all regions and Data Centers use service availability page to verify the same. https://azure.microsoft.com/en-us/regions/services/
  3. Azure uses Blade Server in data center either in compute or storage role 
  4. 40-50 Blade server per Rack (mounting unit)
  5. Each Rack has Aggregation Switch 
  6. Some Racks have a special controller called Fabric Controller responsible for VM Life cycle management 
  7. 20 Racks together makes a Stamps or Cluster  

Azure Availability Architecture 
  1. Some region need local billing address for service subscription such as Australia
  2. Each rack works as fault domain 
  3. As a customer you need to also design for HA that means your workload must be distributed in availability Sets 

Azure Resource Manager 

  1. With ASM even a VM has a cloud service.
  2. ARM is pure IaaS, not necessarily cloud service.
  3. Deploy, manage and monitor services as a group; deploy repeatedly throughout the application life cycle; use declarative templates to define deployment; can have dependencies between resources; apply RBAC; organise logically by tagging.
  4. ASM tightly couples to cloud service – VM in subnet, in VNet, in cloud service, in region, with VIP for DNS and public IP.
  5. Choose deployment mode when provisioning resources. Limited inter-operability so choose the right model.
  6. Deploy using
    • Portal
    • PowerShell: Switch-AzureMode -Name AzureResourceManager
    • ARM REST API
    • Azure CLI: azure config mode arm
  7. Resource Manager template – JSON document – deploys and provisions all of the related resources in a single, co-ordinated operation.
  8. Tags are key-value pairs of metadata: applied to individual ARM resources or ARM RGs – up to 15 tags per Resource or RG
    RBAC – Owner, Reader or Contributor.
  9. ARM is more loosely coupled – can have multiple VIPs, NICs, etc. All in a RG (which can span regions). Attached via reference.

Azure Service Manager (ASM) vs Azure Resource Manger 

  1. Azure Service Manager (ASM )
    1. This is an old portal which provides Cloud service for Iaas Workload and few specific Paas Workload
    2. Access over the Url: https://manage.windowsazure.com
    3. which termed as V1 portal
    4. Azure Service Manager are XML driven REST API
  2. Azure Resource Manager (ARM )
    1. They are new portal provides service for all Workload of IaaS and PaaS
    2. Access over the Url: https://portal.azure.com which termed as V2 portal having Blade design Portal View
    3. Azure Service Manager are JSON driven REST API
Azure Networking Infrastructure 

Azure Static IP Address 

  1. IP Address in Azure (Private IP Address) Network are assigned sequentially based on startup order of VM
  2. Public IP address are based on region and allocated from regional pool 
  3. Non Static IP Addresses may be reclaimed during service disruption 
  4. Internal Static IP address can only be assigned via  New Portal or Power Shell 
  5. removal of static IP address automatically assign DHCP IP address but VM need to be restarted 
  6. Reserve IP Address can only be used with VM and web /worker role 
  7. IP address must be reserve before Deployment, it can`t be applied after deployment 
  8. IP address can only be reserved via Powershell 
  9. Reserve IP address are only applied to service not VM 
  10. Max 20 Reserve IP address per subscription 
  11. Each Reserve IP address has a name associated 
  12. There is special class of public IP address (Instance Public IP Address) that can be applied to instance VM or Role Instance 
  13. (Instance Public IP Address) is earlier known as (Public IP) or PIP
  14. Max 5 IL-PIP per subscription
  15. PIP is additional IP address that do not replace virtual IP address 
  16.  

Azure Access Control List ACLs 

An endpoint access control list (ACL) is a security enhancement available for your Azure deployment. An ACL provides the ability to selectively permit or deny traffic for a virtual machine endpoint. 
  1. Azure ACL (AACL)or Network ACL (NACL) are same thing 
  2. It Only applied to inbound traffic 
  3. NACL work only  IP4 addressing scheme 
  4. Up to 50 Rules per VM Endpoints 
  5. No NACL applied by default 
  6. All traffic denied by default 
  7. Each rule have unique order number (Assigned by you)  and lower number is process first 
  8. ACL are managed by Powershell (only?)
  9. All ACL config are stored in a ACL config Variables 
  10. ACL are applied to specific endpoint not whole subnet
  11. If there is no ACL – all traffic is allowed (whatever endpoints are open will allow access); 
  12. if there is one or more permit, deny all others; if there is one or more deny, allow all others; Combination of permit and deny to define a specific IP range.
  13. Network ACL affects Incoming traffic only.

Azure Network Security Groups (NSG)

A network security group (NSG) contains a list of security rules that allow or deny network traffic to resources connected to Azure Virtual Networks (VNet). NSGs can be associated to subnets, individual VMs (classic), or individual network interfaces (NIC) attached to VMs (Resource Manager)
  1. NSG has both inbound and outbound rules. Key factor are Traffic Direction , Protocol , Source /Destination address and port 
  2. Traffic must match an allow rule to pass through 
  3. Each NSG has unique name, NSG rules can be altered and changes takes effect immediately
  4. NSG can only be used in regional VMs i.e. they are regional 
  5. NACL  and NSG can not be applied on same VM instance 
  6. Now NSG are recommended way over NACL that is actually old way of access control 
  7. NSG can be applied to whole subnet 
  8. Default Tags can be used at place of actual address (eg INTERNET)
  9. Each NSG contains default rules that can not be deleted 
  10. NSGs can be assigned to a subnet or a NIC. It cannot be assigned to an entire virtual network, nor any other resource in Azure.
  11. Network Security Groups (NSGs) are attached to a VM or a subnet and act on both inbound and outbound traffic.
    • By default all inbound access is blocked inbound rules (allow inbound within VNet and from Azure LB; deny all other inbound – rules 65000/65001/65500).
    • Outbound defaults allow outbound within VNet outbound, Internet outbound (0.0.0.0/0) and deny all others – rules 65000/65001/65500.
    • Default rules can’t be edited but can be overridden with higher priority rules.
  12. Can only use Network ACLs or NSGs – not both together.
  13. VMs can have multiple NICs in different subnets – i.e. dual-homed machine.
  14. The lowest priority level is evaluated first, and the first rule that matches is the one that applies.
  15. Default NSG rule has lowest possible priority so that they can be easily overwritten 
    1. Default NSG all inbound/Ouboud connection is allowed within VNET
    2. ALL inbound load balancer traffic is allowed by default 
    3. other than VNET and LOAD_BALANCER all inbound is denied.
    4. All INTERNET outbound traffic is allowed by default  
    5. Other then VNET and INTERNET all other traffic is denied by default 
  16. NSG Association 
    1. Three Pobbible association 
      1. NSG to VM 
      2. NSG to NIC 
      3. NSG to Subnet
    2. Only one NSG per VM/NIC/Subnet
    3. Same NSG can be assigned to multiple resources 
    4. 100 NSG per Region 
    5. 200 Rule per NSG 
  17. Port 168.63.129.16 (By default allowed) must be allowed because it represent
    1. Azure DHCP Relay , 
    2. DNS Resolver, 
    3. Load Balancer , 
    4. VM Health Probe   
  18. Outbound TCP/UDP 1688 must be open (By default allowed)  because it KMS server to renew licencees  
  19. NSG is created via Powershell

Azure NSG vs ACL (NACL)

NSG
ACL
Control all inbound and outbound traffic to VM
Works only for inbound traffic exposed via an endpoint
Works on one or more VM instances
Works on Endpoint applied to VM
More Detailed
You can specify Source / Destination IP/Port and protocol
Port and  protocol are defined by end point

User-defined routes (UDR)

By default system routes facilitates traffic automatically for your deployment but there are cases in which you want to control the routing of packets through a virtual appliance. 
here is some key notes  
  1. Most Common Use-cases 
    1. Monitoring traffic with an intrusion detection system (IDS)
    2. Controlling traffic with a firewall
  2. User-defined routes are applied to traffic leaving a subnet from any resource (such as network interfaces attached to VMs) in the subnet. 
  3. You cannot create routes to specify how traffic enters a subnet from the Internet, for instance. 
  4. The appliance you are forwarding traffic to cannot be in the same subnet where the traffic originates. Always create a separate subnet for your appliances.
  5. User defined routes are only applied to Azure VMs and cloud services. 

Azure VM (IAAS VM)

  1. Virtual machines per cloud service1(ASM Model) 50/50 (Default /Max)
  2. Input endpoints per cloud service2 (ASM Model) 150/150 (Default /Max)
  3. Virtual machines per availability set 200 
  4. Maximum number of VMs in a scale set 1000/1000 (Default /Max)
  5. Maximum number of VMs based on a custom VM image in a scale set 300/300 (Default /Max)
  6. Maximum number of scale sets in a region 2000/2000 (Default /Max)
  7. Subscription limits https://docs.microsoft.com/en-us/azure/azure-subscription-service-limits
  8. Azure VM Tier 
    1. https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sizes

Azure Availability Sets, Fault Domains, and Update Domains

  1. Fault Domain - 
    1. Any single point of failure is called fault rack usually Rack.
    2. Always places resource in separate fault domain 
    3. Microsoft automatically assigns Virtual Machines across 3 fault domains (physical servers) and 5 update domains to maximize up-time during planned and unplanned outages.
  2. Update Domain 
    1. Collection of resources that can be updated at same time
    2. Resources must be distributed across multiple update domain 
  3. Availability Set 
    1. configure two things  Fault domain and Update Domain 
    2. VM in Availability set must of identical type 
    3. VM can be assigned to Availability Set at the time of creation or later 
    4. Moving VM to availability set after create will cause reboot.

Azure VPNs 

  1. Azure provide three mechanism four mechanism of connecting on-premise to cloud network Point to Site , Site to Site , Express Route , VNet-VNet
  2. Virtual networks (VNets) are used to manage networking in Azure. Can only exist in one Azure region.
  3. CIDR notation is used to describe networks and subnet.
  4. All virtual machines (VMs) in a VNet can communicate (by default) but anything outside cannot talk (by default) – so VNet is default network boundary.
  5. In ASM, every VM has an associated cloud service (with its own name @cloudapp.net). Without subnets the VMs can only communicate via a public IP. If multiple cloud services are on same VNet then VMs can communicate using private IP.
  6. Endpoints are used to manage connections: internal (private) endpoint listening on a given port (e.g. for RDP on 3389); external (public) endpoint on defined port number – therefore go to a particular server, rather than just to the cloud service.
  7. Dynamic IP (DIP) is the private IP associated with a VM; only resolvable inside the VNet – external access needs a public IP. Can chose an IP address to use – and will be reserved.
  8. Virtual IP (VIP) – assigned to a cloud service – static public IP for as long as at least one VM running inside the cloud service.
  9. Instance Level Public IP (ILPIP) – for direct connection to Azure VM from Internet (not via the cloud service); public IP attached to a VM. In this configuration, whatever ports open on the VM are open to the Internet – effectively bypassing the security of the VNet.
  10. Point to Site VPN
    1.  PC to Azure connection , Required client install on every on-premise machine that want to access Azure
    2. Azure address space must not overlap with on Premise address 
  11. Site to Site VPN
    1. Suitable for large corporate
    2. it can connect one Azure Subscription to Other  
    3. Can be use to Extent on premise network 
    4. Required On Premise router to be configured 
    5. Azure address space must not overlap with on Premise address 
    6. Site to Site is IPSec VPN 
  12. Use a VNet-to-VNet VPN to create a tunnel between VNets in different regions. This extends VNets to appear as if they were one.
  13. Multi-site VPN is a combination of the other methods, combined.

Express Route

  1. High bandwidth (up to 10 GBPS) Direct link in between on-premise to Azure Data Centers
  2. Service may or may not be available locally 
  3. Two way to connect 
    1. Connect via Exchange Provider Data Center facility 
    2. Direct Connection using supported Network service provider
  4. ExpressRoute Providers provide point-to-point Ethernet of connect via a cloud exchange. BGP sessions with edge routers on customer site. 200Mbps/500Mbps/1Gbps/10Gbps.
  5. Can use for Azure computing (IaaS); Azure public services (web apps, etc. – PaaS) or Office 365 (SaaS).

Azure Load Balancing and Traffic Manager

  1. Azure Load Balancer 
    1. works at the transport layer (Layer 4 in the OSI network reference stack). It provides network-level distribution of traffic across instances of an application running in the same Azure data center.
    2. There are two types of load Balancers , Internal and Internet Facing 
    3. All load Balancers work at regional level not cross region.
    4. Internet Facing Load Balancer 
      1. You need to create a load Balancer end point on first VM
      2. All VMs must be in same cloud service 
      3.  Health probe must be configured 
    5. Internal Load Balancers 
      1. Internal traffic only 
      2. VMs must be in same cloud service or virtual network with a regional scope
      3. First step to create a Internal Load Balancer is to create Internal Load Balancing endpoint 
        1. Then add endpoint to internal VM to accept traffic 
        2. configure all Front end server to send traffic to 'Internal Load Balancing endpoint"
      4. Only Powershell can be used for creating and configuring Internal Load Balancers.
  2. Azure Application Gateway 
    1. works at the application layer (Layer 7 in the OSI network reference stack). It acts as a reverse-proxy service, terminating the client connection and forwarding requests to back-end endpoints.
  3. Azure Traffic manager 
    1. works at the DNS level. It uses DNS responses to direct end-user traffic to globally distributed endpoints. Clients then connect to those endpoints directly.
    2. Thinks this as highest level of load Balancers work cross region
    3. Support any IP endpoint 
    4. Controls distribution of user traffic across multiple enpoint including cloud services , external sites etc.
    5. It work by modifying DNS settings  
    6. Uses Four load balancing (Routing) methods
      1. Priority: Select Priority when you want to use a primary service endpoint for all traffic, and provide backups in case the primary or the backup endpoints are unavailable.
      2. Weighted: Select Weighted when you want to distribute traffic across a set of endpoints, either evenly or according to weights, which you define.
      3. Performance: Select Performance when you have endpoints in different geographic locations and you want end users to use the "closest" endpoint in terms of the lowest network latency.
      4. Geographic: Select Geographic so that users are directed to specific endpoints (Azure, External, or Nested) based on which geographic location their DNS query originates from. This empowers Traffic Manager customers to enable scenarios where knowing a user’s geographic region and routing them based on that is important. Examples include complying with data sovereignty mandates, localization of content & user experience and measuring traffic from different regions.
    7. Pay per DNS request resolved (TTL will keep this down) and per health-check configured.
-------------------------------------------------------------------------------------------------------------------------
Use this page as quick refresher or Cheat Sheet but no way a replacement of actual exam study guide or course 

No comments:

Post a Comment