Ensure that Azure container registry logs are sent to the Log Analytics workspace.
Enabling Log Analytics for Azure container registry ensures that logs are shipped to a central repository that can be queried and audited.
Modify container registry and enable Send to Log Analytics from diagnostic settings.