Azure 市场 Sendgrid 用户名

Azure market place Sendgrid username

微软文档How to Send Email Using SendGrid with Azure says that once an account has been set up you can see the SendGrid credentials by clicking on the key icon. This seems to have disappeared from the Azure portal. How can I find the SendGrid username for this service. I believe it is in the format of azure***@azure.com (see

看来您忘记了您的SendGrid账户的用户名和密码,所以您无法通过Azure门户上的Reset Password按钮重置密码,如下图。

在 Azure 门户上,Export template 选项卡中创建帐户时似乎注册了用户名和电子邮件,如下图。

您可以尝试使用它来重置密码,然后在 SendGrid 门户中管理您的 API 密钥。

我遇到了类似的问题,并猜测 Azure CLI 是否会提供给我并且确实提供了。

在门户中使用云 shell 选项,右上角的图标:

将 shell 类型从 PowerShell 更改为 Bash,如果您有多个帐户,则需要 select 正确的帐户

az account show

如果不在正确的帐户中(更新 - 如果您有权访问所有帐户,那么您将不需要切换帐户,因此您可以跳到最后一点)

az account list
az account set -s <id of relevant subscription>

然后在 SendGrid 资源边栏选项卡上转到属性并复制资源 ID,然后 运行

az resource show --ids /subscriptions/xxxxxx/resourceGroups/xxxxx/providers/Sendgrid.Email/accounts/xxxxx

显然使用您的资源 ID,在输出中您将看到 SendGrid 用户名

Simon提供的应该能正确回答你的问题。为了补充他的回答,我们还可以从属性中复制 ResourceID 部分,例如用黄色标记突出显示的部分:

和 运行 在本地系统中安装 Azure CLI 后,在本地命令提示符下执行以下命令:

az resource show --ids <Copied ResourceID>

转换为

az resource show --ids/subscriptions/xxxxxx/resourceGroups/xxxxx/providers/Sendgrid.Email/accounts/xxxxx

优点:这不需要我们尝试Bash Azure Cloud中的脚本Shell(这需要配置显式存储帐户)