ERROR no credentials for cloud azure exist in file

Trying to add a credential to azure cloud with juju 3.3 I am getting the error below:

ERROR no credentials for cloud azure exist in file <path>

Weird thing is - I ran the add-credential interactively and it allowed me to add it, then copy-pasted the output of juju show-credential azure azure_cloud --show-secrets to a credentials.yaml file and still I get the same error. Any clues?

The credentials.yaml looks like this:

azure:
  azure_cloud:
    content:
      auth-type: service-principal-secret
      application-id: <uuid>
      application-password: <secret password>
      subscription-id: <uuid>

Seems the:

credentials:

was missing from the yaml file. Weird enough - this worked for AWS without the credentials part.