trying to create a docker container image and upload it to an ACR with the devops pipelines

Failed to set Azure permission ‘RoleAssignmentId: 2f9a0eac-6b7f-466a-b0b9-9e49e7eeaa19’ for the service principal ‘6868d962-5412-4490-aa69-361690d3f0d5’ on subscription ID ‘a2b28c85-1948-4263-90ca-bade2bac4df4’: error code: Forbidden, inner error code: AuthorizationFailed, inner error message The client ‘kk_lab_user_main-669f8f504db947e5@azurekmlprodkodekloud.onmicrosoft.com’ with object id ‘22c2df47-ee5d-4126-8a2c-5d14f3eebb0c’ does not have authorization to perform action ‘Microsoft.Authorization/roleAssignments/write’ over scope ‘/subscriptions/a2b28c85-1948-4263-90ca-bade2bac4df4/resourceGroups/kml_rg_main-669f8f504db947e5/providers/Microsoft.ContainerRegistry/registries/mycontreg23/providers/Microsoft.Authorization/roleAssignments/2f9a0eac-6b7f-466a-b0b9-9e49e7eeaa19’ or the scope is invalid. If access was recently granted, please refresh your credentials. Ensure that the user has ‘Owner’ or ‘User Access Administrator’ permissions on the Subscription.

Solution:

Hi @MSK

I assume that you are trying to push a Container image to ACR from one of our Azure Playgrounds.
As the error says

Ensure that the user has ‘Owner’ or ‘User Access Administrator’ permissions on the Subscription

I doubt you can achieve this on the playground, as KK playgrounds have limited access to supported services due to security and cost considerations.