Skip to content

Commit

Permalink
Fix import test
Browse files Browse the repository at this point in the history
Add new field (privateEndpointVNetPolicies) which is now populated by default in the new version of the VirtualNetwork resource.

The value ("Disabled") was found by creating a VirtualNetwork manually and exporting as an ARM template in the portal.
  • Loading branch information
danielrbradley authored and EronWright committed Jan 24, 2025
1 parent a13ca61 commit a5ec1de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/import/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ async function main() {
privateEndpointNetworkPolicies: "Disabled",
privateLinkServiceNetworkPolicies: "Disabled", // It's "Enabled" in the imported resource. We are testing `ignoreChanges` here.
}],
privateEndpointVNetPolicies: "Disabled",
}, { import: vnetId, ignoreChanges: ["subnets[0].privateLinkServiceNetworkPolicies", "subnets[0].type", "enableVmProtection"] });
}

Expand Down

0 comments on commit a5ec1de

Please sign in to comment.