Skip to content

[Doc]: Update commands are not working as expected #27573

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
joteromontes opened this issue Apr 15, 2025 · 3 comments
Open

[Doc]: Update commands are not working as expected #27573

joteromontes opened this issue Apr 15, 2025 · 3 comments
Labels

Comments

@joteromontes
Copy link

Type of issue

Other (describe below)

Feedback

https://learn.microsoft.com/en-us/powershell/module/az.network/update-azvirtualhubvnetconnection?view=azps-13.4.0#example-1

The example is to update one already existent connection, however the commands in the example do not do this.

We need a working example on how to achieve this.

Page URL

https://learn.microsoft.com/en-us/powershell/module/az.network/update-azvirtualhubvnetconnection?view=azps-13.4.0&viewFallbackFrom=azps-13.0.0

Content source URL

https://github.com/Azure/azure-powershell/blob/main/src/Network/Network/help/Update-AzVirtualHubVnetConnection.md

Author

@mikefrobbins

Document Id

7daf6d69-b3d2-27eb-f852-8e5a8a4f3610

Platform Id

cbbd24b3-c556-fe66-9892-584e79548fbf

@joteromontes joteromontes added the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Apr 15, 2025
@isra-fel isra-fel added Network Service Attention This issue is responsible by Azure service team. Network - Virtual WAN Doc - Reference and removed needs-triage This is a new issue that needs to be triaged to the appropriate team. Network labels Apr 17, 2025
Copy link
Contributor

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @vwansuppgithub.

1 similar comment
Copy link
Contributor

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @vwansuppgithub.

@aldairzamoramsft
Copy link
Contributor

I reviewed this and there is nothing wrong with the example as it updates the connection to change "-EnableInternetSecurity "

The whole examples start since creating the RG, VNET, VWAN, VHUB and VNET connection, then the last command UPDATES the vnet connection
"The above will create a resource group, Virtual WAN, Virtual Network, Virtual Hub in Central US in that resource group in Azure. A Virtual Network Connection is also created which is peer the Virtual Network to the Virtual Hub. This Virtual Network Connection is then updated to enable internet security."

Update-AzVirtualHubVnetConnection -ResourceGroupName "testRG" -VirtualHubName "westushub" -Name "testvnetconnection" -EnableInternetSecurity $true


However I did find wrong that there is an IP overlapping between the VNET and vhub hence it fails, but there is nothing wrong with the update exmple

I will make a PR to update the address space of the VHUB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants