Closed
Description
openedon Jun 3, 2019
Description
I have a GroupID with a whitespace on the name. I have been using this same GroupID but this cmdlet does not allow GroupID with whitespace. On my API Management instance I am not able to change the GroupID, as this is not modifiable.
GroupID name: API Providers
Steps to reproduce
Add-AzApiManagementUserToGroup -Context $apimContext -GroupId $group.GroupId -UserId $user.UserId
Environment data
Name Value
---- -----
PSVersion 5.1.17763.503
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.503
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Module versions
Debug output
Error output
Add-AzApiManagementUserToGroup : 'groupId' does not match expected pattern '(^[\\w]+$)|(^[\\w][\\w\\-]+[\\w]$)'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment