While performing Luis.ai applications migration at both www.luis.ai and preview.luis.ai
We start the operation by this dialog:
we are getting following error:
BadArgument: Endpoint keys were assigned by collaborators to your apps and you have no access to them. Either remove these keys or get access. Keys: {keyPath: userassigned, region: WUS, appId: 1234567890}, {keyPath: userassigned, region: WUS, appId: 1234567891}
See also screenshot from Notifications:
Unfortunately we don't see in the list of Luis applications in the portal any with the appId from the error. We have discovered the mentioned appIds in our database from the time when we were using Luis applications with same appIds but we have thought we already deleted mentioned Luis applications at the beginning of 10/2019. All the Luis application we have used or we are using are private.
If the Luis applications still exist somewhere is there a way to force remove the "endpoint keys" that were created by account that is actually logged-in?
Thank @ranusharao for your advice:
I was able to follow mentioned Github issue. However I ended up the same way as user jbeltranluna 8 days ago. For now in the Github thread it is not clear what to do next.
I also tried all three suggested options "apps-Get application info API", "permissions-Update access list API", "apps-Removes an assigned LUIS azure accounts" and in all cases I ended up with following error for both West US and West Europe
"error": { "code": "BadArgument",
"message": "Cannot find an application with the ID 8b1bd3aa-5ffd-47c7-9f61-f9888e97f364." }
I'm not sure which user has created mentioned LUIS apps. Could the problem be that if we deleted mentioned apps in 10/2019 that we just removed collaborator role of our current account and the apps still exist in other profile? If at the same time the assigned API key is from current account then this is why the migration is blocked?
Your issue seems to be similar to this Github issue. Going by the error, what you could do is either remove all the collaborators or the keys from every account and then manage the collaborators.
Note: For the given case, it seems to be a bug related to LUIS app ID's preventing migration even though the apps are deleted. The fix for this has been pushed in the current release. You can try to migrate and see if you are able to do it successfully without any issues.
Hope this helps.