Hi @ping940706 ,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
It seems that the issue you're encountering with the Azure De-identification Service API using the Python SDK is related to the default API version (2024-07-12-preview), which is not available in the portal. To resolve this, you should explicitly specify a supported API version when initializing the Deidentification Client. A version like 2024-09-20 or 2024-02-28-preview should work since these are available in the Azure portal. In your code, you can provide the correct API version by adding the Api version parameter when creating the Deidentification Client instance. Additionally, ensure that your credentials (tenant ID, client ID, and client secret) are correctly set up using the ClientSecretCredential class from the azure. Identity library, and that your endpoint is accurate. By making these adjustments, you should be able to interact with the De-identification Service successfully and avoid the issue caused by the unavailable API version.
I hope that this response will address your query and helped you overcome your challenges.
Thankyou.