@Azuretech - Thanks for the question and using MS Q&A platform.
Here is the reponse provided by the internal team: You need to update the SPN display name in Databricks Account, to make this update you need to call databricks SCIM API.
Here an example in PowerShell:
$spnName = "your SPN name"
$deploymentToken = "a valid Databricks Workspace token"
$unityCatalogWorkspaceUrl = "a valid databricks workspace URL, workspace needs to be attached to UC"
$spn = Get-AzADApplication -DisplayName $spnName
$spns = Invoke-DatabricksAPI -API "api/2.0/account/scim/v2/ServicePrincipals" -Method GET
$spnUcId = ($spns.Resources | Where-Object applicationId -ieq $spn.AppId).Id
$renameSpnBody = @{
schemas = @("urn:ietf:params:scim:api:messages:2.0:PatchOp")
Operations =
@(
@{
op = "replace"
path = "displayName"
value = @(
@{
value = $spnName
}
)
}
)
}
$textRenameSpnBody = $renameSpnBody | convertto-json -Depth 10
$headers = @{
Authorization="Bearer $deploymentToken"
}
#please note that the following REST API call is done with Invoke-RestMethod because it will not work with Invoke-DatabricksAPI
Invoke-RestMethod -Uri "$($unityCatalogWorkspaceUrl)/api/2.0/account/scim/v2/ServicePrincipals/$($spnUcId)" -Headers $headers -Method Patch -Body $textRenameSpnBody -ContentType "application/json"
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.