Skip to content

Update Azure Policy examples to address issue #26902 #27040

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 2 commits into from
Jan 24, 2025

Conversation

mentat9
Copy link
Member

@mentat9 mentat9 commented Jan 23, 2025

Update Azure Policy examples to address issue #26902

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 Jan 23, 2025

⚠️Az.Resources
️✔️Build
️✔️PowerShell Core - Windows
⚠️Help Example Check
⚠️PowerShell Core - Windows
Type Cmdlet Example Line RuleName Description Extent Remediation
⚠️ Update-AzPolicyAssignment 10 3 Is_Alias Set-AzPolicyAssignment is an alias of 'Update-AzPolicyAssignment'. Set-AzPolicyAssignment -Id $PolicyAssignment.ResourceId -EnforcementMode Default Use formal name 'Update-AzPolicyAssignment' of the alias 'Set-AzPolicyAssignment'.
⚠️ Update-AzPolicyAssignment 10 3 Mismatched_Parameter_Value_Type Set-AzPolicyAssignment -Id $PolicyAssignment.ResourceId is not an expected parameter value type. -Id Use correct parameter value type. Expected Type is string. Now the type is .(Command).
⚠️ Update-AzPolicyExemption 6 2 Is_Alias Set-AzPolicyExemption is an alias of 'Update-AzPolicyExemption'. Set-AzPolicyExemption -Id $PolicyExemption.ResourceId -ClearExpiration -BackwardCompatible Use formal name 'Update-AzPolicyExemption' of the alias 'Set-AzPolicyExemption'.
⚠️ Update-AzPolicyExemption 6 2 Mismatched_Parameter_Value_Type Set-AzPolicyExemption -Id $PolicyExemption.ResourceId is not an expected parameter value type. -Id Use correct parameter value type. Expected Type is string. Now the type is .(Command).
️✔️Help File Existence Check
️✔️PowerShell Core - Windows

@YanaXu
Copy link
Contributor

YanaXu commented Jan 24, 2025

Hi @mentat9 , please run autorest and build-module.ps1 to refresh the docs folder.

@YanaXu YanaXu self-assigned this Jan 24, 2025
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.

@mentat9
Copy link
Member Author

mentat9 commented Jan 24, 2025

Hi @mentat9 , please run autorest and build-module.ps1 to refresh the docs folder.

Done, thanks @YanaXu.

@YanaXu
Copy link
Contributor

YanaXu commented Jan 24, 2025

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@YanaXu YanaXu merged commit 9a5dfbd into Azure:generation Jan 24, 2025
10 checks passed
@YanaXu YanaXu mentioned this pull request Jan 24, 2025
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants