azure-webpubsub icon indicating copy to clipboard operation
azure-webpubsub copied to clipboard

Regenerate AccessKey failed

Open vicancy opened this issue 4 years ago • 3 comments

https://github.com/Azure/azure-webpubsub/issues/25

Regenerate AccessKey for WebPubSub resource 'kk-bbush2' failed with status: 'error' and error: 'Service must be active state'. The resource was not in creating status. While I can agree that having 2 separate operations to rotate the same key should cause an error, the error message is invalid and misleading. BTW, even though the first rotate operation reported as succeeded, the key was never rotated. This is not specific to web pubsub - it seems to be the same issue for SignalR.

vicancy avatar Apr 08 '21 05:04 vicancy

Hi @KKhurin Could you kindly provide the repro steps here?

vicancy avatar Apr 08 '21 05:04 vicancy

Repro steps:

  • go to 'Keys'
  • click Regenerate Secondary Key
  • confirm "yes"
  • switch to another blade (e.g. overview) and go back to Keys
  • click Regenerate Secondary Key
  • confirm "yes"
  • you'll get the following cryptic error dialog: Regenerate AccessKey for xxxx failed with status: 'error' and error: 'Service must be active state'

The error should indicate that another key regen is in progress

KKhurin avatar Apr 14 '21 08:04 KKhurin

Note: the first regen operation actually succeeds, although it would take a page refresh to pick the new value - could be another usability issue for users who believe they rotated the key and copy the value which is still old.

KKhurin avatar Apr 14 '21 08:04 KKhurin