Is it not possible to send email using powershell module?

Adam Kamieński 0 Reputation points
2023-04-24T18:34:45.8766667+00:00

Hello, I'm learning Communication Service and I'm very confused so far on how to use it. My initial plan is simple - get connection string using Powershell to variable and use that variable in send command. I can't find in documentation neither the command to retrieve connection string nor possibility to send an email. I've found an az cli command to send an email, but no way to get conn string. How am I supposed to do that without storing connection string as env variable or in plain text in script or using key vault? Plus, where's the Powershell command to send an email? Is it only possible with az cli, like what's up with that??

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
853 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Adam Kamieński 0 Reputation points
    2023-04-25T08:51:35.58+00:00

    It seems that connection strings are also retrieveable by command that retrieve access keys, as stated in this documentation. Regardless, lack of possiblity to use same module to both retrieve connection string and send an email (in case of first one I must use ps module, in case of second one az cli) is very dissapointing.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.