Open jamesaepp opened 1 month ago
Thank you for opening this issue, we will look into it.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @acsdevx-msft.
Can Microsoft give any updates on this issue or any approximation of timeline/next steps?
Wondering if anyone from MS has reviewed the details of this issue?
Is anyone from MS going to look at this issue? The lack of reaction to this makes me seriously reconsider using and recommending ACS for Email if first-party applications don't get attention.
Describe the bug
See the context for all my details, but essentially the operation of the
az communication email send
command is incredibly inconsistent with MS documentation and is misleading to administrators on how to authenticate to the service when using azcli.Related command
az communication email send
Errors
Issue script & Debug output
Expected behavior
See context.
Environment Summary
I don't have this information on me at present, sorry.
Additional context
This is driving me crazy and I think this is either a bug or it's working as intended and the MS documentation for the service is incredibly misleading, or no one has tested this properly.
I am wanting to use an Azure service principal to send mail with the az cli.
This documentation under the 'Azure CLI' pivot suggests you need to sign in to the Azure CLI.
I know this isn't correct because a connection string with the access key does work without needing to login to az cli. Even still, this is something that I want to do to send emails.
Further though, I do not understand for the LIFE OF ME why the connection string is required with an accesskey. It's antithetical to the principal of least privileged access.
My service principal doesn't need to make voice calls. Or send SMS. Or do teams messaging. It needs to send email. That's it. I don't want to give the service principal the access key to the entire Azure Communication Services resource.
What I really really really want to encourage the MS developers to do is drop the requirement for the accesskey in the connection string. Sure, you need a connection string to understand what endpoint to work with, but you don't always need the access key.
I also find it confusing under this documentation how the connection string isn't considered a required parameter. Technically speaking it isn't as there's an environment variable, but this is documentation intended to be read by humans. Educating the human audience on "hey you at least need this parameter OR an envvar" is exactly what should show up under the Required Parameters section.