able-engineer-79880
07/13/2022, 3:16 AMexport class subNet {
constructor(name: string) {
const data = new azure.network.Subnet("data", {
addressPrefixes: [config.require('datasubnetrange')],
enforcePrivateLinkEndpointNetworkPolicies: true,
name: "data",
resourceGroupName: "dpc-spi-networking-"+config.require('envid')+"-rg-aue-"+config.require('index'),
serviceEndpoints: [
//"Microsoft.KeyVault",
//"Microsoft.AzureActiveDirectory",
//"Microsoft.Storage",
//"Microsoft.Sql",
config.require('serviceEndpoints')
],
virtualNetworkName: "dpc-vnet-spi-"+config.require('envid')+"-aue-"+config.require('index'),
}, {
protect: true,
});
}
}
My stack yaml will look something like
env:serviceEndpoints:
- Microsoft.KeyVault
- Microsoft.AzureActiveDirectory
- Microsoft.Storage
- Microsoft.Sql
I've tried everything I can think of. Any help would be greatly appreciated.quaint-bird-18760
07/13/2022, 3:27 AMconfig.requireObject("serviceEndpoints")
should do the trick.serviceEndpoints: config.requireObject('serviceEndpoints'),
able-engineer-79880
07/13/2022, 4:23 AM