azurerm_role_assignment

Nivis Nix constructor for the azurerm_role_assignment resource (provider azurerm). This reference is derived from the provider binary's own schema via nivis gen — it always matches the real provider.

Constructor
{
  name,
  principal_id,
  scope,
  condition ? null,
  condition_version ? null,
  delegated_managed_identity_resource_id ? null,
  description ? null,
  id ? null,
  cfg_name ? null,
  principal_type ? null,
  role_definition_id ? null,
  role_definition_name ? null,
  skip_service_principal_aad_check ? null,
  timeouts ? null,
  overrides ? {}
}
Required arguments
  • principal_id
  • scope
Optional arguments
  • condition (defaults to null)
  • condition_version (defaults to null)
  • delegated_managed_identity_resource_id (defaults to null)
  • description (defaults to null)
  • id (defaults to null)
  • cfg_name (defaults to null)
  • principal_type (defaults to null)
  • role_definition_id (defaults to null)
  • role_definition_name (defaults to null)
  • skip_service_principal_aad_check (defaults to null)
  • timeouts (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • (none)
Example
azurerm_role_assignment {
  name = "role_assignment";
  principal_id = …;  # required
  scope = …;  # required
}

The reference for every provider is generated from the provider's own schema, not copied from its documentation.