Which three actions should you perform?

You manage a cloud service that has a web application named WebRole1. WebRole1 writes
error messages to the Windows Event Log.
Users report receiving an error page with the following message: “Event 26 has occurred.
Contact your system administrator.”
You need to access the WebRole1 event log.
Which three actions should you perform? Each correct answer presents part of the solution.

You manage a cloud service that has a web application named WebRole1. WebRole1 writes
error messages to the Windows Event Log.
Users report receiving an error page with the following message: “Event 26 has occurred.
Contact your system administrator.”
You need to access the WebRole1 event log.
Which three actions should you perform? Each correct answer presents part of the solution.

A.
Enable verbose monitoring.

B.
Update the WebRole1 web.config file.

C.
Update the cloud service definition file and the service configuration file.

D.
Run the Set-AzureVMDiagnosticsExtension PowerShell cmdlet.

E.
Run the Enable-AzureWebsiteApplicationDiagnostic PowerShell cmdlet.

F.
Create a storage account.

Explanation:
http://azure.microsoft.com/en-us/documentation/articles/cloud-services-how
to-monitor/ http://msdn.microsoft.com/en-us/library/azure/ee758710.aspx
http://msdn.microsoft.com/en-us/library/azure/ee758711.aspx



Leave a Reply 23

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


Dan

Dan

Wouldn’t it be AFC?

“You can monitor key performance metrics for your cloud services in the Azure Management Portal. You can set the level of monitoring to minimal and verbose for each service role, and can customize the monitoring displays. Verbose monitoring data is stored in a storage account, which you can access outside the portal.”

http://azure.microsoft.com/en-us/documentation/articles/cloud-services-how-to-monitor/

AzureGuest

AzureGuest

Agree. You need to create a storage account

Arie

Arie

I agree, the correct answer is A, C and F.

@lx

@lx

No, the app was running, so A,B,F

(…) you typically have to make a change in web.config or app.config for Windows Azure to collect these logs

https://msdn.microsoft.com/en-us/magazine/ff714589.aspx

David

David

The app already spit out an error, so why do we need to configure web.congi file again.

Also, if we are creating a new storage account to store logs, don’t we need to update the configuration files to point to this location?

Stephenson

Stephenson

So what’s your answer please

David Sánchez

David Sánchez

Which is the right answer?

ItsNotWebConfig

ItsNotWebConfig

https://msdn.microsoft.com/en-us/magazine/ff714589.aspx

The problem is that you’d like to be able to change the switch values at run time, and Windows Azure doesn’t allow you to just replace the web.config or app.config without redeploying the service. The generic ASP.NET solution for this is to use WebConfiguationManager to alter configuration values, but Windows Azure doesn’t currently allow you to do this for cloud-deployed services, either.

The solution is to mirror the values for these switches in *** ServiceConfiguration.cscfg ***. Windows Azure lets you edit that file (or upload a new one) through the development portal while your service is running. You’ll have to write some additional code to make this work, though.

Sandeep

Sandeep

As per https://azure.microsoft.com/en-us/documentation/articles/cloud-services-how-to-monitor/

•Create a storage account to store the monitoring data.
•Enable Azure Diagnostics for your cloud service roles
Ensure that the diagnostics connection string is present in the Role configuration

So answer is B,E,F

David

David

Enable-AzureWebsiteApplicationDiagnostic is relevant to Azure websites.
The question is referring to a Cloud Service role.

The correct answer is either ABF, or ACF

Isabel Cabezas

Isabel Cabezas

ACF

A & F:
You can monitor key performance metrics for your cloud services in the Azure Management Portal. You can set the level of monitoring to minimal and verbose for each service role, and can customize the monitoring displays. Verbose monitoring data is stored in a storage account, which you can access outside the portal. 

C:
* The service configuration file specifies the number of role instances to deploy for each role in the service, the values of any configuration settings, and the thumbprints for any certificates associated with a role. If the service is part of a Virtual Network, configuration information for the network must be provided in the service configuration file, as well as in the virtual networking configuration file. The default extension for the service configuration file is .cscfg. 
* The service definition file defines the service model for an application. The file contains the definitions for the roles that are available to a cloud service, specifies the service endpoints, and establishes configuration settings for the service. 

URLs: http://azure.microsoft.com/en-us/documentation/articles/cloud-services-how-to-monitor/ http://msdn.microsoft.com/en-us/library/azure/ee758710.aspx http://msdn.microsoft.com/en-us/library/azure/ee758711.aspx 

josef

josef

A,E,F

https://azure.microsoft.com/en-us/documentation/articles/cloud-services-how-to-monitor/

A: “… After you enable verbose monitoring, the aggregated monitoring data is stored in tables in your storage account …”

E, F: “… Before you begin

•Create a storage account to store the monitoring data. You can use different storage accounts for different roles. For more information, see help for Storage Accounts, or see How To Create a Storage Account.

•Enable Azure Diagnostics for your cloud service roles. See Configuring Diagnostics for Cloud Services. …”

J

J

E. not possible, please read its a cloud service not Azure Website.

Peter

Peter

None of the answers is correct.
WebRole1 writes error messages to the Windows Event Log.
The question is “You need to access the WebRole1 event log”.
This is done via FTP!

challenge

challenge

The answer is A,C & E

=================================

The question relates to getting the “Windows Event log” for the Role running in a Cloud Service.

Collecting diagnostics data

XML file – Diagnostics.wadcfg (packaged into the .cspkg file)
Azure Storage Blob (wad-control-container)

• IIS HTTP logs
• IIS failed request logs
• Azure diagnostics infrastructure logs
• Windows event logs <<<<<<<<<<<<<<<<<<<
• Performance counters
• Crash dumps
• Custom error logs
• ETW events

Use a separate storage account for logging diagnostic data – to improve performance
(diagnostic connection strings)

challenge

challenge

Typo above – I meant A, C and F (sorry!!)

Verbose on
Service config file
Storage account

challenge

challenge

see page 203 of the official Microsoft 70-533 exam study book (green cover)

Bruno D'Amico

Bruno D'Amico

answer is ACF

step 1 specify the scheduledTransferLogLevelFilter to Verbose in the diagnostics.wadcfg
step 2 Update the cloud service definition file and the service configuration file (.cspkg)
step 3 best practice is to create a separate storage account for logging diagnostics data

RobV

RobV

Agree ACF. (A) to increase logging info, (C) to make changes without redeploying service and (F) as it lives in a storage account.

Not B – requires redeploying app
Not D – It operates on each VM instance, not the Role
Not E – This is a Cloud Service, not a Web App

Prady

Prady

Agreed as ACF.
However, a question about C- csdef has the Diagnostics (Import) attribute in Web and Worker Role Schemas. But cscfg has no such setting. Shouldn’t the answer have just csdef mentioned? If the answer were to just say “Update the cloud service definition file.”, isn’t it still sufficient?