• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/18

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

18 Cards in this Set

  • Front
  • Back
Create a new Website

New-AzureWebsite


-Location $wsLocation


-Name $wsName

Check if website name available

Test-AzureName


-Website"mywebsite1"




False = taken


True = available

Create new website with a deployment slot

PS C:\> $wsQASlot = "QA"


PS C:\> New-AzureWebsite -Location $wsLocation -Name $wsName -Slot $wsQASlot


Swap deployment slots

PS C:\> $wsStaging = "Staging"


PS C:\> $wsProduction = "Production"


PS C:\> Switch-AzureWebsiteSlot -Name $wsName -Slot1 $wsStaging -Slot2 $wsProduction

Publish Azure Website

$pkgPath = "E:\website.zip"


Publish-AzureWebsiteProject -Name $wsName -Slot $wsStaging -Package $pkPath


Create a Webjob

$wjPath = "E:\webjob.exe"


$wjName = "MyWebJob"


New-AzureWebsiteJob -Name $wsName - JobName $wjName -JobType Triggered -Slot $wsStaging -JobFile $wjPath

Configure a website in Azure

$wsName = "MyWebsite"


Set-AzureWebsite $wsName -WebSocketsEnabled $true



Set-AzureWebsite $wsName -AppSettings $settings

Associate custom domain with Azure website


Set-AzureWebsite


-Name "darrenpritchard"


-HostNames@(www.dpritchard.com, "dpritchard.com")


Create Traffic Manager Profile

New-AzureTrafficManagerProfile


-Name ContosoTM


-DomainName contoso-web-tm.trafficmanager.net


-LoadBalancingMethod Failover


-MonitorPort 80


-MonitorProtocol Http


-MonitorRelativePath "/"


-Ttl 30

Display Traffic Manager profile

Get-AzureTrafficManagerProfile


-Name darrenpritchard


-tm

Add TM Endpoint

Add-AzureTrafficManagerEndpoint


-TrafficManagerProfile $tmProfile
-DomainName "darrenpritchard.azurewebsites.net"


-TypeAzureWebsite
-Status Enabled |Set-AzureTrafficManagerEndpoint

Remove or Disable TM Endpoint

Remove-AzureTrafficManagerEndpoint



Set-AzureTrafficManagerEndpoint - Status Disabled

Add website handler mapping

Set-AzureWebsite


-Name $name


-HandlerMappings $mapping

Downloads and saves the logs for a specified website

$wsName = "contoso-web"


Save-AzureWebsiteLog


-Name $wsName


-Outpute:\weblogs.zip


Configure HTTP logging

$wsName ="contoso-web"


Set-AzureWebsite -Name $wsName-RequestTracingEnabled $true -HttpLoggingEnabled $true

List all Azure locations / regions
Get-AzureWebsiteLocation
How do you display real-time Streaming logs

Get-AzureWebsiteLog -name darrenpritchard -Tail -Path Http




azure site log tail webappname

How do you filter on errors only when displaying the Log Streaming
Get-AzureWebsiteLog -name darrenpritchard -Tail -Message error