Skip to content

Add-AzApiManagementUserToGroup does not accept GroupdID with whitespace #9351

Closed

Description

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

Get-Module.txt

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

Metadata

Assignees

Labels

API ManagementService AttentionThis issue is responsible by Azure service team.feature-requestThis issue requires a new behavior in the product in order be resolved.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions