Skip to content

PR: LoadBalancerBackendAddressPool powershell Cmdlets #11734

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

Merged
merged 9 commits into from
May 30, 2020

Conversation

aegal
Copy link
Contributor

@aegal aegal commented Apr 28, 2020

Description

Checklist

  • I have read the Submitting Changes section of CONTRIBUTING.md
  • The title of the PR is clear and informative
  • The appropriate ChangeLog.md file(s) has been updated:
    • For any service, the ChangeLog.md file can be found at src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
    • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header -- no new version header should be added
  • The PR does not introduce breaking changes
  • If applicable, the changes made in the PR have proper test coverage
  • For public API changes to cmdlets:
    • a cmdlet design review was approved for the changes in this repository (Microsoft internal only)
    • the markdown help files have been regenerated using the commands listed here

@aegal aegal requested a review from ninzavivek April 28, 2020 17:43
@adxsdkps
Copy link
Collaborator

Can one of the admins verify this patch?


[JsonProperty(Order = 1)]
public string IpAddress { get; set; }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to check the combination, as we dicussed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No I don't think so, right now we don't populate NIC config if provided, so PsLoadBalancerBackendAddress will always have a IpAddress and VNET ID, other wise an error is returned by New-AzLoadBalancerBackendAddressConfig which creates this object.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the fact that we cannot modify does not mean that we can see it as read only

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is read only if available now.

// CNM to MNM
cfg.CreateMap<CNM.PSNetworkInterfaceIPConfiguration, MNM.NetworkInterfaceIPConfiguration>();

// LoadBalancerBackendAddress

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move above nic?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should actually remove NetworkInterfaceIPConfiguration conversion here as we are not allowing that in this change.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also when we do we'll do on the load balancer backend address, not on this networkInterfaces inside the backend pool

@aegal aegal requested review from gmainar and anton-evseev April 28, 2020 23:15
@aegal aegal changed the base branch from master to Az.Network-preview May 4, 2020 20:21
@aegal aegal changed the base branch from Az.Network-preview to master May 4, 2020 20:56
-updating help files
-addressing feedback
@aegal aegal changed the base branch from master to network-may May 18, 2020 02:48
@aegal aegal changed the base branch from network-may to master May 18, 2020 02:49
@aegal aegal changed the base branch from master to network-may May 18, 2020 02:50
@aegal aegal changed the title DRAFT PR: LoadBalancerBackendAddressPool powershell Cmdlets PR: LoadBalancerBackendAddressPool powershell Cmdlets May 18, 2020
Copy link
Contributor

@anton-evseev anton-evseev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address validation failures

@@ -1488,6 +1488,7 @@
"Set-AzVirtualNetworkGatewayConnectionSharedKey": "Set-AzureRmVirtualNetworkGatewayConnectionSharedKey",
"Set-AzVirtualNetworkGatewayConnection": "Set-AzureRmVirtualNetworkGatewayConnection",
"New-AzIpsecPolicy": "New-AzureRmIpsecPolicy",
"Get-AzLoadBalancerBackendAddressPool": "Get-AzureRmLoadBalancerBackendAddressPool",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to add mappings AFAIK

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesnt harm if I add it anyways? Wanna make sure I don't miss anything.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK AzureRm aliases aren't supported for new cmdlets as an incentive for users to move to Az
@VeryEarly could you please clarify?

@aegal aegal marked this pull request as ready for review May 18, 2020 23:36
Copy link

@ninzavivek ninzavivek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the included nupkg needed as part of PR?

// CNM to MNM
cfg.CreateMap<CNM.PSNetworkInterfaceIPConfiguration, MNM.NetworkInterfaceIPConfiguration>();

// LoadBalancerBackendAddress
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also when we do we'll do on the load balancer backend address, not on this networkInterfaces inside the backend pool

@@ -1488,6 +1488,7 @@
"Set-AzVirtualNetworkGatewayConnectionSharedKey": "Set-AzureRmVirtualNetworkGatewayConnectionSharedKey",
"Set-AzVirtualNetworkGatewayConnection": "Set-AzureRmVirtualNetworkGatewayConnection",
"New-AzIpsecPolicy": "New-AzureRmIpsecPolicy",
"Get-AzLoadBalancerBackendAddressPool": "Get-AzureRmLoadBalancerBackendAddressPool",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?


[JsonProperty(Order = 1)]
public string IpAddress { get; set; }

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the fact that we cannot modify does not mean that we can see it as read only

@VeryEarly VeryEarly self-assigned this May 25, 2020
@aegal aegal requested a review from isra-fel May 29, 2020 01:25
@aegal
Copy link
Contributor Author

aegal commented May 29, 2020

Adding @isra-fel to this, please take a look if you get a chance.

@VeryEarly
Copy link
Collaborator

Hi @aegal ,

  • Please add examples for "New-AzLoadBalancerBackendAddressPool.md"

  • There are test cases need to be re-recorded due to SDK upgrade

@aegal aegal requested a review from ninzavivek May 29, 2020 15:49
@aegal aegal dismissed anton-evseev’s stale review May 29, 2020 23:54

Changes accomodated

@aegal aegal merged commit 2b76cb9 into network-may May 30, 2020
shyamshd pushed a commit to shyamshd/azure-powershell that referenced this pull request Jun 12, 2020
* lb backend address pool create/update/delete operations

* adding tests with draft

* making some updates for design review PR to powershell team

* adding .md files

* -adding tests
-updating help files
-addressing feedback

* pulling in sdk changes for network-may branch for validation errors

* Addressing comments and updating output format for PsLoadBalancerBackendAddress

* updating .md files and making final changes

Co-authored-by: Ali Egal <[email protected]>
VeryEarly added a commit that referenced this pull request Jun 16, 2020
* PR: LoadBalancerBackendAddressPool powershell Cmdlets (#11734)

* lb backend address pool create/update/delete operations

* adding tests with draft

* making some updates for design review PR to powershell team

* adding .md files

* -adding tests
-updating help files
-addressing feedback

* pulling in sdk changes for network-may branch for validation errors

* Addressing comments and updating output format for PsLoadBalancerBackendAddress

* updating .md files and making final changes

Co-authored-by: Ali Egal <[email protected]>

* Adding new optional parameter to specify dns servers for Virtual Wan P2SVpnGateway and P2SClients (#12006)

* Adding new optional parameter to specify dns servers for Virtual Wan-P2SVpnGateway and P2SClients

* Incorporate code review comments and added test record

* Suppress warnings

* Suppress cred scan errors

* updating help files examples (#12068)

Co-authored-by: Ali Egal <[email protected]>

* multipip changes

* Do not pass new fields with default values unless configured explicitly (#12076)

* multi pip changes

* ps tests

* generating help files

* help files changes

* help file

* regenerating help files

* updated markdown file

* renaming the cmdlets

* name change

* tests

* renaming a help file

* updating the recordings

* test

* Used signed Network SDK with API version 2020-05-01 (#12100)

* Network SDK for 2020-05-01

* Fixes for FirewallPolicy

* Recs

* Recs

* SDK package

* Ignore Network API version in Batch tests

* CredScan suppression

* clean up

* updatid recordings

* clean up

* clean up

* Vpn gateway commandlet update (#12108)

* commit1

* commit2

* Fix1

Co-authored-by: Khushboo Baheti <[email protected]>

* addressing comments

* added exceptions

* correcting the exceptions

* Change RuleGroup, RuleCollectionGroup, and RuleType and add support for Multiple DNAT Rule Collections (#12095)

* Change RuleGroup and RuleCollectionGroup based on swagger change. Also,
add support for NAT Rule Collections containing multiple NAT Rule
Collections

* PR Comments

* Updated the SDK

* StaticAnalysis

* Previous changes got removed in rebase

* update to vnet reference id only

* Use Network SDK from NuGet (#12114)

* Use Network SDK from NuGet

* Additional mappings

* Firewall Policy ThreatIntelWhitelist (#12078)

* ti whitelist changes

* build fix

* help files

* added examples for help files

* adding the online version

* recordings done

* changed to markdown files

* fixed statis analysis

* added exception for static analysis

* addressing comments

* updated recordings

* new recordings

* updating due to validation error on CICD pipeline

* refreshing test files, updating to remove id from variable to fix casting error

* DNS Proxy in Firewall Policy (#12120)

* merge conflict

* fixes

* tejas review

Co-authored-by: Ishani Gupta <[email protected]>

* Add support for IPGroups in Firewall Policy Rules (#12118)

* Add support for IPGroups in Firewall Policy Rules

* Pr Comments

* Resolved merge conflicts

* Update ChangeLog.md

* Update ChangeLog.md

Co-authored-by: Yabo Hu <[email protected]>

* Application Gateway Private Link Cmdlets (#12133)

* Application Gateway Private Link Cmdlets

* add change log

* Add new cmdlet Reset-AzHubRouter (#12094)

* add routing state and expose reset-hubrouter

* update help

* updated

* Update ChangeLog.md

* update help file name

* export cmdlet

* update test

* fix

* update md file

* update tests

* updated help

* Update Reset-AzHubRouter.md

* test recorded

Co-authored-by: Yabo Hu <[email protected]>

* Fixes after merge

* Revert HPCCache.Test.csproj

Co-authored-by: aegal <[email protected]>
Co-authored-by: Ali Egal <[email protected]>
Co-authored-by: Nilambari <[email protected]>
Co-authored-by: Sai Mankala <[email protected]>
Co-authored-by: tejasshah7 <[email protected]>
Co-authored-by: Khushboo Baheti <[email protected]>
Co-authored-by: Khushboo Baheti <[email protected]>
Co-authored-by: Ishani Gupta <[email protected]>
Co-authored-by: Ishani Gupta <[email protected]>
Co-authored-by: Yabo Hu <[email protected]>
Co-authored-by: jaishals <[email protected]>
Co-authored-by: Ritvika Reddy Nagula <[email protected]>
@wyunchi-ms wyunchi-ms deleted the backendPoolChanges2 branch January 10, 2024 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants