Generating an API key from the SendGrid portal

Perform the following steps:

  1. In order to utilize the SendGrid account in the Azure Functions runtime, we need to provide the SendGrid API key as input for Azure Functions. You can generate an API key from the SendGrid portal. Let's navigate to the SendGrid portal by clicking on the Manage button in the Essentials blade of the SendGrid Account, as shown in the following screenshot:

  1. In the SendGrid portal, click on API Keys under the Settings section of the left-hand side menu, as shown in the following screenshot:
  1. In the API Keys page, click on Create API Key, as shown in the following screenshot:

  1. In the Create API Key popup, provide a name and choose API Key Permissions, and then click on the Create & View button.
  2. After a moment, you will be able to see the API key. Click on the key to copy it to the clipboard, as shown in the following screenshot: