Skip to content

Conversation

@arushiarora24
Copy link
Member


This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

###Testing details:
image

Copilot AI review requested due to automatic review settings November 4, 2025 21:21
@arushiarora24 arushiarora24 requested a review from jsntcy as a code owner November 4, 2025 21:21
@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Nov 4, 2025

❌Azure CLI Extensions Breaking Change Test
❌dynatrace
rule cmd_name rule_message suggest_message
1008 - ParaPropAdd dynatrace monitor list-linkable-environment cmd dynatrace monitor list-linkable-environment update parameter region: added property required=True please remove property required=True for parameter region of cmd dynatrace monitor list-linkable-environment
1008 - ParaPropAdd dynatrace monitor list-linkable-environment cmd dynatrace monitor list-linkable-environment update parameter tenant_id: added property required=True please remove property required=True for parameter tenant_id of cmd dynatrace monitor list-linkable-environment
1008 - ParaPropAdd dynatrace monitor list-linkable-environment cmd dynatrace monitor list-linkable-environment update parameter user_principal: added property required=True please remove property required=True for parameter user_principal of cmd dynatrace monitor list-linkable-environment
⚠️ 1006 - ParaAdd dynatrace monitor create cmd dynatrace monitor create added parameter mp_saas_auto_renew
⚠️ 1009 - ParaPropRemove dynatrace monitor create cmd dynatrace monitor create update parameter plan_data: removed property required=True
⚠️ 1010 - ParaPropUpdate dynatrace monitor create cmd dynatrace monitor create update parameter subscription_status: updated property choices from ['Active', 'Suspended'] to ['Active', 'Suspended', 'Unsubscribed']
⚠️ 1009 - ParaPropRemove dynatrace monitor create cmd dynatrace monitor create update parameter user_info: removed property required=True
⚠️ 1006 - ParaAdd dynatrace monitor get-metric-status cmd dynatrace monitor get-metric-status added parameter monitored_resource_ids
⚠️ 1008 - ParaPropAdd dynatrace monitor get-sso-detail cmd dynatrace monitor get-sso-detail update parameter monitor_name: added property id_part=name
⚠️ 1008 - ParaPropAdd dynatrace monitor get-vm-host-payload cmd dynatrace monitor get-vm-host-payload update parameter monitor_name: added property id_part=name
⚠️ 1006 - ParaAdd dynatrace monitor list-monitored-resource cmd dynatrace monitor list-monitored-resource added parameter monitored_resource_ids
⚠️ 1011 - SubgroupAdd dynatrace monitor monitored-subscription sub group dynatrace monitor monitored-subscription added
⚠️ 1001 - CmdAdd dynatrace monitor sso-config update cmd dynatrace monitor sso-config update added
⚠️ 1006 - ParaAdd dynatrace monitor update cmd dynatrace monitor update added parameter mi_system_assigned
⚠️ 1006 - ParaAdd dynatrace monitor update cmd dynatrace monitor update added parameter mi_user_assigned
⚠️ 1006 - ParaAdd dynatrace monitor update cmd dynatrace monitor update added parameter plan_data
⚠️ 1011 - SubgroupAdd dynatrace observability sub group dynatrace observability added

@azure-client-tools-bot-prd
Copy link

Hi @arushiarora24,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in setup.py as well.

@yonzhan
Copy link
Collaborator

yonzhan commented Nov 4, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link

github-actions bot commented Nov 4, 2025

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@github-actions
Copy link

github-actions bot commented Nov 4, 2025

CodeGen Tools Feedback Collection

Thank you for using our CodeGen tool. We value your feedback, and we would like to know how we can improve our product. Please take a few minutes to fill our codegen survey

@github-actions
Copy link

github-actions bot commented Nov 4, 2025

Copy link
Contributor

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 adds comprehensive test coverage for Dynatrace observability and monitored subscription commands, while making location, email, and version updates to existing tests.

  • Adds new test files for dynatrace observability monitor and dynatrace monitored-subscription command groups
  • Updates test locations from eastus/eastus to centraluseuap/eastus2euap
  • Updates email addresses from agarwalshiv@microsoft.com to arushiarora@microsoft.com
  • Adds time import and manual delay logic for backend stabilization
  • Updates minimum CLI core version requirement from 2.70.0 to 2.75.0

Reviewed Changes

Copilot reviewed 49 out of 51 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
test_dynatrace_observability_monitor.py New test file for observability monitor commands with list and manage-agent-installation operations
test_dynatrace_monitored_subscription.py New test file for monitored-subscription lifecycle (create, list, show, delete)
test_dynatrace.py Updated locations, email addresses, added stabilization delay, and SSO config update command
test_observability_monitor_commands.yaml Recording file for new observability monitor test scenarios
test_monitored_subscription_commands.yaml Recording file for new monitored subscription test scenarios
test_dynatrace_saas_resource.yaml Updated API version and response format for SaaS resource details
azext_metadata.json Bumped minimum CLI version from 2.70.0 to 2.75.0
aaz files Added new command group infrastructure for observability monitor and SSO config update

self.kwargs.update({
'monitor': self.create_random_name('monitor', 15),
'sub_id': self.get_subscription_id(),
'updated_status': 'InProgress',
Copy link

Copilot AI Nov 4, 2025

Choose a reason for hiding this comment

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

The variable 'updated_status' is defined but never used in this test. Remove this unused variable to keep the test code clean.

Copilot uses AI. Check for mistakes.
Comment on lines +21 to +23
'subscription_id': '/SUBSCRIPTIONS/b16e4b4e-2ed8-4f32-bac1-0e3eb56bef5c', # normalized variable name
'subs_id': '/subscriptions/b16e4b4e-2ed8-4f32-bac1-0e3eb56bef5c',
'updated_status': 'InProgress'
Copy link

Copilot AI Nov 4, 2025

Choose a reason for hiding this comment

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

Two variables ('subs_id' and 'updated_status') are defined but never used in the test. Additionally, 'subscription_id' and 'subs_id' contain the same value with different casing, creating redundancy. Remove the unused variables.

Copilot uses AI. Check for mistakes.
Comment on lines +45 to +49
# Wait for monitor provisioning to complete before performing update
self.cmd('dynatrace monitor wait -g {rg} -n {monitor} --created')
# Add a manual delay for backend service stabilization
time.sleep(60)
# Use standard tag syntax key=value to avoid shorthand parsing issues
Copy link

Copilot AI Nov 4, 2025

Choose a reason for hiding this comment

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

A hard-coded 60-second sleep is added for 'backend service stabilization', but the actual update command referenced in the comment on line 49 has been removed (lines 45-50 replace the previous update command). This creates dead code and misleading comments. Either restore the update command or remove the stabilization delay and its comments.

Copilot uses AI. Check for mistakes.
@arushiarora24
Copy link
Member Author

@arushiarora24 please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@microsoft-github-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree company="Microsoft"

@necusjz
Copy link
Member

necusjz commented Nov 7, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@necusjz
Copy link
Member

necusjz commented Nov 10, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@necusjz
Copy link
Member

necusjz commented Nov 10, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@kairu-ms
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@necusjz
Copy link
Member

necusjz commented Nov 12, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@necusjz necusjz merged commit 617cd7d into Azure:main Nov 12, 2025
24 checks passed
@azclibot
Copy link
Collaborator

[Release] Update index.json for extension [ dynatrace-2.0.0 ] : https://dev.azure.com/msazure/One/_build/results?buildId=143445874&view=results

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.

5 participants