Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.24k stars 3.84k forks source link

[Doc]: Need help in updating the powershell command - https://learn.microsoft.com/en-us/powershell/module/az.network/set-azprivatelinkservice?view=azps-12.1.0#example-1-creates-a-private-link-service-and-update-its #25661

Open Ravi2305 opened 2 months ago

Ravi2305 commented 2 months ago

Type of issue

Code doesn't work

Feedback

Ask: This document Set-AzPrivateLinkService (Az.Network) | Microsoft Learn has mention of an example where private link service is created and its ipconfig is updated. In this example command to get public IP is incorrect, its highlighted in screenshot below

Command - $publicip = Get-AzPublicIpAddress -ResourceGroupName "myresourcegroup" This command is fetching all public IP addresses present in resource group, due to which when we associate to frontend of Load Balancer, it throws an error -

Correct Command - $publicip = Get-AzPublicIpAddress -Name myPublicIp1 -ResourceGroupName "myresourcegroup"****

So, modifications need to be done from $publicip = Get-AzPublicIpAddress -ResourceGroupName "myresourcegroup" to Get-AzPublicIpAddress -Name myPublicIp1 -ResourceGroupName "myresourcegroup"

Page URL

https://learn.microsoft.com/en-us/powershell/module/az.network/set-azprivatelinkservice?view=azps-12.1.0

Content source URL

https://learn.microsoft.com/en-us/powershell/module/az.network/set-azprivatelinkservice?view=azps-12.1.0#example-1-creates-a-private-link-service-and-update-its

Author

No response

Document Id

No response

Ravi2305 commented 2 months ago

Reference error messages

image

image

image

duongau commented 2 months ago

Hello @Ravi2305 This has been resolved. #please-close

Ravi2305 commented 2 months ago

[heart] Ravi Kumar Krishnamurthy reacted to your message:


From: Duong Au @.> Sent: Friday, August 16, 2024 4:51:42 PM To: Azure/azure-powershell @.> Cc: Ravi Kumar Krishnamurthy @.>; Mention @.> Subject: Re: [Azure/azure-powershell] [Doc]: Need help in updating the powershell command - https://learn.microsoft.com/en-us/powershell/module/az.network/set-azprivatelinkservice?view=azps-12.1.0#example-1-creates-a-private-link-service-and-update-its (Issue #...

Hello @Ravi2305https://github.com/Ravi2305 This has been resolved. #please-close

— Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-powershell/issues/25661#issuecomment-2293838036, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BE42OETKF65UX5VO4KDWUULZRYUZ5AVCNFSM6AAAAABLP56S26VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJTHAZTQMBTGY. You are receiving this because you were mentioned.Message ID: @.***>

Ravi2305 commented 2 months ago

@duongau the document is still not updated with the correct command, could you please recheck? $publicip = Get-AzPublicIpAddress -ResourceGroupName "myresourcegroup"

Correct Command Is- $publicip = Get-AzPublicIpAddress -Name myPublicIp1 -ResourceGroupName "myresourcegroup"

duongau commented 1 month ago

Hi Ravi, if you click on the pencil on the top right, you'll see that it has been updated in GitHub: image I will need to check with the PS team to understand why it hasn't reflect on the live website.