Is it not possible to send email using powershell module?

Adam Kamieński 0 Reputation points

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.
763 questions
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,065 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Adam Kamieński 0 Reputation points

    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.