WHY?
While running pipeline with the Create Bicep Deployment Job we will get the error:
ERROR: {'code': 'AuthorizationFailed', 'message': "The client '0ddf4906-d1f2-4d9f-a900-91af50dba0ec' with object id '0ddf4906-d1f2-4d9f-a900-91af50dba0ec' does not have authorization to perform action 'Microsoft.Resources/deployments/validate/action' over scope '/subscriptions/f1af7a1f-db16-4c85-b133-e7c3c1f094cc' or the scope is invalid. If access was recently granted, please refresh your credentials."}
WHY? While running pipeline with the Create Bicep Deployment Job we will get the error:
ERROR: {'code': 'AuthorizationFailed', 'message': "The client '0ddf4906-d1f2-4d9f-a900-91af50dba0ec' with object id '0ddf4906-d1f2-4d9f-a900-91af50dba0ec' does not have authorization to perform action 'Microsoft.Resources/deployments/validate/action' over scope '/subscriptions/f1af7a1f-db16-4c85-b133-e7c3c1f094cc' or the scope is invalid. If access was recently granted, please refresh your credentials."}
[error]Script failed with exit code: 1