-
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
Get-AzSubscription in 2.10.0 is returning duplicate ids for one subscription. #19427
Comments
@amitdwivedi-broadcom , thanks for reporting. It should be a bug. Could you check issue environment? I suspect user has multiple tenants and subscription |
How come this issue is not there in 2.9.1 then? |
This issue only came up after 2.10.0 which was released 6hrs before, Also this user does have multiple tenants and subscriptions too but id for a subscription should only be one. Isnt it? |
@amitdwivedi-broadcom I can confirm this issue is due to fix of #19295 . Our test environment cannot cover all user scenarios. So, we want to confirm the root cause. It will help to ensure the fix more safe. |
@amitdwivedi-broadcom , could you check output of |
I have already pasted this the tenant Ids are different
PS /home/amit> (Get-AzSubscription -SubscriptionName "606303-2A - NIS - DLP
testing")
Name Id TenantId State
------------------------------
606303-2A - NIS - DLP testing d8e556db-074e-4a5f-a34a-bc1dbc554039
98315c53-5479-4f79-adb3-9b7c4ed1c330 Enabled
606303-2A - NIS - DLP testing d8e556db-074e-4a5f-a34a-bc1dbc554039
2b21c6e6-e674-4f82-bd36-d73d35d4cf6c Enabled
…On Thu, Sep 8, 2022, 20:21 Dingmeng Xue ***@***.***> wrote:
@amitdwivedi-broadcom <https://github.com/amitdwivedi-broadcom> , could
you check output of Get-AzSubscription -SubscriptionName "606303-2A - NIS
- DLP testing". Do 2 records have the same tenant id or not?
—
Reply to this email directly, view it on GitHub
<#19427 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANZ77X66OXRLG4KTBXBJONTV5H4NPANCNFSM6AAAAAAQG3PN6Y>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
This electronic communication and the information and any files transmitted
with it, or attached to it, are confidential and are intended solely for
the use of the individual or entity to whom it is addressed and may contain
information that is confidential, legally privileged, protected by privacy
laws, or otherwise restricted from disclosure to anyone else. If you are
not the intended recipient or the person responsible for delivering the
e-mail to the intended recipient, you are hereby notified that any use,
copying, distributing, dissemination, forwarding, printing, or copying of
this e-mail is strictly prohibited. If you received this e-mail in error,
please return the e-mail to the sender, delete it from your computer, and
destroy any printed copy of it.
|
Correct. the same subscription links to multiple tenants. We will fix it. |
Hi @amitdwivedi-broadcom , How to install:
Please notice that this link is temporarily valid and will be deleted after next release. |
This works for me and it's giving only a single ID now.
…On Fri, Sep 9, 2022, 21:29 NoriZC ***@***.***> wrote:
Hi @amitdwivedi-broadcom <https://github.com/amitdwivedi-broadcom>,
The OOB build is ready. Please give it a test in your environment and let
us know if it's OK to publish.
How to install:
- Install the Az.Tools.Installer module.
Install-Module -Name Az.Tools.Installer -Repository PSGallery
- Install the latest Az.Accounts module unless the OOB build requires
a specific version.
Install-Module Az.Accounts -Repository PSGallery
- Use Az.Tools.Installer to install the OOB build.
Install-AzModule -Path https://azposhpreview.blob.core.windows.net/public/Az.Accounts.2.10.1.nupkg
—
Reply to this email directly, view it on GitHub
<#19427 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANZ77X332K5GENXHISV6SVLV5NNEZANCNFSM6AAAAAAQG3PN6Y>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
This electronic communication and the information and any files transmitted
with it, or attached to it, are confidential and are intended solely for
the use of the individual or entity to whom it is addressed and may contain
information that is confidential, legally privileged, protected by privacy
laws, or otherwise restricted from disclosure to anyone else. If you are
not the intended recipient or the person responsible for delivering the
e-mail to the intended recipient, you are hereby notified that any use,
copying, distributing, dissemination, forwarding, printing, or copying of
this e-mail is strictly prohibited. If you received this e-mail in error,
please return the e-mail to the sender, delete it from your computer, and
destroy any printed copy of it.
|
Hi @amitdwivedi-broadcom,
The issue has been resolved. Feel free to reach out if you have other questions, thanks. |
Description
Wrong output for Get-AzSubscription -SubscriptionName in 2.10.0 version its returning array of IDs for one subscription. Where as in 2.9.1 it was returning only one id. Kindly fix this at the earliest as this is breaking changes for our customer
Issue script & Debug output
Environment data
Module versions
Error output
PS /home/amit> (Get-AzSubscription -SubscriptionName "606303-2A - NIS - DLP testing")
Name Id TenantId State
606303-2A - NIS - DLP testing d8e556db-074e-4a5f-a34a-bc1dbc554039 98315c53-5479-4f79-adb3-9b7c4ed1c330 Enabled
606303-2A - NIS - DLP testing d8e556db-074e-4a5f-a34a-bc1dbc554039 2b21c6e6-e674-4f82-bd36-d73d35d4cf6c Enabled
No response
The text was updated successfully, but these errors were encountered: