Skip to content

Resource group name doesn't satisfy the constraint pattern /^[-\w\._\(\)]+$/ #13136

Closed

Description

We have created an Azure resource group from the portal, named Instruktører (notice the special character ø). When we try and perform a GET call using azure-sdk-for-js (https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/resources/arm-resources/src/operations/resourceGroups.ts#L115) on this resource group, it throws an error:

(node:57737) UnhandledPromiseRejectionWarning: Error: "resourceGroupName" with value "Instruktører" should satisfy the constraint "Pattern": /^[-\w\._\(\)]+$/.
    at failValidation (/Azure/node_modules/@azure/arm-resources/node_modules/@azure/ms-rest-js/dist/msRest.node.js:461:19)

Expected behaviour:
Since the portal accepts the resource group name Instruktører, we'd expect the SDK to accept it as well and not throw the above error.

Please check if the swagger definitions needs to be updated:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

ARMService AttentionWorkflow: This issue is responsible by Azure service team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions