Azure 70-532 Revision Day 6

Upload a PowerShell script that will run as a scheduled WebJob

Compress PowerShell script file.

Slot swap

  • App settings: Configurable
  • Configuration String: Configurable
  • Diagnostic settings: Swapped
  • Endpoints: Not swapped – Virtual IP address specific to the slot
  • WebJobs content: Swapped
  • WebJobs schedulers: Not swapped

Get number of request per minute even swap occurs

Get-AzureWebsiteMetricMetrics are utilization statistics

-MetricNames “Request” – Specify metric to return

-StartDate(get-date).AddHours(-4) – Parameter determine when metric reporting begins

-SlotView Ensure metrics are merged if swap occurs during data collection

-TimeGrain “PT1M” Show requests per minute

Private application settings and connection strings

  1. Store application settings in separate settings file and reference using file attribute of appSettings elements in web.config. Do not add to source control.
  2. Store connection strings in separate connection string files and reference using configSource attribute of connectionStrings element in web.config. Do not add to source control.
  3. Create PowerShell script to set application settings and connection strings in Azure Web App. – Set-AzureWebSite

Quickly find exception logsTable Storage

Long-term storage of all logsBlob storage

CRON expression

Used to configure Azure App Service web job to execute on a schedule.

Format: {second} {minute} {hour} {day} {month} {day of the week}

Example: “0 0 * * * 1-5”

0 0 – execute when seconds and hours both zero (beginning of every hour)

1-5 – Day 1- 5 of the week (Monday through Friday)

Limiting bandwidth available to each IP address

<quota-by-key>

Example: Restrict each IP address to 50000 calls and 1MB(1000 kilobytes) of data per day(86,400 seconds).

<quota-by-key calls="50000"   
              bandwidth="1000"
              renewal-period="86400"  
              counter-key="@(context.Request.IpAdress)" />

Easy for developers to call API by providing Swagger 2.0 metadata

Install Swashbuckle NuGet package in API Visual Studio project. – Automatically create Swagger 2.0 metadata when it is installed in ASP.NET Web API project.

Swagger 2.0 description of API in JSON format is created and available in /swagger/docs/v1 location.

Azure App Service Logic App

Create a custom trigger whenever want Web API to initiate Logic App.

Polling trigger Logic App to check periodically for new items or data

Create custom action whenever want Logic App to all external Web App after it has been initiated.

Webhook actionLogic App to pause until external Web App responds for long running action

Example of goals that can be achieve by object:

Require message encryptionAgreement define two partners and a range of requirements for the messages that can be exchanged between those partners

Ensure message is validSchemaspecified tags and attributes that are expected in a message

Transform date formatMap specifies how certain fields in message should be formatted.

debatching

SplitOn command – ensure new instance of workflow is created for every message in a batch.

Leave a Reply

Your email address will not be published. Required fields are marked *