我正在尝试将 VNET 集成添加到我的函数应用中,但它似乎不起作用。
不支持此功能吗?该版本有效,但 VNET 集成无效。
我在网上查看了一些示例,并且完全按照介绍完成,但没有运气。但是,这确实适用于 Web 应用程序。
这样的事情不起作用似乎很奇怪。
const getDescendants = async (pId) => {
const array1 = [
{
_id :"60e884ceb73aa620d0583e61",
label :"label_1003",
childrens :[
{
_id :"60e884adb73aa620d0583e60",
label :"label_1002"
}
]
},
{
_id :"60e884adb73aa620d0583e60",
label :"label_1002",
childrens :[
{
_id :"60e88489b73aa620d0583e5f",
label :"label_1001"
}
]
},
{
_id :"60e88489b73aa620d0583e5f",
label :"label_1001",
childrens :[
{
_id :"60e88444b73aa620d0583e5e",
label :"dechet_1000"
}
]
},
{
_id :"60e88444b73aa620d0583e5e",
label :"label_1000",
childrens :[]
},
];
let descendants = [];
let array = [];
let item = {
_id: 60e884ceb73aa620d0583e61,
label: 'label_1003',
childrens: [
{
_id: 60e884adb73aa620d0583e60,
label: 'label_1002'
}
]
};
let { _id, label, childrens } = item;
array.push({ _id, label, childrens });
while (array.length > 0) {
let currentnode = array.pop();
let children = array1.find(element => { return element._id ===
currentnode.childrens[0]._id.toString()});
children.forEach((child) => {
let { _id, label, childrens } = child;
descendants.push({ _id, label, childrens });
if (child.childrens.length > 0) {
array.push(child);
}
});
}
return descendants;
};
答案 0 :(得分:0)
你需要Microsoft.Web sites/virtualNetworkConnections
{
"name": "string",
"type": "Microsoft.Web/sites/virtualNetworkConnections",
"apiVersion": "2018-02-01",
"kind": "string",
"properties": {
"vnetResourceId": "string",
"certBlob": "string",
"dnsServers": "string",
"isSwift": "boolean"
},
"resources": []
}
您的模板中缺少哪些内容。