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 committed Jan 16, 2025
1 parent 8b39de5 commit 0482f18
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 0482f18

Please sign in to comment.