Skip to content
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

Add AMG private endpoint commands #7879

Merged
merged 11 commits into from
Sep 5, 2024
Merged

Conversation

Jeralan
Copy link
Contributor

@Jeralan Jeralan commented Aug 13, 2024


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

Related command

az grafana

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

Adds private endpoint commands to azure managed grafana extension. Generated via aaz-dev-tools

Copy link

azure-client-tools-bot-prd bot commented Aug 13, 2024

⚠️Azure CLI Extensions Breaking Change Test
⚠️amg
rule cmd_name rule_message suggest_message
⚠️ 1011 - SubgroupAdd grafana mpe sub group grafana mpe added
⚠️ 1011 - SubgroupAdd grafana private-endpoint-connection sub group grafana private-endpoint-connection added

@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot labels Aug 13, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Aug 13, 2024

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

Copy link

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

Copy link

github-actions bot commented Aug 13, 2024

src/amg/HISTORY.rst Outdated Show resolved Hide resolved
src/amg/azext_amg/tests/latest/test_amg_scenario.py Outdated Show resolved Hide resolved
src/amg/azext_amg/tests/latest/test_amg_scenario.py Outdated Show resolved Hide resolved
self.check('connectionState.status', 'Pending')
])

self.cmd('grafana managed-private-endpoint refresh -g {rg} --workspace-name {name}')
Copy link
Contributor

Choose a reason for hiding this comment

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

any possible checks we can do for the 'refresh' command?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not directly on the call to the refresh command. The refresh command does not output anything. We check that the connection state updates from the refresh though by checking before and after.

self.check('length([])', 0)
])

self.cmd('network vnet create -g {rg} -n {vnet_name} -l {location} --subnet-name {subnet_name}')
Copy link
Contributor

Choose a reason for hiding this comment

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

any possible checks we can do after creation to check that the resource attributes are what we expect?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added checks to the mpe creation, the other create calls are creating non-amg resources.

@Jeralan
Copy link
Contributor Author

Jeralan commented Sep 4, 2024

@yonzhan ready for review

@kairu-ms kairu-ms merged commit 0c9f1a1 into Azure:main Sep 5, 2024
20 checks passed
@azclibot
Copy link
Collaborator

azclibot commented Sep 5, 2024

[Release] Update index.json for extension [ amg ] : https://dev.azure.com/azclitools/release/_build/results?buildId=186990&view=results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. extension/grafana az grafana
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants