book1: Design and implement Az App Service Web Apps Flashcards

1
Q

Create app service plan (PS / CLI)

A

PS:
> New-AzureRmResourceGroup -Name fooRG -Location foo
> New-AzureRmAppServicePlan -ResourceGroupName fooRG -Name foo -Location “East US” -Tier Free -WorkerSize Small

CLI:
> az group create – location foo –name fooRG
> az appservice plan create –resource-group fooRG –name foo –location eastus –sku P1

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

New-AzureRmAppServicePlan -Tier ____ (6)

A
  • Free
  • Shared
  • Basic
  • Standard
  • Premium (Premium V2)
  • Isolated (aka App Service Environment (ASE)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

New-AzureRmAppServicePlan -WorkerSize ____ (3)

A
  • Small
  • Medium
  • Large
  • ExtraLarge … available in tool, but not documented…?
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

az appservice plan create –sku ___ (5)

A
  1. F1 (Free),
  2. D1 (Shared),
  3. B1, B2, B3 (Basic small, medium, large)
  4. S1, S2, S3 (Standard)
  5. P1 | P1V2, P2 | P2V2, P3 | P3V2 (Premium | Premium V2)
  6. I1, I2, I3 (Isolated) # not currently supported via CLI

Default: B1.

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

Create web app (PS / CLI)

A

PS:
> New-AzureRmWebApp -ResourceGroupName fooRG -Location “East US” -AppServicePlan foo -Name foo

CLI:
> az webapp create –resource-group fooRG –plan foo –name foo

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

Instances & Slots allowed per tier

A
  • Free, Shared: 1 instance, 1 slot
  • Basic: 3 instances manually scaled, 1 slot
  • Standard: 10 instances, 5 slots
  • Premium: 20 instances, 20 slots
  • Isolated: 100 instances, ? slots
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Get a ref to the prod slot

A

$productionSite = Get-AzureRmWebAppSlot -ResourceGroupName $resourceGroupName `
-Name $webAppName -Slot $productionSlotName

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

Create a slot with cloned settings (PS / CLI)

A

PS:
> New-AzureRmWebAppSlot -ResourceGroupName $resourceGroupName `
-Name $webAppName -Slot $stagingSlotName `
-AppServicePlan $appServicePlanName -SourceWebApp $productionSite

CLI:
> az webapp deployment slot create –resource-group $resourceGroupName \
–name $webAppName –slot $stagingSlotName \
–configuration-source $productionSite

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

Steps of Multi phase swap

A

AKA: Swap w/ preview.

  • apply destination settings to source
  • test source
  • if ok, proceed w/ swap of source -> destination
  • if not ok, cancel swap operation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

update webapp service plan (PS)

A

Set-AzureRmAppServicePlan -ResourceGroupName fooRG -Name foo-webapp -Tier Standard -WorkerSize Small

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