ALZ-Bicep icon indicating copy to clipboard operation
ALZ-Bicep copied to clipboard

hubNetworking: Make examples working with WhatIf mode

Open olljanat opened this issue 2 years ago • 2 comments

Overview/Summary

Solving multiple issues with WhatIf mode in Hub Networking.

This PR fixes/adds/changes/removes

Related to hub networking part of #249

However WhatIf test cannot be yet enabled to CI because Microsoft.Network/virtualNetworkGateways does report that it would remove properties.remoteVirtualNetworkPeerings and Microsoft.Network/virtualNetworks reports that it would remove properties.virtualNetworkPeerings both of those are just noise https://github.com/Azure/arm-template-whatif/issues/233

Breaking Changes

N/A

Testing Evidence

Not yet...

As part of this Pull Request I have

olljanat avatar Aug 11 '22 13:08 olljanat

Marked this one as draft for now because I didn't had time to re-run this in empty environment and collect evidences. And some of those changes might need discussion if I'm solving them correct way.

Also it might be that if #252 gets merged first there will be conflicts.

olljanat avatar Aug 11 '22 13:08 olljanat

Looks that version of #252 which finally got merged didn't have conflicts with this one so I rebased it with main branch. However now there looks to be new PR #306 which touches same area.

olljanat avatar Sep 06 '22 11:09 olljanat

@jtracey93 I can see that #306 was merged so I updated this one. Can you take first look if this something which can be included here? (assuming that it passes tests and readme is updated).

olljanat avatar Oct 19 '22 14:10 olljanat

ping @jtracey93

olljanat avatar Oct 28 '22 09:10 olljanat

Is this just laying around? There are multiple issues with hub-spoke peering reported here here that would be fixed by this PR @jtracey93

Strandfelt avatar May 30 '23 06:05 Strandfelt

@Strandfelt as far I understand the challenge is that it is unclear inside of Microsoft that who/where those challenges should be fixed? Options are Azure API's, API clients like Bicep and actual client applications like this repository. And because this PR was not approved, I don't expect to see this solved anytime soon.

If we can find couple of persons who are interested enough about topic, it would be possible quite easily to build custom WhatIf tester which can handle those bugs in API. I once started to build that kind of in https://github.com/olljanat/alz-bicep-ci/blob/ps-whatif/PSAzureAPI/PSAzureAPI.psm1

olljanat avatar May 30 '23 15:05 olljanat

Closing as stale

jtracey93 avatar Oct 19 '23 16:10 jtracey93