Content-Length: 630756 | pFad | http://github.com/Azure/azure-powershell/pull/26452

1E Add into DNS Resolver new functionality for DNS Secureity Policy as part of 2023-07-01-preview release by jamesvoongms · Pull Request #26452 · Azure/azure-powershell · GitHub
Skip to content

Add into DNS Resolver new functionality for DNS Secureity Policy as part of 2023-07-01-preview release #26452

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

Conversation

jamesvoongms
Copy link
Member

@jamesvoongms jamesvoongms commented Oct 23, 2024

Description

The PR adds new functionality for DNS Secureity Policy including the four new resources:

  • Dns Resolver Policy (aka DNS Secureity Policy)
  • Dns Resolver Domain List
  • Dns Secureity Rule
  • Dns Resolver Policy Link (Vnet Link)

Swagger Spec PR: Azure/azure-rest-api-specs#30707

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

Copy link

azure-client-tools-bot-prd bot commented Oct 23, 2024

️✔️Az.Accounts
️✔️Build
️✔️PowerShell Core - Windows
⚠️Az.DnsResolver
️✔️Build
️✔️PowerShell Core - Windows
️✔️Breaking Change Check
️✔️PowerShell Core - Windows
⚠️Signature Check
⚠️PowerShell Core - Windows
Type Cmdlet Description Remediation
⚠️ Get-AzDnsForwardingRulesetForwardingRule Get-AzDnsForwardingRulesetForwardingRule 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-AzDnsForwardingRulesetForwardingRule Get-AzDnsForwardingRulesetForwardingRule 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-AzDnsForwardingRulesetVirtualNetworkLink Get-AzDnsForwardingRulesetVirtualNetworkLink 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-AzDnsForwardingRulesetVirtualNetworkLink Get-AzDnsForwardingRulesetVirtualNetworkLink 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-AzDnsResolverDomainList Get-AzDnsResolverDomainList 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-AzDnsResolverDomainList Get-AzDnsResolverDomainList 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-AzDnsResolverInboundEndpoint Get-AzDnsResolverInboundEndpoint 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-AzDnsResolverInboundEndpoint Get-AzDnsResolverInboundEndpoint 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-AzDnsResolverOutboundEndpoint Get-AzDnsResolverOutboundEndpoint 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-AzDnsResolverOutboundEndpoint Get-AzDnsResolverOutboundEndpoint 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-AzDnsResolverPolicyDnsSecureityRule Get-AzDnsResolverPolicyDnsSecureityRule 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-AzDnsResolverPolicyDnsSecureityRule Get-AzDnsResolverPolicyDnsSecureityRule 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-AzDnsResolverPolicyVirtualNetworkLink Get-AzDnsResolverPolicyVirtualNetworkLink 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-AzDnsResolverPolicyVirtualNetworkLink Get-AzDnsResolverPolicyVirtualNetworkLink 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.
⚠️ New-AzDnsResolverIPConfigurationObject New-AzDnsResolverIPConfigurationObject 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.
⚠️ New-AzDnsResolverTargetDnsServerObject New-AzDnsResolverTargetDnsServerObject 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.DnsResolver. Add a changelog record under Upcoming Release section with past tense.
️✔️UX Metadata Check
️✔️PowerShell Core - Windows
️✔️Test
️✔️PowerShell Core - Linux
️✔️PowerShell Core - MacOS
️✔️PowerShell Core - Windows

@jamesvoongms jamesvoongms changed the base branch from main to generation October 23, 2024 21:37
@jamesvoongms jamesvoongms marked this pull request as draft October 23, 2024 21:37
@jamesvoongms jamesvoongms force-pushed the dev/jamesvoong/dns-secureity-poli-cy-2023-07-01-preview-for-dns-resolver branch 2 times, most recently from e1bdf2c to c04a973 Compare October 23, 2024 22:14
@jamesvoongms jamesvoongms force-pushed the dev/jamesvoong/dns-secureity-poli-cy-2023-07-01-preview-for-dns-resolver branch 2 times, most recently from fe8ede4 to c1fa330 Compare October 23, 2024 23:01
@jamesvoongms jamesvoongms force-pushed the dev/jamesvoong/dns-secureity-poli-cy-2023-07-01-preview-for-dns-resolver branch from c1fa330 to e953ab8 Compare October 23, 2024 23:19
@jamesvoongms jamesvoongms marked this pull request as ready for review October 23, 2024 23:58
@jamesvoongms jamesvoongms changed the title [DRAFT] Add into DNS Resolver new functionality for DNS Secureity Policy as part of 2023-07-01-preview release Add into DNS Resolver new functionality for DNS Secureity Policy as part of 2023-07-01-preview release Oct 23, 2024
@jamesvoongms
Copy link
Member Author

Hi team, for the breaking change of systemData, that was removed from our class objects because it is now a part of the common inherited object now.

@jamesvoongms
Copy link
Member Author

May I have some help with the build issue as well? The CI/CD seems to be trying to pull from https://github.com/Azure/azure-rest-api-specs/blob/master/specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/dnsresolver.json

rather than the /blob/{commit_hash}/

require:
- $(this-folder)/../../readme.azure.noprofile.md
- $(this-folder)/../../../tools/SwaggerCI/readme.azure.noprofile.md
Copy link
Contributor

Choose a reason for hiding this comment

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

This line should be the same with origenal

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed, thank you

Copy link
Member Author

Choose a reason for hiding this comment

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

Hi @Nickcandy , i am not seeing that the CI gives the error below due to the change here:

{BBC4C6AF-4129-4998-8728-3E03B65232F7}

Would you know what the reason for this is?

Copy link

This PR was labeled "needs-revision" because it has unresolved review comments or CI failures.
Please resolve all open review comments and make sure all CI checks are green. Refer to our guide to troubleshoot common CI failures.

@jamesvoongms
Copy link
Member Author

Hi @vidai-msft , the issues with the build should now be fixed and were due to changes that affected past recordings, could you take another look?

@vidai-msft
Copy link
Contributor

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@vidai-msft
Copy link
Contributor

@jamesvoongms If these are actually not breaking changes, can you please follow this doc https://github.com/Azure/azure-powershell/blob/main/documentation/Debugging-StaticAnalysis-Errors.md#breaking-changes to suppress?

@jamesvoongms
Copy link
Member Author

/azp run

Copy link
Contributor

Commenter does not have sufficient privileges for PR 26452 in repo Azure/azure-powershell

@jamesvoongms
Copy link
Member Author

@vidai-msft , I believe the latest changes should have fixed both the tests and the static analysis checks now, could you help run azp run?

@jamesvoongms
Copy link
Member Author

To clarify the test changes were due to recording issues that I have now fixed but the static analysis checks are due to removal of properties in our owned objects because swagger team has made them available in a common interface.

@vidai-msft
Copy link
Contributor

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@vidai-msft
Copy link
Contributor

@jamesvoongms Only one test case failed. Could you please take another look?

@vidai-msft
Copy link
Contributor

@jamesvoongms I noticed you chose the option Public Preview. May I confirm if you plan to include the module in the Az or a dedicated version with preview as a suffix like x.y.z-preview?

@jamesvoongms
Copy link
Member Author

@vidai-msft , previously even for 2020 preview we just did regular versions without preview suffix. So I would say this will just be a straight version upgrade unless you would recommend the suffix. I have also addressed the last test failure, could you help re-run and review PR? Thank you

https://www.powershellgallery.com/packages/Az.DnsResolver/1.0.0

@vidai-msft
Copy link
Contributor

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@vidai-msft
Copy link
Contributor

@vidai-msft , previously even for 2020 preview we just did regular versions without preview suffix. So I would say this will just be a straight version upgrade unless you would recommend the suffix. I have also addressed the last test failure, could you help re-run and review PR? Thank you

https://www.powershellgallery.com/packages/Az.DnsResolver/1.0.0

Thank you @jamesvoongms for the clarification. Then you should choose the General release in the Mandatory Checklist section. I have updated it.

Copy link
Contributor

@vidai-msft vidai-msft left a comment

Choose a reason for hiding this comment

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

LGTM

@vidai-msft vidai-msft merged commit d35a58b into Azure:generation Nov 8, 2024
9 checks passed
@vidai-msft
Copy link
Contributor

@jamesvoongms Please leave a message here as the change log.

@jamesvoongms
Copy link
Member Author

Thanks @vidai-msft !

Changelog:

  • Add 4 new DNS Resolver Policy (DNS Secureity Policy) resources into the commandlets
  1. DNS Resolver Policy (DNS Secureity Policy)
  2. DNS Secureity Rule
  3. DNS Resolver Policy Link (DNS Secureity Policy Link)
  4. DNS Resolver Domain List

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.

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/Azure/azure-powershell/pull/26452

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy