Hello Parag Kale,
If you're leveraging the Graph library, you can configure Azure AD settings like ClientId in your Function App, add them as application settings using the format AzureAd__ClientId and AzureAd__TenantId (note the double underscores for nested keys). These will be available via IConfiguration
in your code, e.g., _configuration["AzureAd:ClientId"]
or _configuration.GetSection("AzureAd")["ClientId"]
. If you're not leveraging MSAL, you can simply create ClientId application setting/environment variable and pull it in code using _configuration["ClientId"];
. For local development, you can set the same keys in local.settings.json under the Values section. This approach keeps your configuration environment-specific, secure, and easy to manage.