-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[ARM] Bump version of azure-mgmt-managementgroups
from 0.2.0
to 1.0.0
(Track 2 SDK) and add new sub commands for management-group
#20942
Conversation
Thank you for your contribution git-thomasdolan! We will review the pull request and get back to you soon. |
managementgroups |
azure-mgmt-managementgroups
SDK
azure-mgmt-managementgroups
SDKazure-mgmt-managementgroups
(Track 2 SDK)
@git-thomasdolan Hi, in the track 2 SDK, please replace |
azure-mgmt-managementgroups
(Track 2 SDK)azure-mgmt-managementgroups
from 0.2.0
to 1.0.0
(Track 2 SDK)
@git-thomasdolan In addition, since the version Then you need to re-run all the tests which include |
@zhoxing-ms I have the update method use the begin_create_or_update method in the SDK, after that it was able to pass the tests. If that is okay, then this is ready for review. The Azure Portal also seems to use the PUT method instead of PATCH when I checked so this would be consistent with Azure Portal |
azure-mgmt-managementgroups
from 0.2.0
to 1.0.0
(Track 2 SDK)azure-mgmt-managementgroups
from 0.2.0
to 1.0.0
(Track 2 SDK)
Hi @zhoxing-ms, we fixed the parentId parameter issue in our API Controller code and now the PATCH MG route works. It is passing all the unit tests but now it is failing the credential scan. Do you know what causes this? |
@git-thomasdolan This is a problem caused by credscan package |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
Can this be reviewed again now that all the tests have passed? |
with self.command_group('account management-group hierarchy-settings', resource_hierarchy_settings_sdk, client_factory=cf_hierarchy_settings) as g: | ||
g.custom_command('list', 'cli_hierarchy_settings_list') | ||
g.custom_command('create', 'cli_hierarchy_settings_create') | ||
g.custom_command('delete', 'cli_hierarchy_settings_delete') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to consider add confirmation=True
for the delete command?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added it
azure-mgmt-managementgroups
from 0.2.0
to 1.0.0
(Track 2 SDK)azure-mgmt-managementgroups
from 0.2.0
to 1.0.0
(Track 2 SDK)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@git-thomasdolan I see that there are some new commands in this PR. Could you please refer to the specification of this doc format-pr-description write what needs to be written into the history notes into the PR description
Is my updated title/description okay? I wasn't sure if it was correct from the guideline you linked. I referred to some previous PRs for some help |
@git-thomasdolan Bumping SDK version doesn't need to be written into history notes, so please remove this item
Please describe the specific features of the new commands and command groups
|
managementgroup_create["properties"]["tenantId"]) | ||
managementgroup_create["tenantId"]) | ||
self.assertEqual( | ||
managementgroup_create["properties"]["details"]["parent"]["name"], | ||
managementgroup_create["properties"]["tenantId"]) | ||
self.assertIsNotNone(managementgroup_create["properties"]["tenantId"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why delete ["properties"]
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The json formatting changed when updating the API version, removing [properties]
@git-thomasdolan Could you please address those conflicts? |
azure-mgmt-managementgroups
from 0.2.0
to 1.0.0
(Track 2 SDK)azure-mgmt-managementgroups
from 0.2.0
to 1.0.0
(Track 2 SDK) and add new sub commands for management-group
azure-mgmt-managementgroups
from 0.2.0
to 1.0.0
(Track 2 SDK) and add new sub commands for management-groupazure-mgmt-managementgroups
from 0.2.0
to 1.0.0
(Track 2 SDK) and add new sub commands for management-group
Commenter does not have sufficient privileges for PR 20942 in repo Azure/azure-cli |
@zhoxing-ms Can you re-run the pipeline? The new title started with a space so it caused the tests to fail. I don't have permissions to re-run |
helps['account management-group tenant-backfill get'] = """ | ||
type: command | ||
short-summary: Get the backfill status for a tenant. | ||
long-summary: Get the backfill status for a tenant. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
long-summary
should provide additional information, instead of being a duplicate of short-summary
. See #6426 (comment).
Description
az account management-group entities
az account management-group hierarchy-settings
az account management-group tenant-backfill
az account management-group subscription show
az account management-group subscription show-sub-under-mg
az account management-group check-name-availability
Testing Guide
Check if "GroupName" is valid.
cmd:
az account management-group check-name-availability -n GroupName
Show the details of a subscription "subName" under a management group "GroupName"
cmd:
az account management-group subscription show -n GroupName -s subName
Get the subscription(s) under a management group "GroupName"
cmd:
az account management-group subscription show -n GroupName
Get the Backfill Status for the current tenant
cmd:
az account management-group tenant-backfill get
Start Backfilling Subscriptions for the current tenant
cmd:
az account management-group tenant-backfill start
List all entities for the authenticated user
cmd:
az account management-group entities list
Get all hierarchy settings under the "RootMG" tenant
cmd:
az account management-group hierarchy-settings list-n RootMG
Create a hierarchy setting to require write permissions on the "RootMG" tenant to create a new Management Group under it
cmd:
az account management-group hierarchy-settings create -n RootMG -r True
Create a hierarchy setting to set "defaultGroup" as the new MG groups get created under in the "RootMG" tenant
cmd:
az account management-group hierarchy-settings create -n RootMG -m /providers/Microsoft.Management/managementGroups/DefaultGroup
Update the hierarchy setting to require write permissions on the "RootMG" tenant to create a new Management Group under
cmd:
az account management-group hierarchy-settings update-n RootMG -r True
Update the hierarchy setting to set "defaultGroup" as the new MG groups get created under in the "RootMG" tenant
cmd:
az account management-group hierarchy-settings update -n RootMG -m /providers/Microsoft.Management/managementGroups/DefaultGroup
Delete the hierarchy settings for the "RootMG" tenant
cmd:
az account management-group hierarchy-settings delete -n RootMG
History Notes
[ARM]
az account management-group entities
: Add a new command group to support entities (Management Groups and Subscriptions) operations for the authenticated user[ARM]
az account management-group hierarchy-settings
: Add a new command group to support operations on hierarchy settings defined at the management group level[ARM]
az account management-group tenant-backfill
: Add a new command group to support backfilling subscriptions for the tenant[ARM]
az account management-group subscription show
: Get the details of a given subscription under a given management group[ARM]
az account management-group subscription show-sub-under-mg
: Show what subscription is under a given management group[ARM]
az account management-group check-name-availability
: Check if a management group name is valid and availableThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.