The error message indicates that the resource type 'Microsoft.Discovery' is not recognized for the API version '2025-07-01-preview'. This could be due to an incorrect API version or the resource type not being available in that version.
Here are a few steps to troubleshoot:
- Verify the API version you are using. Check the latest documentation for the correct API version for 'Microsoft.Discovery'.
- Ensure that 'Microsoft.Discovery' is correctly registered in your subscription.
- If the issue persists, try using a different, stable API version.
If you need further assistance, please provide more details about the steps you are following and the context of your setup.