From 8cb0ebcb18ea2d7fdd048cae29e8b2d9c7239c54 Mon Sep 17 00:00:00 2001 From: Ian Stanton Date: Mon, 9 Dec 2024 17:34:54 -0500 Subject: [PATCH] Specify Principal Type in Rle Assignment Properties (#1064) Signed-off-by: Ian Stanton --- conductor/src/azure/uami_builder.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conductor/src/azure/uami_builder.rs b/conductor/src/azure/uami_builder.rs index 2feea2b9c..5ce6d23dc 100644 --- a/conductor/src/azure/uami_builder.rs +++ b/conductor/src/azure/uami_builder.rs @@ -5,6 +5,7 @@ use azure_error::AzureError; use azure_identity::TokenCredentialOptions; use azure_identity::WorkloadIdentityCredential; use azure_mgmt_authorization; +use azure_mgmt_authorization::models::role_assignment_properties::PrincipalType; use azure_mgmt_authorization::models::RoleAssignmentProperties; use azure_mgmt_msi::models::{ FederatedIdentityCredential, FederatedIdentityCredentialProperties, Identity, TrackedResource, @@ -196,7 +197,7 @@ pub async fn create_role_assignment( scope: None, role_definition_id: role_definition, principal_id: uami_principal_id.to_string(), - principal_type: None, + principal_type: Some(PrincipalType::ServicePrincipal), description: None, condition: None, condition_version: None,