Closed henrylyons closed 1 year ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @mjconnection.
Thanks for reporting. Involve API Management team.
In my case, using:
$api.SubscriptionRequired = $false
Set-AzApiManagementApi -InputObject $api -Name $api.Name
Instead of:
$api.SubscriptionRequired = $false
$api | Set-AzApiManagementApi -Context $apimContext
worked like a charm.
We have made improvements to piping in the recent versions and @Luperi provided a workaround above, so I am closing this issue. If you're still experiencing the problem with the latest module version, please open a new issue.
Description
I am trying to change API properties by retrieving an API object with Get-AzApiManagementApi, changing property values, and piping the changed API object to Set-AzApiManagementApi.
I am trying to set these API property values: AuthorizationScope = "" SubscriptionRequired = False
However, these changes are not persisted in the service. Retrieving the same object again with Get-AzApiManagementApi shows that these values were not changed.
Steps to reproduce
Environment data
Module versions