Skip to content

Added validation for circuit bandwidth in New/Update collector policy cmdlet for ATC#24571

Merged
Nickcandy merged 18 commits into
Azure:generationfrom
kukulkarni1:Az.NetworkFn
Apr 7, 2024
Merged

Added validation for circuit bandwidth in New/Update collector policy cmdlet for ATC#24571
Nickcandy merged 18 commits into
Azure:generationfrom
kukulkarni1:Az.NetworkFn

Conversation

@kukulkarni1

Copy link
Copy Markdown

Description

Added validation for ExpressRoute circuit bandwidth in New/Update collector policy cmdlet for ATC. We need to throw error if circuit bandwidth is less than 1G.

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • For SDK-based development mode, update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • For autorest-based development mode, include the changelog in the PR description.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

@azure-client-tools-bot-prd

azure-client-tools-bot-prd Bot commented Apr 2, 2024

Copy link
Copy Markdown
️✔️Az.Accounts
️✔️Build
️✔️PowerShell Core - Windows
⚠️Az.NetworkFunction
️✔️Build
️✔️PowerShell Core - Windows
️✔️Breaking Change Check
️✔️PowerShell Core - Windows
⚠️Signature Check
⚠️PowerShell Core - Windows
Type Cmdlet Description Remediation
⚠️ Get-AzNetworkFunctionCollectorPolicy Get-AzNetworkFunctionCollectorPolicy Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzNetworkFunctionCollectorPolicy Get-AzNetworkFunctionCollectorPolicy changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzNetworkFunctionTrafficCollector Get-AzNetworkFunctionTrafficCollector Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzNetworkFunctionTrafficCollector Get-AzNetworkFunctionTrafficCollector changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
️✔️Help File Existence Check
️✔️PowerShell Core - Windows
⚠️File Change Check
⚠️PowerShell Core - Windows
Type Cmdlet Description Remediation
⚠️ It is required to update ChangeLog.md if you want to release a new version for Az.NetworkFunction. Add a changelog record under Upcoming Release section with past tense.
️✔️UX Metadata Check
️✔️PowerShell Core - Windows
⚠️Test
⚠️ - Linux
Type Title Current Coverage Description
⚠️ Test Coverage Less Than 50% 0.00 % Test coverage for the module cannot be lower than 50%.
⚠️ - MacOS
Type Title Current Coverage Description
⚠️ Test Coverage Less Than 50% 0.00% Test coverage for the module cannot be lower than 50%.
⚠️PowerShell Core - Windows
Type Title Current Coverage Description
⚠️ Test Coverage Less Than 50% 0.00% Test coverage for the module cannot be lower than 50%.

@Nickcandy

Copy link
Copy Markdown
Contributor

Please leave your changelog here and I'll help you merge to main.

@kukulkarni1

Copy link
Copy Markdown
Author

Please leave your changelog here and I'll help you merge to main.

Changelog:
Added validation in New/Update collector policy cmdlets to throw exception if ExpressRoute Circuit bandwidth is less than 1G.

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.

2 participants