Thank you for following up on this and I apologize for the delayed response!
Error Message:
A role assignment request with Id: ...-95e90998db67 already exists (Code:Conflict)...
I understand that the first deployment of your Bicep template to automate the PIM's Eligibility Schedule Requests are working as expected. However, after any template changes or re-deployment of the same code with no change, you're receiving the above error.
I understand that the first deployment of your Bicep template to automate the PIM's Eligibility Schedule Requests are working as expected. However, after any template changes or re-deployment of the same code with no change, you're receiving the above error.
Based off your error message, it looks like you're trying to create a Role Eligibility Schedule Request using the same role assignment request ID - ...95e90998db67
, which is already present. After researching your error message, I found that the error you received is expected and to resolve this you'll have to provide a unique Request ID (roleEligibilityScheduleRequestName) prior to re-executing your Bicep deployment.
I hope this helps!
I hope this helps!
If you have any other questions, please let me know. Thank you for your time and patience throughout this issue.
If the information helped address your question, please Accept the answer. This will help us and also improve searchability for others in the community who might be researching similar information.