Service Endpoint deployment clarification #13
-
Wanted to see if you could clarify what was happening with the service endpoint property as part of a VNET deployment I am not following how the service endpoint information from the parameters file will update the ServiceEndpoints variable with the right information serviceEndpoints: contains(sn, 'serviceEndpoints') ? serviceEndpoints[sn.serviceEndpoints] : serviceEndpoints.default the sn,ServiceEndpoints value being passed is a string, how is that replacing the default value? var serviceEndpoints = {
default: []
'Microsoft.Storage': [
{
service: 'Microsoft.Storage'
locations: [
resourceGroup().location
]
}
]
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @kevball2 sorry for delay, I didn't see this one. This is simply a lookup, however the name of the key for the lookup is the resource type. {
"name": "snBE02",
"prefix": "64/28",
"NSG": 1,
"Route": 0, //1
"FlowLogEnabled": 1,
"FlowAnalyticsEnabled": 1,
"delegations": "Microsoft.ContainerInstance/containerGroups"
} var delegations = {
default: []
'Microsoft.Web/serverfarms': [
{
name: 'delegation'
properties: {
serviceName: 'Microsoft.Web/serverfarms'
}
}
]
'Microsoft.ContainerInstance/containerGroups': [
{
name: 'delegation'
properties: {
serviceName: 'Microsoft.ContainerInstance/containerGroups'
}
}
]
'Microsoft.Network/dnsResolvers': [
{
name: 'delegation'
properties: {
serviceName: 'Microsoft.Network/dnsResolvers'
}
}
]
}
delegations: contains(sn, 'delegations') ? delegations[sn.delegations] : delegations.default It's easier to show with the delegations above. Most subnets can only handle the 1 delegation, however if they support more you can potentially have multiple resources types that get assigned. Basically if you don't specify any it just used the blank array from default. |
Beta Was this translation helpful? Give feedback.
Hi @kevball2
sorry for delay, I didn't see this one.
This is simply a lookup, however the name of the key for the lookup is the resource type.
https://github.com/brwilkinson/AzureDeploymentFramework/blob/main/ADF/tenants/AOA/ACU1.T5.parameters.json#L359