Skip to content

Calling Set-AzureServiceDiagnosticsExtension with -Role failing #387

Closed
@craig-wagner

Description

@craig-wagner

Based on the version number showing in "Programs and Features" I'm running 0.9.1 of the Azure Powershell. I installed it yesterday (2015/05/13) using the Web Platform Installer.

$storage_name = "mystorageaccountname"
$key = "mykey"
$service_name = "cwagner-ipseity-worker"
$public_config = "C:\tfs\SI\ipseity\trunk\BuildArtifacts\Deployment\Packages\AzureWorker\PaaSDiagnostics.Ipseity.Server.MessageProcessor.AzureWorkerRole.PubConfig.xml" 
$storageContext = New-AzureStorageContext -StorageAccountName $storage_name -StorageAccountKey $key
Set-AzureServiceDiagnosticsExtension -StorageContext $storageContext -DiagnosticsConfigurationPath $public_config -ServiceName $service_name -Slot Production -Role Ipseity.Server.MessageProcessor.AzureWorkerRole

I get the following output:

VERBOSE: Setting PaaSDiagnostics configuration for Ipseity.Server.MessageProcessor.AzureWorkerRole.
Set-AzureServiceDiagnosticsExtension : BadRequest: The extension ID
IpseityServerMessageProcessorAzureWorkerRole-PaaSDiagnostics-Production-Ext-0 is invalid.
At line:1 char:1

  • Set-AzureServiceDiagnosticsExtension -StorageContext $storgeContext -Diagnostics ...
    • CategoryInfo : NotSpecified: (:) [Set-AzureServiceDiagnosticsExtension], CloudException
    • FullyQualifiedErrorId : Hyak.Common.CloudException,Microsoft.WindowsAzure.Commands.ServiceManagement.Extensions.
      SetAzureServiceDiagnosticsExtensionCommand

I realize this is similar to #72 (dots in the role name) but it is my understanding that that issue has been fixed and the reported extension ID in error has had the dots stripped.

If we don't specify the -Role parameter it works.

Metadata

Metadata

Assignees

Labels

ComputeService AttentionThis issue is responsible by Azure service team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions