I assigned a system assigned managedidentity to a containerApp through the Azure Portal. It has the role of AzrPull set at both the subscription level and registry level.
I try to remove the managedidentity through CLI
az containerapp identity remove \
--name sysident \
--resource-group myrg \
--system-assigned \
getting this error:
(InvalidParameterValueInContainerTemplate) The following field(s) are either invalid or missing. Field 'configuration.Registries.myregistry.azurecr.io.Identity' is invalid with details: 'Invalid value: "system": Managed Identity does not exist';.
Removing it through portal also gives the same error shown above.
How to resolve this? Thanks