Module 3e - Describe Core Solution and Mgmt Tools - Best Tools for Managing and Configuring Azure Flashcards

1
Q

General Knowledge: What’s Imperative vs Declarative Code? LOL

A

Imperative - tell it how to do shit. Imperative details each step to be performed to achieve a goal

Declarative - tell it what you want and let it do it for you. You detail the desired outcome. This allows for a more robust approach to deployments, provisioning large numbers of resources, reliability, etc.

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

General Knowledge: What are the two (2) broad categories of Azure management tools?

A

Visual Tools - full visually friendly access to Azure (Portal basically lol). Azure Mobile App as well

Code-based Tools - CLI, Powershell etc. ARM Templates. These are better for repeated use since you can save commands/code

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

What product options do you have for managing and configuring Azure?

A

Azure Portal
Azure CLI
Azure Powershell
The Azure Mobile App
ARM Templates

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

What is Azure Portal?

A

The web interface for all of Azure. Great for beginning to use. As you get more comfortable and your needs grow, you’ll likely switch to a programmatic approach

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

What is Azure Mobil App?

A

iOS and Android access to Azure resources.

  • Monitor health and status of Resources
  • Check Alerts, diagnose and fix issues
  • Remote admin web apps and VMs
  • Run Azure CLI or Powershell commands to manage Resources
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Azure Powershell?

A

A Powershell Module that uses Azure Cmdlets or Azure CLI. Allows you to:

  • Setup/teardown/maintain connected Resources
  • Seploy infrastructure using imperative code (cmdlets and powershell code)

You can always capture script code for reuse so from a web browser via Azure Cloud Shell

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

Azure Powershell is only available on Windows Systems and on the web via Azure Cloud Shell (T/F)?

A

False. Azure Powershell available for Windows, Linux and MacOS.

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

What is Azure CLI and what’s the main difference between that and Azure Powershell?

A

Commandline tools that can be executed in Bash, which call Azure REST APIs. Same capabilities as Azure Powershell, with the only difference being the syntax used, relying on the “az” exe instead of Cmdlets.

Ex:

Get available subscriptions:

  • *Azure CLI** - az account list
  • *Azure PS** - Get-AzSubscription

List VMS:

  • *Azure CLI** - az vm list
  • *Azure PS** - Get-AzVM

Output as Table:

  • *Azure CLI** - az account list -o table
  • *Azure PS** - Get-AzSubscription | Format-Table

Either way, use what is most familiar. Gets you past the learning curve faster

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

What are ARM Templates and what are four (4) features?

A

Azure Resource Manager Templates. This is the DECLARATIVE option for managing Resources. You define your desired state, let Azure build it out for you.

  • Uses JSON (easy to read and understand)
  • Creates Resources in parallel (50 instances requested == All 50 are provisioned at the same time)
  • Templates can execute Powershell or Bash scripts before/after
  • Validation steps can be implemented to ensure proper Resource creation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Hint: OonD P I

What three (3) validation points ensure proper ARM Template Resource creation?

A
  • Creation in proper Order based on Dependencies
  • Creation in parallel
  • Idempotent
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

When you need to repeatedly setup one-or-many Resources along with all their dependencies, which tools are best suited for this?

A

ARM Templates. Declarative JSON may contain the target Resources and validation steps for Resource creation.

Why not Azure Powershell or CLI? You COULD by scripting everything and saving those scripts, but there are no validation steps right away. Errors while running scripts ==> dependency Resources can’t be rolled back easily, deployments happen serially, etc.

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

When you come from a Windows administration background, when scripting, which tools are best suited for this?

A

Azure Powershell since it’s Window’s native. However you can get away with Azure CLI as well

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

When you come from a Linux administration background, when scripting, which tools are best suited for this?

A

Azure CLI since syntax closely resembles that of Bash commands.

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

When you need to perform one-off management/admin/reporting actions, which tools are best suited for this?

A

Azure Powershell or CLI. Script it, save it, etc. We kind of do this right now with Powershell for TEP administration

Azure Portal and the Mobile App work great too, but for cloud admins it may be less efficient to click around vs someone new to Azure who’ll appreciate the visual presentation

Why not ARM Templates? Templates can be used here as well but are intended to define infrastructure requirements for repeatable deployments

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

Use Case: When executives want to see data displayed visually, run custom reports in real-time and ascertain an idea on cloud-spend, what tool would you use?

A

Azure Portal. Only place to run reports on real-time data

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

Use Case: When a Windows-based dev team has intranet apps vital to business and require network administration, one-off testing, mgmt tasks and admin tasks in that intranet environment, what tool would you use?

A

Azure Powershell. Windows native, code-based and can save one-off scripts to repeat in the future.

You could use Azure CLI but since there’s less of a learning curve with their Windows dev and network administration experience going with Powershell

For repeatable tasks, ARM Templates could be the way to go, but these are ONE-OFF tasks, so again we fall back to Powershell (save the scripts for next time!)

17
Q

Use Case: When a Linux-based DevOps Team needs to perform frequent admin tasks, and managing that from Azure Portal is too time consuming and not repeatable, for ONE-OFF tasks, what tool would you use?

A

Azure CLI since the syntax is similar to Bash syntax.

Not Powershell (though possible) because you want to take advantage of their Linux experience.

For repeatable tasks, ARM Templates could be the way to go, but these are ONE-OFF tasks, so again we fall back to CLI (save the scripts for next time!)

18
Q

Use Case: To alleviate employees from having to convene physically during weekends and holidays for the purposes of cloud administration during busy ecommerce times of the year, what tool would you use?

A

Azure Mobile App. Since all functionality is available through the mobile app, you can tend to administration and respond to alerts through the app, wherever you have wifi or a cell signal.

19
Q

Use Case: You need to make cloud deployments repeatable, reliable and scalable during peak sales periods. You need to meet the following requirements:

  • Ensure efficient and potentially parallelized Resource creation
  • Create dependencies in a specific order
  • Rollback capabilities in case of failure

What tool would you use?

A

ARM Templates.

Note you can still run Powershell or CLI for one-off tasks like clean up or configuration, but for the most off, requirements dictate using ARM Templates (dependency creation in order, rollback, parallelization
with provisioning/creating Resources)