• No results found

Restoring an Azure website backup

In document Oops, page not found. (Page 61-64)

At some point it may be necessary to restore a website or a database from a backup. The management portal provides an intuitive interface to guide you through the process. As you start the restore process, you have the option to restore your website as follows:

Restore To Current Website This option will overwrite your existing website with the backup website. As a result, your current website will be unavailable to users as the restore process completes.

Restore To A New Website Instance This option will restore the backup to a new website instance.

The default option for database restore is to not restore the database. If you choose to restore the database, then you can choose to restore to the same database server or a new database server.

When restoring a SQL database to the same database server, you must choose a differ-ent database name to restore your database to. You cannot restore to the same name as the database that was backed up. When restoring a SQL database to a new database server, you can use the same database name.

When restoring a MySQL database, you can restore to the same database that was backed up, which will overwrite the existing database content.

42 CHAPTER 1 Implement Websites

Thought experiment

Coniguring endpoint monitoring

In this thought experiment, apply what you've learned about this objective. You can ind answers to these questions in the ”Answers” section at the end of this chapter.

You are the IT Administrator for Contoso. The customer service group has been getting complaints from users lately indicating the public-facing website has been intermittently slow. Some users have also reported that they get an error message indicating a problem occurred processing their request.

The website has just one deployment in the North Central US region. All the ser-vices such as databases, web serser-vices, and storage accounts are in the same resource group as the website. Your user base has mostly been in the US. However, Contoso has lately been experiencing growth for users in Europe.

You need to conigure monitoring to collect information that will help determine the root cause for the performance issues.

1. What kind of monitoring should you conigure and how might you conigure it?

Objective summary

Azure Websites provides two categories of diagnostic logs: application diagnostics and site diagnostics. There are three site diagnostic log iles available: Web Server, Detailed Errors, and Failed Request.

When enabling application diagnostic logging, you must specify the logging level, which can be Error, Warning, Information, or Verbose.

Site Control Manager (Kudu) is a website extension and is installed by default for every website. It is accessible at https://<your site name>.scm.azurewebsites.net. To authenticate, sign-in using the same credentials you use to sign-in to the management portal.

When coniguring endpoint monitoring, you can have up to two endpoints monitored per websites. For each endpoint, you can have up to three external locations perform web tests against the endpoint.

Alerts can be conigured for endpoints conigured with endpoint monitoring, for perfor-mance counter metrics, and for events.

Azure Website backups can be used to back up website coniguration, ile content, and databases. The databases supported for backup are SQL Database and MySQL.

Azure Website backups can be performed on-demand or on a schedule.

Objective 1.3: Conigure diagnostics, monitoring, and analytics CHAPTER 1 43

Objective review

Answer the following questions to test your knowledge of the information in this objective.

You can ind the answers to these questions and explanations of why each answer choice is correct or incorrect in the ”Answers” section at the end of this chapter.

1. Which are valid site diagnostic logs in Azure Websites? (Choose all that apply.) A. Application diagnostics

B. Web server logging C. Detailed error messages D. Failed request tracing

2. Which Azure PowerShell cmdlet should you use to download the diagnostic logs from an Azure website to your local computer?

A. Get-AzureWebsiteLog

B. Enable-AzureWebsiteApplicationDiagnostic C. Save-AzureWebsiteLog

D. Get-AzureWebsiteMetric

3. Which types of logs can be streamed using the log-streaming service? (Choose all that apply.)

A. Application logs B. Failed request logs C. Detailed error messages D. Web server logs

4. When coniguring endpoint monitoring, how many external website locations can you conigure to perform web tests for an endpoint?

A. Zero to three B. Two or more C. One to three D. One to two

5. Which is not part of the contents backed up when using the backup service for an Azure Website?

A. Website coniguration B. Website performance metrics C. Website ile content

D. Website databases

44 CHAPTER 1 Implement Websites

Objective 1.4: Conigure scale and resilience

The Microsoft Azure platform is an extremely resilient platform. By leveraging the services and features available, users of the platform can implement solutions that can scale to meet the demand from users in a way that is cost effective for the business. The notion of elastic scale is a key driver for moving to the cloud, and Azure Websites delivers this with a rich set of scalability conigurations you can apply to your websites that are conigured for Standard mode.

Using the Autoscale feature, you can scale up and down the number of instances of your website based on schedules you set or metrics you deine.

In cases where you just need more resources, such as CPU cores and RAM, you can manu-ally scale up the size of website instances to meet the resource needs of the application.

This objective covers how to:

Conigure Autoscale using schedules

Conigure Autoscale using metrics

Scale-up a website instance

In document Oops, page not found. (Page 61-64)