Azure API Management User
This page shows how to write Terraform and Azure Resource Manager for API Management User and write them securely.
azurerm_api_management_user (Terraform)
The User in API Management can be configured in Terraform with the resource name azurerm_api_management_user. The following sections describe 6 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "azurerm_api_management_user" "user" {
user_id = var.user_id
api_management_name = var.apim_name
resource_group_name = var.resource_group_name
first_name = var.first_name
resource "azurerm_api_management_user" "user" {
user_id = var.service_settings.user_id
api_management_name = var.service_settings.endpoint_name
resource_group_name = var.context.resource_group_name
first_name = var.service_settings.first_name
resource "azurerm_api_management_user" "user" {
user_id = var.user_id
api_management_name = var.apim_name
resource_group_name = var.resource_group_name
first_name = var.first_name
resource "azurerm_api_management_user" "user" {
for_each = { for apim_users in var.apim_users : apim_users.user_id => apim_users }
api_management_name = var.apim_name
resource_group_name = var.apim_resource_group
user_id = each.value.user_id
first_name = each.value.first_name
resource "azurerm_api_management_user" "this" {
api_management_name = var.api_management_name
confirmation = var.confirmation
email = var.email
first_name = var.first_name
last_name = var.last_name
resource "azurerm_api_management_user" "this" {
api_management_name = var.api_management_name
confirmation = var.confirmation
email = var.email
first_name = var.first_name
last_name = var.last_name
Parameters
-
api_management_namerequired - string -
confirmationoptional - string -
emailrequired - string -
first_namerequired - string -
idoptional computed - string -
last_namerequired - string -
noteoptional - string -
passwordoptional - string -
resource_group_namerequired - string -
stateoptional computed - string -
user_idrequired - string -
timeoutssingle block
Explanation in Terraform Registry
Manages an API Management User.
Microsoft.ApiManagement/service/users (Azure Resource Manager)
The service/users in Microsoft.ApiManagement can be configured in Azure Resource Manager with the resource name Microsoft.ApiManagement/service/users. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
apiVersionrequired - stringnamerequired - stringUser identifier. Must be unique in the current API Management service instance.
propertiesrequiredappTypeoptional - stringDetermines the type of application which send the create user request. Default is legacy portal.
confirmationoptional - stringDetermines the type of confirmation e-mail that will be sent to the newly created user.
emailrequired - stringEmail address. Must not be empty and must be unique within the service instance.
firstNamerequired - stringFirst name.
identitiesoptional arrayidoptional - stringIdentifier value within provider.
provideroptional - stringIdentity provider name.
lastNamerequired - stringLast name.
noteoptional - stringOptional note about a user set by the administrator.
passwordoptional - stringUser Password. If no value is provided, a default password is generated.
stateoptional - stringAccount state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active.
typerequired - string
Frequently asked questions
What is Azure API Management User?
Azure API Management User is a resource for API Management of Microsoft Azure. Settings can be wrote in Terraform.
Where can I find the example code for the Azure API Management User?
For Terraform, the aadi555/azurerm, persistentsystems/terraform-azurerm and markti/terraform-azure source code examples are useful. See the Terraform Example section for further details.