Thank you for the link. I see this has just been updated in the last couple of days, that is good. I am working through it now, but Step 5 has me stumped. How do I run the whole text as a script against my powershell? I tried editing
the text and pasting it into my powershell but i only get a bunch of errors.
Step 5: Install Diagnostics on your Worker Role
The PowerShell cmdlets for managing Diagnostics on a web or worker role are: Set-AzureServiceDiagnosticsExtension, Get-AzureServiceDiagnosticsExtension, and Remove-AzureServiceDiagnosticsExtension.
- Open Azure PowerShell.
-
Execute the script to install Diagnostics on your worker role (replace StorageAccountKey with the storage account key for your wadexample storage account):
Copy<svg><use xlink:href="#clipboard" xmlns:xlink="http://www.w3.org/1999/xlink"></use></svg>
$storage_name = "wadexample"
$key = "<StorageAccountKey>"
$config_path="c:\users\<user>\documents\visual studio 2013\Projects\WadExample\WorkerRole1\WadExample.xml"
$service_name="wadexample"
$storageContext = New-AzureStorageContext -StorageAccountName $storage_name -StorageAccountKey $key
Set-AzureServiceDiagnosticsExtension -StorageContext $storageContext -DiagnosticsConfigurationPath $config_path -ServiceName $service_name -Slot Staging -Role WorkerRole1