Deploy workloads on Azure Resource Manager (ARM) virtual machines (VMs)
- Only VHD's are supported in Azure, VHDX must be converted first
- Azure Linux agent is used to prep the VM to be used as an image
- To connect to a VM look at the Endpoints. Endpoints lists public and private ports exposed by VM
- Sharepoint workloads are supported in Azure; Hyper-V and Windows Deploy Service are not
- Convert-VHD>Add-AzureVHD>Add-AzureVMImage>New-AzureVM to recreate an on premise VM in Azure
- Publish-AzureVMDscConfiguration for desired state configuration
- Chef configuration extension allows configuration of VM's and gives the ability to amend the configuration at a later date
- Chef client can be installed only when a VM is created
- Use PowerShell to add Chef client to an existing maching
- Chef allows you to use Ruby and Erlang to perform configuration tasks
- Puppet uses proprietary OO language with JSON like features
- Use Update-AzureVM to update a VM's configuration after applying a DSC script
- Puppet can connect by PowerShell and RDP by default but not over the internet unless you create an Endpoint
- Enable the VM Agent and allow the VM to run custom script extensions to execute PowerShell cmdlets against your VM.
- Powershell cmdlets execute from your storage account
- Get-AzureVM to retrieve an instance of a VM configuration
- Set-AzureVMCustomScriptExtension to set a custom script that can be downloaded from your storage account when provisioning the VM
- Set-AzureVMExtension 'VMAccessAgent' to reset a password
- Set-AzureVMExtension 'CustomScriptExtension' to allow a custom script
- Set-AzureVMExtension 'Bginfo' to allow custom BGInfo desktop background
- Know the sections of a Powershell DSC script block - Configuration, Resource, Name
- Use Azure Virtual Machine Extensions to troubleshoot DSC configurations locally
- The default replication scheme for an Azure storage account is Geo-Redundant which replicates data six times
- Locally redundant storage replicates storage three times
- ZRS is only available to store block blobs not page blobs, VHD's use page blobs
- To create a share with PowerShell first set the account and key with New-AzureStorageContext, then the share can be created with New-AzureStorageShare
- When deoploying a domain controller to Azure set the cache preference to none
- Azure Files is an SMB 2.1 compliant 60 MS/sec throughput and max file size 1 TB
- Azure BLOB only supports 200 GB / block BLOB
- Azure data disk can only connect to 1 VM not multiple
- Host disk caching for attached disks can be set to None, ReadOnly, ReadWrite adn is set to None by default
- Set-AzureDataDisk is used to configure the host-cache mode
- VHD's must be stored as page blobs in Azure to be listed as a custom image
- You configre an Azure Site Recovery vault in Azure portal, you configure Azure Site Recovery Provider on the servers
- Know the Get-AzureVM parameters, use Get-AzureVM to Add-AzureDataDisk. This is then followed by Update-AzureVM to commmit the changes
- Use Set-AzureDataDisk to modify the data disk attached to a VM
- Use Set-AsureDataDisk with HostCaching parameter = ReadWrite to cache data that is frequently written
- Use the File service option with a new storage account to share network volumes on the network
- Table service and DocumentDB are both NoSQL options
- Azure alert rules can be used to send email alerts
- Endpoints can be used to monitor a cloud service from up to 3 locations
- Metrics allow you to choose what to monitor
- Rules are used to generate a notification when a monitored metric exceeds a threshold
- When you Configure endpoint monitoring you specify two endpoints and up to two test locations for each endpoint
- An IaasDiagnostics resource is added to the Virtual Machine ARM template file
- Connect to VMDiagnoseStorageAccount to browse tables to see Windoes event logs
- VMStorageAccount is where the VHD is stored
- All VM's in the same availability set participate in failover
- Each availability set contains five upgrade domains and two fault domains
- An upgrade domain is a logical group of instances for upgrading a VM
- A fault domain groups VMs by hardware
- Azure places VM's in upgrade and fault domains automatically
- In a scale set VM's will automatically be assigned to seperate fault domains so they will have seperate power sources
- Availability sets have 99.95 percent SLA
- Traffic manager supports round robin load balancing across data centers
- VM Scale Sets are used to deploy identical virtual machines
- Azure automation framework can be used to vertically scale VMs in response to workload
- VM Scale Sets are deployed with ARM templates
- The ARM teamplate capacity property is used to add or remove VMs in a scale set, threshold metric to trigger a CPU scale action
- When resizing VM's in an availability set you need to stop and restart all servers in the availability set
No comments:
Post a Comment