Create an APIM Instance
resource apim 'Microsoft.ApiManagement/service@2021-04-01-preview' = {
name: apimName
location: region
sku: {
name: sku
capacity: 1
}
properties: {
publisherEmail: publisherEmail
publisherName: publisherName
virtualNetworkConfiguration: {
subnetResourceId: '/subscriptions/${subscription().subscriptionId}/resourceGroups/${resourceGroup().name}/providers/Microsoft.Network/virtualNetworks/${virtualNetworkName}/subnets/${subnetName_ApimAccess}'
}
virtualNetworkType:'External'
}
}
This example allows the APIM to be connected to a subnet on a virtual network.