Enabling diagnostics works on the Commercial side of things by following this guidance: Cloud Serivces .NET Diagnostics
However, when I move to upload the same package, with updated government (endpoint and storage) configuration, I don't get any diagnostics? I also don't get any of the storage tables created?
Environment:
- .NET 4.5
- Azure SDK 2.6
Steps are basically:
- Enable Diagnostics in Role Configuration
- Create Package
- Update configuration based on target environment
- Run Set-AzureServiceDiagnosticsExtension
- Bask in the glory that is Azure Diagnostics...except in government cloud?
When I run the Set-AzureServiceDiagnosticsExtension command I get an error:
Set-AzureServiceDiagnosticsExtension -servicename "sharedevusaia001" -slot Production -role LoggingWorkerRole -storagecontext $c
ontext -diagnosticsconfigurationpath C:\zach\PaaSDiagnostics.LoggingWorkerRole.PubConfig.xml
VERBOSE: Setting PaaSDiagnostics configuration for LoggingWorkerRole.
Set-AzureServiceDiagnosticsExtension : BadRequest: Could not find the extension with provider name space
Microsoft.Azure.Diagnostics and type PaaSDiagnostics.
At line:1 char:1
+ Set-AzureServiceDiagnosticsExtension -servicename "sharedevusaia001" -slot Produ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Set-AzureServiceDiagnosticsExtension], CloudException
+ FullyQualifiedErrorId : Hyak.Common.CloudException,Microsoft.WindowsAzure.Commands.ServiceManagement.Extensions.
SetAzureServiceDiagnosticsExtensionCommand