Az Cli Flashcards

1
Q

How can I create an azure resource group?

A

Az group create –name –location

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

How to create an azure vm

A

az vm create

  • -name <>
  • -resource-group <>
  • -image &laquo_space;name image to restore ex: win16 datacenter&raquo_space;
  • -size &laquo_space;sizing ex: Standard_DS2_v2&raquo_space;
  • -location <>
  • -admin-username <>
  • -admin-password <>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Is a vm reachable from the internet?

A

By default, Azure assigns a public IP address to your VM. You can configure a VM to be accessible from the Internet or only from the internal network

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

How to check if vm is running?

A

az vm get-instance-view

  • -name <>
  • -resource-group <>
  • -output table
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the custom Script Extension

A

The Custom Script Extension is an easy way to download and run scripts on your Azure VMs

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

Custom script to install is

A

az vm extension set \

  • -resource-group a6da4425-41cb-4ac8-95bd-1385151b034f \
  • -vm-name myVM \
  • -name CustomScriptExtension \
  • -publisher Microsoft.Compute \
  • -settings ‘{“fileUris”:[“https://raw.githubusercontent.com/MicrosoftDocs/mslearn-welcome-to-azure/master/configure-iis.ps1”]}’ \
  • -protected-settings ‘{“commandToExecute”: “powershell -ExecutionPolicy Unrestricted -File configure-iis.ps1”}’
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How to open a port on a vm?

A

az vm open-port

  • -name <>
  • -resource-group <>
  • -port <>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How to show info about vm?

A

az vm show

  • -name <>
  • -resource-group <>
  • -show-details
  • -query [<>]
  • -output tsv
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Difference between scaling up and scaling out

A
Scaling up is adding more memory,cpu, storage.
Scaling out(horizontal) is adding virtual machines

Cloud is elastic, you scare scale up and down, out and in

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

How do I resize vm?

A

az vm resize

  • -resource-group <>
  • -name <>
  • -size Standard_DS3_v2
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are availability zones?

A

Availability Zones are physically separate datacenters within an Azure region.

Each Availability Zone is made up of one or more datacenters equipped with independent power, cooling, and networking. It is set up to be an isolation boundary. If one zone goes down, the other continues working.

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

What is an availability set?

A

An availability set is a logical grouping of two or more VMs that ensure your application remains available during planned or unplanned maintenance.

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

What are update domains?

A

Update domain assures that if one of the VMs is undergoing planned maintenance, the other VMs are available and not undergoing maintenance at the same time.
By default, 5 update domains are created.

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

What are fault domains?

A

A fault domain assure that if there is a fault on a machine, the switch is made to a different vm in the domain. A fault domain is essentially a rack of servers. It provides the physical separation of your workload across different hardware in the datacenter.
By default, 2 fault domains are created.

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

What are virtual machine scale sets?

A

Azure virtual machine scale sets let you create and manage a group of identical, load balanced VMs. This makes it possible to automatically upscale or downscale the number of VMs needed at the time.

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

What is azure batch?

A

Azure Batch enables large-scale job scheduling and compute management with the ability to scale to tens, hundreds, or thousands of VMs.

When you’re ready to run a job, Batch starts a pool of compute virtual machines for you, installing applications and staging data, running jobs with as many tasks as you have, identifying failures and re-queuing work, and scaling down the pool as work completes.

17
Q

What is ACI?

A

Azure Container Instances is a paas service that allows the uploading of containers

18
Q

What is AKS?

A

Azure Kubernetes Service complete orchestration service(managing/interacting) for containers with distributed architectures with multiple containers.

19
Q

What is Serverless computing?

A

Azure takes care of managing the server infrastructure and allocation/deallocation of resources based on demand

You focus solely on the logic you need to execute and the trigger that is used to run your code. You configure your serverless apps to respond to events. This could be a REST endpoint, a periodic timer, or even a message received from another Azure service. The serverless app runs only when it’s triggered by an event.

20
Q

What storage tiers are available?

A
  • Hot storage tier: optimized for storing data that is accessed frequently.
  • Cool storage tier: optimized for data that is infrequently accessed and stored for at least 30 days.
  • Archive storage tier: for data that is rarely accessed and stored for at least 180 days with flexible latency requirements
21
Q

What is SSE?

A

Storage Service Encryption :
It encrypts the data before storing it and decrypts the data before retrieving it. The encryption and decryption are transparent to the user.

22
Q

What is NSG?

A

A network security group, or NSG, allows or denies inbound network traffic to your Azure resources. Think of a network security group as a cloud-level firewall for your network.