colossal-room-15708
03/31/2020, 6:49 AMenough-oil-63049
04/01/2020, 2:09 AMcolossal-room-15708
04/01/2020, 9:29 AMPUT
to the azure resource provider contains an empty list of subnets, but the resource on ARM has the subnets as nested resources, hence it tries to delete the subnets (desired state and all).
If I specify them inline then all is good.enough-oil-63049
04/01/2020, 11:12 AMcolossal-room-15708
04/01/2020, 11:53 AMenough-oil-63049
04/14/2020, 11:16 AMcolossal-room-15708
04/14/2020, 12:29 PMtall-librarian-49374
04/14/2020, 12:44 PMimport * as azure from "@pulumi/azure";
import * as pulumi from "@pulumi/pulumi";
const defaultTags = {
"environment": "stack_name",
"new": "tag",
};
const resourceGroup = new azure.core.ResourceGroup("rg", {
tags: defaultTags,
});
const vnet = new azure.network.VirtualNetwork("server-network", {
resourceGroupName: resourceGroup.name,
name: "ssvc-net-stack-name",
addressSpaces: ["10.0.0.0/16"],
tags: defaultTags,
});
const subnetConfig = [
['AzureBastionSubnet', '10.0.1.0/27'],
['GatewaySubnet', '10.0.2.0/27'],
['AzureFirewallSubnet', '10.0.3.0/27'],
];
for (let subnet of subnetConfig) {
const subnetResource = new azure.network.Subnet(subnet[0], {
resourceGroupName: resourceGroup.name,
name: subnet[0],
addressPrefix: subnet[1],
virtualNetworkName: vnet.name,
});
}
pulumi up
succeedscolossal-room-15708
04/14/2020, 1:11 PMtall-librarian-49374
04/14/2020, 1:21 PMcolossal-room-15708
04/14/2020, 1:30 PMtall-librarian-49374
04/14/2020, 1:34 PMcolossal-room-15708
04/14/2020, 1:40 PMtall-librarian-49374
04/14/2020, 1:50 PMenough-oil-63049
04/15/2020, 8:27 AMcolossal-room-15708
04/15/2020, 8:44 AMpulumi up -r
enough-oil-63049
04/15/2020, 8:47 AM