Create and Manage VMs Flashcards
Virtual machines (VMs)
1) Infrastructure-as-a-Service (IaaS) offering. With VMs, 2) you can deploy Windows Server and Linux-based workloads and have greater control over the infrastructure, your deployment topology, and configuration
Perform configuration management
1) Windows PowerShell Desired State Configuration (DSC)
2) Custom Script Extension ( Puppet and Chef extensions)
DSC script can describe
Manage server roles and Windows features Manage registry keys Copy files and folders Deploy software Run Windows PowerShell scripts
DSC resources
1) Custom resources to simplify working with active directory, sql and IIS
2) After the DSC runs, a Managed Object Format (MOF) file is created
Local Configuration Manager
1) Local Configuration Manager runs on all target nodes
2) Pushing configurations to bootstrap a target node
3) Pulling configuration from a specified location to bootstrap or update a target node
3) Applying the configuration defined in the MOF file to the target node, either during the bootstrapping stage or to repair configuration drift
Configuring VMs with DSC
1) first create a Windows PowerShell script that describes the desired configuration state.
2) this involves selecting resources to configure and providing the appropriate settings.
3) use one of a number of methods to initialize a VM to run the script on startup.
Puppet extension
1) Linux VM with puppet master
2) Select Puppet Enterprise Agent.
3) Under Puppet Enterprise Agent Configuration, supply the fully qualified address to the puppet master server node.
Accepting agent node registration
1) When you create a Puppet agent node, it registers with the puppet master node at the supplied fully qualified address and sends a certificate request. Log in to the Puppet Enterprise console to accept the request so that you can add the agent node to your managed group of servers.
Creating a Linux VM with a Chef server
1) Currently, there is no pre-configured VM for a Chef server on Azure.
2) Use the multi-tenant solution for the Chef server hosted by OpsDev
3) Create a Linux VM and manually set up the Chef server following instructions supplied by OpsDev
Creating a Chef workstation
1) You must set up an administrative workstation to manage your configuration management workflow with Chef. This can be a local or hosted workstation
Enabling remote debugging
You can use remote debugging to debug applications running on your VMs. Server Explorer in Visual Studio shows your VMs in a list
Configure VM Networking
1) Configure DNS at the cloud service level
2) Configure endpoints with instance-level public IP addresses
3) Configure endpoints with reserved IP addresses
4) Configure access control lists (ACL)
5) Load balance endpoints and configure health probes
6) Configure Direct Server Return and keep-alive
7) Configure firewall rules
Configuring DNS at the cloud service level
1) Creating a new VM using the existing management portal include providing a DNS name for the cloud service.
2) When provisioned, this DNS name can be used to access the VM. This DNS name resolves to the public virtual IP address of the cloud service, and after the cloud service has been created, the DNS name cannot be changed
3) the VM can be accessed directly by the public virtual IP address.
Public endpoints
Public endpoints created for a VM use port forwarding to expose a single port on the publicly available virtual IP (VIP) assigned to the cloud service to which the VM belongs and map that public IP and port to a private IP and port available on a single VM instance.
VM instance available across a range of ports
configure an instance-level public IP address (PIP) for that VM instance to use in addition to the VIP plus port endpoint you have configured for it. With this configuration, you can communicate directly with your VM instance using this public IP address (and any port) instead of (or in addition to) using the VIP address and a specific port.