Closed michaelpace-bjss closed 1 month ago
@michaelpace-bjss, thanks for submitting this issue for the avm/res/network/virtual-network
module!
[!IMPORTANT] A member of the @Azure/avm-res-network-virtualnetwork-module-owners-bicep or @Azure/avm-res-network-virtualnetwork-module-contributors-bicep team will review it soon!
Good day @michaelpace-bjss,
the examples are actually generated from the deployment test cases (in the /tests/e2e/...
folders. In other words, they're deployed for every module tests to validate they work.
I also just took a quick look at the virtual-network/subnet
module, and the converation you're suggesting is implemented by the module itself which is why it's only asking for a string array:
Are you using an older version of the module by any chance?
@AlexanderSehr. Bad timing on my part. Started using writing bicep the day before published updates to module and tested the day after and didn't spot the version change. School boy error. Issue closed.
Check for previous/existing GitHub issues
Issue Type?
I'm not sure
Module Name
avm/res/network/virtual-network
(Optional) Module Version
No response
Description
AVM Bicep documentation for adding service endpoints to a virtual network subnet, indicates you should pass an array of strings, e.g.
However, deployment of this code will generate the following error: "InvalidJsonResourceType - Value for resource type Microsoft.WindowsAzure.Networking.Nrp.Frontend.Contract.Csm.Public.VirtualNetwork is invalid, exception: Could not cast or convert from System.String to Microsoft.WindowsAzure.Networking.Nrp.Frontend.Contract.Csm.Public.ServiceTunnel."
The documentation examples should be modified to:
(Optional) Correlation Id
No response