already exists for tenant CUSTOMER
".To resolve this issue, delete the stale identity provider configurations by following below steps:
Note: Replace <SESSION ID>
with the id from Step 1
sample response:
{
"summary_list": [
{
"idp": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", --------------> IDP UUID
"name": "Azure AD",
"tenant_type": "CUSTOMER",
"activation_state": "PRIMARY_ACTIVE",
"primary_broker_discovery_endpoint": "https://<fqdn>:443/acs/t/customer/.well-known/openid-configuration"
}
]
}
<IDP UUID>
with the ID from Step 3 and <SESSION ID>
with the session id from Step 1.Note: Replace <SESSION ID>
with the id from Step 1
curl -k --request GET 'https://vCenter_FQDN/rest/vcenter/identity/providers' --header 'vmware-api-session-id: <SESSION ID>'
curl -k --request DELETE 'https://vCenter_FQDN/rest/vcenter/identity/providers/<Provider ID>' --header 'vmware-api-session-id: <SESSION ID>'
Note: Replace <Provider ID> with the Provider ID returned by Step 7curl -k --location --request GET 'https://vCenter_FQDN/api/vcenter/identity/broker/tenants/CUSTOMER/admin-client' --header 'vmware-api-session-id: <SESSION ID>'
curl -kv --request GET 'https://vCenter_FQDN/usergroup/t/CUSTOMER/broker/directories' \
--header 'Authorization: Bearer <ACCESS TOKEN>' | jq
Note: Replace <ACCESS TOKEN> using the token from Step 10.Sample response:
{
"items": [
{
"_links": {},
"id": "<Directory ID>",
"name": "azure_dir",
"domains": [
"<domain name>"
],
"source": "AZURE",
"type": "PROVISIONED",
"delete_in_progress": false
}
],
"_links": {}
}
curl -kv --request DELETE 'https://vCenter_FQDN/usergroup/t/CUSTOMER/broker/directories/<Directory ID from Step 11>' \
--header 'Authorization: Bearer <ACCESS TOKEN>'
curl -kv --request GET 'https://vCenter_FQDN/usergroup/t/CUSTOMER/broker/directories' \
--header 'Authorization: Bearer <ACCESS TOKEN>' | jq
curl -kv --location --request GET 'https://vCenter_FQDN/federation/t/CUSTOMER/broker/identity-providers' \
--header 'Authorization: Bearer <Access Token>' | jq
Sample response :
{
"items": [
{
"_links": {},
"id": "<Identity Provider ID>",
"idp_name": "Azure",
"idp_type": "OIDC",
"directory_ids": []
}
],
"_links": {}
}
curl -kv --location --request DELETE 'https://vCenter_FQDN/federation/t/CUSTOMER/broker/identity-providers/<Identity Provider ID from Step 14>' \
--header 'Authorization: Bearer <ACCESS TOKEN>'
curl -kv --location --request GET 'https://vCenter_FQDN/federation/t/CUSTOMER/broker/identity-providers' \
--header 'Authorization: Bearer <Access Token>' | jq