powershell - Calling Set-AzureServiceDiagnosticsExtension with -Role failing with "extension ID ... is invalid" -


this not duplicate of calling set-azureservicediagnosticsextension role parameter fails. particular issue related having dots in role name has been fixed.

based on version number showing in "programs , features" i'm running 0.9.1 of azure powershell. installed yesterday (2015/05/13) using web platform installer. script i'm executing is:

$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 following output:

verbose: setting paasdiagnostics configuration ipseity.server.messageprocessor.azureworkerrole. set-azureservicediagnosticsextension : badrequest: extension id ipseityservermessageprocessorazureworkerrole-paasdiagnostics-production-ext-0 invalid. @ line:1 char:1 + set-azureservicediagnosticsextension -storagecontext $storgecontext -diagnostics ... + > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + categoryinfo          : notspecified: (:) [set-azureservicediagnosticsextension], cloudexception     + fullyqualifiederrorid : hyak.common.cloudexception,microsoft.windowsazure.commands.servicemanagement.extensions. 

setazureservicediagnosticsextensioncommand

if don't specify -role parameter works.

the extension id long. 1 option rename role.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -