Skip to content

Conversation

Gijsreyn
Copy link

Description

This pull request is a minor change to fix the enum to properly support Intellisense.

Fix: #24779 and #23967

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 September 22, 2025 14:40
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 pull request fixes the casing of the PowerShell 7.2 runbook type constant from "Powershell72" to "PowerShell72" to ensure proper IntelliSense support and consistency with PowerShell naming conventions.

Key changes:

  • Updates constant declaration to use proper PowerShell casing
  • Updates parameter names throughout the codebase to follow C# naming conventions
  • Ensures consistent usage across all cmdlets and client methods

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/Automation/Automation/Common/Constants.cs Updates the PowerShell 7.2 runbook type constant to use proper casing
src/Automation/Automation/Common/AutomationPSClient.cs Updates parameter names to follow C# naming conventions and uses the corrected constant
src/Automation/Automation/Cmdlet/NewAzureAutomationRunbook.cs Updates ValidateSet attribute to reference the corrected constant
src/Automation/Automation/Cmdlet/ImportAzureAutomationRunbook.cs Updates ValidateSet attribute to reference the corrected constant

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.

Import-AzAutomationRunbook cmd : Runbook type 'PowerShell72' not supported
1 participant