Skip to content
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

Can't refresh api management admin user data using azurerm_api_management_user #3967

Closed
Sasa33 opened this issue Jul 30, 2019 · 5 comments
Closed

Comments

@Sasa33
Copy link

Sasa33 commented Jul 30, 2019

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform (and AzureRM Provider) Version

Terraform v0.11.14
provider.azurerm v1.32.0

Affected Resource(s)

  • azurerm_api_management_user

Terraform Configuration Files

data "azurerm_api_management_user" "admin" {
  user_id             = "1"
  api_management_name = "${azurerm_api_management.api_management.name}"
  resource_group_name = "${azurerm_resource_group.resource_group.name}"
}

I'd like to get the default admin user account (/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/1) of api management

Debug Output

Panic Output

Expected Behavior

I get the admin user's data

Actual Behavior

I got the following error:
Error: data.azurerm_api_management_user.admin: "user_id" may only contain alphanumeric characters and dashes up to 80 characters in length (this error comes from the ApiManagementUserName function in api_management validator)

I noticed that other users's id is 24 length digits, if I tried another user, it works as expected.
But I can't get the admin user's data by using "1" as user_id

Steps to Reproduce

Important Factoids

References

@jhattarki
Copy link

I am having the same issue. Is there a solution/workaround.
Thanks.

@identifysun
Copy link

@jhattarki

You can try to create a new user(no admin).

@EtienneDeneuve
Copy link
Contributor

@Sasa33 do you still have the issue after the @rikribbers modification ?

@favoretti
Copy link
Collaborator

Since this issue has been reported a long time ago and relates to the version of provider we no longer support - I'm going to close it. Please open a new updated bug report on current versions of terraform and provider if this is still relevant. Thank you.

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants