Closed
Description
Where "xxx" is the role name. Repro steps:
- Create a new cloud service.
- Deploy a web role to Production slot or first deploy to Staging then swap.
- Enable diagnostics extension using
Set-AzureServiceDiagnosticsExtension
in Production slot. - Deploy to Staging slot without enabling diagnostics extension.
- Swap, notice now the Staging has diagnostics enabled while Production doesn't have it enabled.
- Now if I use
Set-AzureServiceDiagnosticsExtension
to enable it again in Production slot, I will get the error in title.
Analysis so far:
I believe it is because the cmdlet is using following code to generate the extension id, therefore it will generate the same id when I enable the extension for Production slot the second time, since the same id is actually now used by Staging slot, thus the conflict:
public string GetExtensionId(string extensionName, string slot, int index)
{
return string.Format(ExtensionIdTemplate, PrefixName, extensionName, slot, index);
}
Metadata
Metadata
Assignees
Labels
No labels