Skip to content

Conversation

jkore1911
Copy link
Member

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 October 16, 2025 02:48
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 updates the Azure Elastic PowerShell cmdlets to support the stable API version 2025-06-01, introducing new capabilities for monitored subscriptions, OpenAI connector management, and enhanced monitor resource configuration options.

Key Changes

  • Updated API version from 2024-03-01 to 2025-06-01 across all cmdlets
  • Added new cmdlets for managing monitored subscriptions (Get/Update/Remove-AzElasticMonitoredSubscription)
  • Added cmdlet for organization resubscription (Get-AzElasticResubscribeOrganization)
  • Enhanced OpenAI integration with new OpenAiConnectorId parameter
  • Added new monitor properties: HostingType, Kind, ProjectDetail configuration

Reviewed Changes

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

Show a summary per file
File Description
help/*.md (22 files) Updated cmdlet documentation with enhanced descriptions and new parameter documentation
Az.Elastic.psd1 Updated module manifest with new cmdlet exports and Az.Accounts dependency to 5.3.0
test/*.ps1 (7 files) Added/updated test files for new cmdlets and modified test environment setup to use existing resources
test/*.Recording.json (10 files) Updated test recording files with new API version and response payloads
test/utils.ps1 Modified test setup to use existing Elastic monitors instead of creating new ones
test/env.json Updated test environment configuration with new resource details
Elastic.sln Updated project GUID reference
generate-info.json Updated generation identifier

@isra-fel
Copy link
Member

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

Get-AzElasticResubscribeOrganization -MonitorName <String> -ResourceGroupName <String>
[-SubscriptionId <String[]>] [-OrganizationId <String>] [-PlanId <String>] [-ResourceGroup <String>]
[-TargetSubscriptionId <String>] [-Term <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait]
[-WhatIf] [-Confirm] [<CommonParameters>]
Copy link
Member

Choose a reason for hiding this comment

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

Why -WhatIf and -Confirm for a GET command? Normally they are necessary if the command has side effects.
Consider hiding them if the command does not have side effects, or renaming the command if it has.

Copy link
Member Author

Choose a reason for hiding this comment

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

Not required, removed them

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.

@isra-fel
Copy link
Member

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@jkore1911
Copy link
Member Author

/azp run

Copy link
Contributor

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

@isra-fel
Copy link
Member

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@isra-fel
Copy link
Member

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@jkore1911 jkore1911 requested a review from isra-fel October 17, 2025 02:43
Copy link
Member

@isra-fel isra-fel left a comment

Choose a reason for hiding this comment

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

There are still a bunch of [-whatif] appearing in Get- commands which are not supposed to have side effects. Check out https://github.com/Azure/autorest.powershell/blob/main/docs/directives.md#Suppress-ShouldProcess for more details and guidance

That's the only thing left

@jkore1911 jkore1911 requested a review from isra-fel October 17, 2025 03:14
@isra-fel
Copy link
Member

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

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