Skip to main content
Glama
Azure-Samples

Secure Remote MCP Server

appinsights-access.bicep865 B
param principalID string param roleDefinitionID string param appInsightsName string resource applicationInsights 'Microsoft.Insights/components@2020-02-02' existing = { name: appInsightsName } // Allow access from API to app insights using a managed identity and least priv role resource appInsightsRoleAssignment 'Microsoft.Authorization/roleAssignments@2020-04-01-preview' = { name: guid(applicationInsights.id, principalID, roleDefinitionID) scope: applicationInsights properties: { roleDefinitionId: resourceId('Microsoft.Authorization/roleDefinitions', roleDefinitionID) principalId: principalID principalType: 'ServicePrincipal' // Workaround for https://learn.microsoft.com/en-us/azure/role-based-access-control/role-assignments-template#new-service-principal } } output ROLE_ASSIGNMENT_NAME string = appInsightsRoleAssignment.name

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Azure-Samples/remote-mcp-apim-functions-python'

If you have feedback or need assistance with the MCP directory API, please join our Discord server