Upon providing wrong key for authentication during publisher client, we get
UnboundLocalError: local variable 'authentication_policy' referenced before assignment on providing wrong credential in the publisher client
This message must improve - perhaps start with insisting on providing an AzureKeyCredential?