Im Running the below command. in powershell,
$kubletIdentityObjectId = az aks show --resource-group <rg_name> --name <Cluster_name> --qurey identityprofile.kubeletidentity.objectId --out tsv
$azureContainerRegistryId = az acr show --resource-group <rg_name> --name <CR_Name> --qurey id --out tsv
az role assignment create --role acrpull --assignee-object-id $kubletIdentityObjectId --scope $azureContainerRegistryId
It gives the below error
]1