Skip to content

[PS] Migrate Resource module Authorization part to autorest v4 #27902

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
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

JoyerJin
Copy link
Contributor

@JoyerJin JoyerJin commented Jun 9, 2025

Description

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • 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.
    • 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

@Copilot Copilot AI review requested due to automatic review settings June 9, 2025 09:45
Copy link

Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR migrates the Authorization cmdlet module to use AutoRest v4 by updating generated documentation, metadata, and assembly info to align with the new code generator and add JSON-based parameter sets.

  • Updated many cmdlet markdown files: removed outdated -InputObject sections, introduced CreateViaJsonFilePath/CreateViaJsonString parameter sets, adjusted Parameter Sets annotations, and standardized output model references.
  • Updated Az.Authorization.md and module metadata: bumped Module Guid, added new Update- cmdlets entries, and increased Az.Accounts dependency version.
  • Added a generated AssemblyInfo.cs for assembly metadata and versioning.

Reviewed Changes

Copilot reviewed 57 out of 57 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
docs/*.md Refactored cmdlet syntax blocks, parameter sets, types, and outputs
docs/Az.Authorization.md Updated help index entries, Module Guid, and dependency bump
README.md Adjusted AutoRest directives
Properties/AssemblyInfo.cs Added generated assembly metadata
Az.Authorization.nuspec Bumped Az.Accounts dependency version
Comments suppressed due to low confidence (2)

src/Resources/Authorization.Autorest/docs/New-AzRoleManagementPolicyAssignment.md:21

  • Consider adding or updating Pester tests to cover the new JsonFilePath and JsonString parameter sets for this cmdlet.
### CreateViaJsonFilePath

// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
Copy link
Preview

Copilot AI Jun 9, 2025

Choose a reason for hiding this comment

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

Insert a space after the period so it reads '... Code Generator. Changes may cause ...'.

Suggested change
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
// Code generated by Microsoft (R) AutoRest Code Generator. Changes may cause incorrect behavior and will be lost if the code

Copilot uses AI. Check for mistakes.

@JoyerJin
Copy link
Contributor Author

disable-table-view feature is missing, need confirm if this is expected.

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.

1 participant