Create and Manage VMs Flashcards

1
Q

Virtual machines (VMs)

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Perform configuration management

A

1) Windows PowerShell Desired State Configuration (DSC)

2) Custom Script Extension ( Puppet and Chef extensions)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

DSC script can describe

A
Manage server roles and Windows features
Manage registry keys
Copy files and folders
Deploy software
Run Windows PowerShell scripts
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

DSC resources

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Local Configuration Manager

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Configuring VMs with DSC

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Puppet extension

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Accepting agent node registration

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Creating a Linux VM with a Chef server

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Creating a Chef workstation

A

1) You must set up an administrative workstation to manage your configuration management workflow with Chef. This can be a local or hosted workstation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Enabling remote debugging

A

You can use remote debugging to debug applications running on your VMs. Server Explorer in Visual Studio shows your VMs in a list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Configure VM Networking

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Configuring DNS at the cloud service level

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Public endpoints

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

VM instance available across a range of ports

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Advantages of PIP

A

First, by removing the need to define ports, you can enable scenarios, such as passive FTP, that rely on choosing ports dynamically. Second, you can rely on the PIP to uniquely identify your VM on outgoing requests to external services that have access control or firewall rules that allow or deny based on IP address.

17
Q

To assign a PIP to your VM

A

first ensure that your VM is deployed to a regional virtual network (VNET) since a PIP cannot be assigned to VMs that do not belong to a VNET. Second, configure that VM instance with a PIP.

18
Q

Configuring endpoints with reserved IP addresses

A

1) Public virtual IP addresses (VIP) used to access your VM via an endpoint are assigned to the cloud service to which that VM belongs, not to the VM itself
2) To use a reserved IP address with a VM, you must request it as a part of creating both a new cloud service and new VM. There is currently no support for assigning a reserved IP address to an existing cloud service and VM.

19
Q

Configuring access control lists

A

restrict access to your VMs to specific ranges of IP addresses by defining a list of permit or deny rules. They perform packet filtering on the host node running your VM, controlling what external traffic is allowed to reach it via the endpoint. They are defined on a VM endpoint or load balanced set and apply only to external traffic (for example, traffic that flows through the VIP and load balancer). They are not applied to internal traffic and cannot be applied to a VNET or to a subnet within a VNET.

20
Q

Load balancing endpoints and configuring health probes

A

1) Azure Internal Load Balancing (ILB) service
2) The load balancer uses a hashing function to achieve a relatively even distribution of load between the VMs while also ensuring the subsequent requests use the same protocol, from the same source IP/source port to the same destination IP/destination port hash to the same value, and therefore map to the same VM and continue to be sent to the same VM as long as it remains available.

21
Q

Load Balanced Endpoints Availability

A

Load balanced endpoints (public or internal) is functionality available only to VMs in the Standard tier and not to VMs in the Basic tier.

22
Q

Configuring Direct Server Return (DSR)

A

Enables the VM to return the response directly to the client instead of sending it through the load balancer. DSR is most commonly needed to support SQL Server AlwaysOn Availability Groups.

23
Q

keep-alive

A

While DSR addresses responses from the VM, keep-alives are intended to keep the TCP connection with the VM open even in the absence of application communication. Keep-alives accomplish this by periodically sending a keep-alive packet from the client application to the server-side application, which instructs both the server-side application and any load balancers along the way not to close the idle connection

24
Q

Leveraging name resolution within a cloud service

A

Azure provides an internal DNS that allows a VM hosted within a cloud service to resolve the IP address of another VM also hosted within that cloud service using the target VM’s host name. The host name, and therefore the fully qualified domain name, is set when you provision the VM