-
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
New-AzApiManagementSubscription doesn't work when scoped to API #26997
Comments
Hello, just checking in to see if anyone has been able to take a look at this yet? |
Looks to me like a bug in the cmdlet's implementation. It should set "scope" property to what user inputed, but instead it used the name. I'll loop in onwer of this module |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @solankisamir, @mikebudzynski, @KedarJoshi, @yingru97. |
1 similar comment
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @solankisamir, @mikebudzynski, @KedarJoshi, @yingru97. |
Thank you! @isra-fel @solankisamir @mikebudzynski @KedarJoshi @yingru97 |
Hello, just checking in to see if anyone has been able to take a look at this yet? |
Description
Hi all,
A few others and I have been discussing this issue in detail in this thread here.
Please let me know if there is any other information needed.
Issue script & Debug output
Environment data
Module versions
Error output
Error Code: ValidationError
Error Message: One or more fields contain incorrect values:
Request Id: obfuscated
Error Details:
[Code= ValidationError, Message= Subscription scope should be one of '/apis', '/apis/{apiId}', '/products/{productId}', Target= scope]
DEBUG: 8:59:05 AM - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 8:59:05 AM - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 8:59:05 AM - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: AzureQoSEvent: Module: Az.ApiManagement:4.0.5; CommandName: New-AzApiManagementSubscription; PSVersion: 7.4.6; IsSuccess: False; Duration: 00:00:00.5904675; SanitizeDuration: 00:00:00; Exception:
Error Code: ValidationError
Error Message: One or more fields contain incorrect values:
Request Id: obfuscated
Error Details:
[Code= ValidationError, Message= Subscription scope should be one of '/apis', '/apis/{apiId}', '/products/{productId}', Target= scope]
;
The text was updated successfully, but these errors were encountered: