-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
GroupName
property of New-AzManagementGroupSubscription should be updated to match its meaning
#11718
Comments
@nguyenlamlll, thanks for your reporting. It seems all AzManagementGroup related cmdlets have the similar issues. Could you help to confirm format of ID you are using? Does its format like |
Hi @dingmeng-xue, I don't quite get what you need me to do here. In my scenario, I create a new "Management group". There is one field called "Management group ID" (user-provided) and "Management group display name". So, let's say I create a management group call "My Group" with an Id "c4be30d9-e22b-475b-af49-a6cf6230a114". Next, I move my existing subscriptions to the newly created management group using the script below (and the result):
This is confusing like I have reported above. And the one that works is to use the ID of the management group "c4be30d9-e22b-475b-af49-a6cf6230a114".
The param's name here is clearly vague and confusing as what I'm required to pass in is the ID, not the name. |
@nguyenlamlll the reference documentation for the [New-AzManagementGroupSubscription cmdlets] (https://docs.microsoft.com/en-us/powershell/module/az.resources/new-azmanagementgroupsubscription), indicates that the |
@wyunchi-ms , can you add breaking change warning for the time being? |
as per @mikefrobbins can we rename the |
Current implementation
Currently,
New-AzManagementGroupSubscription
accepts a parameter calledGroupName
, depicted as "Management Group Id". This is quite confusing (at least, to me, when I read the docs).GroupName
is confusing because, on the Azure Portal, we have Group Name and Group ID. Group Name is allowed to have spaces. When we see the param's name of the PS command, we naturally pass in the Group Name from Azure Portal.It's even more confusing when I read the error. It clearly says "the provided management group name".
However, in the end, the command works when I pass the ID of the management group.
Description of the new feature
The parameter should be named accordingly to its meaning.
Proposed implementation details
Is it this source file here? Sorry, I am not familiar with the source code structure of this repo.
If so, rename the property
GroupName
to the nameGroupId
orManagementGroupId
.The text was updated successfully, but these errors were encountered: