Skip to main content
Glama
Azure-Samples

Secure Remote MCP Server

vnet.bicep2.48 kB
@description('Specifies the name of the virtual network.') param vNetName string @description('Specifies the location.') param location string = resourceGroup().location @description('Specifies the name of the subnet for the Service Bus private endpoint.') param peSubnetName string = 'private-endpoints-subnet' @description('Specifies the name of the subnet for Function App virtual network integration.') param appSubnetName string = 'app' param tags object = {} resource virtualNetwork 'Microsoft.Network/virtualNetworks@2023-05-01' = { name: vNetName location: location tags: tags properties: { addressSpace: { addressPrefixes: [ '10.0.0.0/16' ] } encryption: { enabled: false enforcement: 'AllowUnencrypted' } subnets: [ { name: peSubnetName id: resourceId('Microsoft.Network/virtualNetworks/subnets', vNetName, 'private-endpoints-subnet') properties: { addressPrefixes: [ '10.0.1.0/24' ] delegations: [] privateEndpointNetworkPolicies: 'Disabled' privateLinkServiceNetworkPolicies: 'Enabled' } type: 'Microsoft.Network/virtualNetworks/subnets' } { name: appSubnetName id: resourceId('Microsoft.Network/virtualNetworks/subnets', vNetName, 'app') properties: { addressPrefixes: [ '10.0.2.0/24' ] delegations: [ { name: 'delegation' id: resourceId('Microsoft.Network/virtualNetworks/subnets/delegations', vNetName, 'app', 'delegation') properties: { //Microsoft.App/environments is the correct delegation for Flex Consumption VNet integration serviceName: 'Microsoft.App/environments' } type: 'Microsoft.Network/virtualNetworks/subnets/delegations' } ] privateEndpointNetworkPolicies: 'Disabled' privateLinkServiceNetworkPolicies: 'Enabled' } type: 'Microsoft.Network/virtualNetworks/subnets' } ] virtualNetworkPeerings: [] enableDdosProtection: false } } output peSubnetName string = virtualNetwork.properties.subnets[0].name output peSubnetID string = virtualNetwork.properties.subnets[0].id output appSubnetName string = virtualNetwork.properties.subnets[1].name output appSubnetID string = virtualNetwork.properties.subnets[1].id

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