Azure – How to get the principal_id of a Function App staging slot in Terraform?
I need to get access to a Function App staging slot in Terraform. I can get it for its production slot: data "azurerm_linux_function_app" "my_application" { name = <app_name> resource_group_name = <resource_group_name> } resource "azurerm_role_assignment" "role_assignment" { scope = <scope> role_definition_name…