Skip to content

Commit

Permalink
Specify Principal Type in Rle Assignment Properties (#1064)
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Stanton <[email protected]>
  • Loading branch information
ianstanton authored Dec 9, 2024
1 parent 36237a4 commit 8cb0ebc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conductor/src/azure/uami_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 8cb0ebc

Please sign in to comment.