-
Notifications
You must be signed in to change notification settings - Fork 167
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-MgSubscribedSku outputs a SkuPartNumber with extra characters #2323
Comments
Thanks @SeniorConsulting for helping identify the root cause of the issue! @bbrownchg, please open a ticket at https://developer.microsoft.com/graph/support with the |
Thank you, @peombwa. I have opened a case in my Azure subscription, ID 2309260040011228 if it helps. |
Awesome! Closing the issue in the repo as this is an issue with the service, not the SDK. |
FYI for @peombwa @SeniorConsulting and anyone else that happens to find this thread, MS support got back to me with unfortunate news:
|
When running
Get-MgSubscribedSku
to grab all licenses available in my tenant, an extra, unknown, character is getting appended to the end of the CPC_E_2C_8GB_128GB SkuPartNumber.In the console output of
Get-MgSubscribedSku | Select-Object SkuPartNumber
there is no obvious extra character, as seen below:Exporting the results to CSV shows something being added on to the end:
Running
Get-MgSubscribedSku | where {$_.skupartnumber -eq "CPC_E_2C_8GB_128GB"}
returns no results, whereasGet-MgSubscribedSku | where {$_.skupartnumber -like "CPC_E_2C_8GB_128GB*"}
does return an object.Running the same query using an HTTP call via
https://graph.microsoft.com/v1.0/subscribedSkus
does not appear to show the extra character.Based on this incorrectly filed issue, https://github.com/MicrosoftDocs/microsoft-365-docs/issues/8606, the extra character was identified as a zero-width space.
This is causing issues with matching SKU names to friendly names in automation scripts.
The text was updated successfully, but these errors were encountered: