@Jinalee (Jinalee Arsakulasuriya), Thanks for posting in Q&A.
Based on my researching, for the command you use, it is to rotate the Microsoft Entra Kerberos server key. But before doing this, please refer to the commands in Example 4 to firstly create the new Microsoft Entra ID Kerberos Server object And then run the previous command to rotate.
However, if the issue still persists, please open a new thread with the following tag to help on the issue.
Hope the above information can help.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.