-
Notifications
You must be signed in to change notification settings - Fork 844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Http 400 Preflight validation check error the operation failed or was cancelled
needs detailed message
#23350
Comments
could you provide your go code of using the |
Hi @hemarina. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue. |
I got error message: |
refer the following code to deal with error code and error message
|
I can add some debugging notes here since I was fortunate enough to be present with @hemarina at the time, but I do believe this is a bug in the Swagger spec that is used to generate Here's the execution flow we observed:
In summary, the bug observed by the user is:
We are also happy to provide a minimal repro setup, but it boils down to calling deploymentsClient.BeginValidate with parameters that will result in an ARM 400 response. |
@weikanglim thanks for the detail. if possible, could you provide the detail logs with this instruction. i want to confirm the service return 400 with the lro init call. |
@hemarina can you enable logging and share? |
|
@jhendrixMSFT For LRO with |
Including a |
Got it. Thanks Joel. Let me add service attention label. |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @armleads-azure. |
@tadelesh @armleads-azure @jhendrixMSFT azd <-> preflight integration is currently blocked due to this. Could you prioritize fixing this issue and provide an ETA? |
Our SDK is auto-generated from service's spec. @armleads-azure could you help to prioritize? |
Bug Report
armresources
,latest
,1.2.0
go version
:go1.22.1 windows/amd64
I'm testing preflight validation function with an unsupported location (e.g australiacentral) for todo-nodejs-mongo-aks. The error message is
the operation failed or was cancelled
. The error message should provide a detailed message on why it is failing.I debugged and this is the error message that got skipped:
The template deployment '****' is not valid according to the validation procedure. The tracking id is '****'. See inner errors for details. Preflight validation check for resource(s) for container service *** in resource group ****** failed. Message: Virtual Machine size: '' is not supported for subscription ***** in location 'australiacentral'. Please refer to aka.ms/aks/vm-size-selector to find supported VM sizes in location 'australiacentral'.
This message is necessary for users to debug and should be provided in error message.The text was updated successfully, but these errors were encountered: