Configuring application settings
The Azure Function depends on two application settings. These application settings are read into two private static strings in the Azure Function, as shown in the following code snippet:
private static string statesetID = Environment.GetEnvironmentVariable("statesetid"); private static string subscriptionKey = Environment.GetEnvironmentVariable("subscriptionkey");
We will add both application settings through the Azure portal interface. Execute the following steps:
- Select the
AzureMapUpdater
resource. - Select Configuration in the left menu.
- Click on + New application setting. This allows us to specify a name and a value. Use this step to add the following two application settings:
- The application settings will appear in the list.
- Click the Save button to save the changes.
The following screenshot highlights this process: