简体   繁体   中英

Azure market place Sendgrid username

The Microsoft documentation 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 change username for ...?

I had a similar issue and took a guess to see if Azure CLI would give it to me and it does.

In the portal use the cloud shell option, this icon top right:

在此处输入图片说明

Change the shell type from PowerShell to Bash, if you have multiple accounts then you will need to select the right account

az account show

If not in the right account ( UPDATE - if you have permissions to access all accounts then you won't need to switch accounts so you can skip to the final bit)

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

Then on the SendGrid resource blade go to Properties and copy the Resource ID and then run

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

using your resource id obviously and in the output you will see the SendGrid username

It sounds like you forgot the username and password of your SendGrid account, so you can not reset your password via the button Reset Password on Azure portal, as the figure below.

在此处输入图片说明

On Azure portal, there seems to be username and email registered when account created in the tab Export template , as the figure below.

在此处输入图片说明

You can try to use it to reset password, and then to manage your API keys in SendGrid portal.

The one provided by Simon should answer your question rightly. To supplement his answer, we can also just copy ResourceID section from properties like highlighted in yellow marker: 在 Azure 管理门户中复制 ResourceID 部分

and run the below command in our local command prompt once we have installed Azure CLI in our local system:

az resource show --ids <Copied ResourceID>

which translates to

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

Advantage : This does not require us to try Bash Script in the Azure Cloud Shell (which requires configuration of an explicit storage account)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM