You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
}