Azure Infrastructure: Exam 70-533 - Managing Azure

in #technology7 years ago

Managing Microsoft Azure

My previous post provided an introduction to Azure. This post contains basic notes about the tools available for managing Azure.
image.png

The Azure Portal

image.png

*The hub menu on the left - fully customizable

  • New to create new resources
  • More Services (allows you to add your own services for managemebnt
  • The Dashboard to the right - allows you add tiles for resources or monitors. You can have multiple dashboards.

Note: Just a point and click your way through GUI.

Windows Powershell

Can be installed three ways

install-module Azure
install-module -name AzureAD
install-module AzureAutomationAuthoringToolkit -scope CurrentUser

Modules include

  • Azure Powershell (ARM)
  • Azure Active Directory Powershell
  • Azure Information Protection Powershell
  • Azure Service Fabric Powershell
  • Azure Elastic DB Powershell

Authentication through Powershell

  • Azure AD authentication
    • Work/School account
    • Microsoft Account
    • Azure Security Principal Account
  • Certificate authentication (useful for unattended scripts to eliminate prompts)
    1. Obtain a certificate
    2. Create an Azure AD Service Principal and associate it with the certificate
    3. Assign appropriate permissions to the resources for the application/principal

Note to self: Differentiate between Powershell scripts through the use of RM in the command name

A very useful command is get-help

get-help set-azurermcontext
get-help set-azurermcontext -examples

Creating a storage account

// Create and delete a storage account
// Provides a signin prompt
add-azurermaccount

set-azurermcontext -subscriptionname training

new-azurermresourcegroup -name training533storage -location "West us"

new-azurermstorageaccount -resourcegroupname "training533storage" -accountname "training533eaccount" -location "west us" -skuname "standard_grs"

image.png

Cleaning up

remove-azurermresourcegroup -name training533storage

Azure CLI

Two versions -

  • Azure CLI 1.0 : Commands start with azure, and can be used to manage both classic and ARM
    Written in node.js so has a dependency on Node

  • Azure CLI 2.0: Commands start with az, and can only beused to manage ARM
    Written in Python so has a dependency on Python
    Very cool thing is that you can access it easily via https://shell.azure.com

Creating a storage account

// Create and delete a storage account
// Provides a signin prompt
az login
az account set --subscription training
az group create --name storageRG --location "west us 2"
az storage account create --resource-group storageRG --name storageac123432 --sku standard_lrs --location "west us 2"

image.png

Cleaning up

az group delete --name storageRG
Sort:  


Send at least 0.01 SBD/STEEM to get upvote , Send 1 SBD/STEEM to get upvote + resteemYou got a 25.00% upvote from @proffit courtesy of @piquet!