@Elmer C. Casta , Just checking in to see if you had got a chance to see the previous response. If the answer helped (pointed, you in the right direction) > please click Accept Answer Or please share the requested/more info to help you better.
Edit:
Thanks to Ole Christian Rynning for sharing the solution that worked.
To benefit the community, posting additional suggestions on similar issues:
The error parameter keyVaultCsmId has an invalid value may occur, due to these 2 possible causes:
Key Vault (KV) might be set to use RBAC or Network access tab blocking public access and not allowing trusted Microsoft services to bypass this firewall. Similar to solution outlined by Ole.
- Ensure that KV network is allowing public access or it has at least trusted Microsoft services to bypass this firewall.
Public Access Disabled (Private Endpoint Only): To enhance network security, you can configure your vault to disable public access. This will deny all public configurations and allow only connections through private endpoints.
Configure Azure Key Vault firewalls and virtual networks
https://learn.microsoft.com/azure/key-vault/general/network-security#public-access-disabled-private-endpoint-only
2. In case you have another certificate already installed in WebSpace. This certificate has the same certificate name but got imported using from a different Key Vault or Key Vault Secret. We can have only one certificate from a specific Key Vault and Key Vault Secret.
For such instance/scenario, if you are trying to upload the existing certificate. You may use a different certificate name when importing. You may try uploading the new certificate into the existing Key Vault (instead of creating a new Key Vault Secret).