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
Azure inventory plugin batch requests failing #47268
Comments
Hi @pmarques, thank you for submitting this issue! |
Files identified in the description: If these files are inaccurate, please update the |
I can't find any details in the documentation :( https://developer.microsoft.com/en-us/graph/docs/concepts/json_batching |
@pmarques Thanks for you contribution, The developer maintainer will take a look. Thanks! |
Changing the batch size from 500 to 20 fixes the problem but now I'm getting loads of errors |
@pmarques Thanks for the contribution, Could you help give you test YML or reproduced step? I will try to reproduced and push to be solved, Thanks! |
@Fred-sun you can follow the STEPS TO REPRODUCE, but basically an "empty" yaml file will return the error |
@pmarques I can't reproduce on ansible2.7.0( test successful), when the YAML is a null, it will return a null list, test result as below, please review. Could you help share your test YAML ? let me try again. Thanks!
normal yaml return result:
null test yaml return result:
|
Just tested in an empty subscription and I don't get any error, but If I run the same command / configuration agains a subscription with more than 70 instances it fails... |
@yungezz Could you help take a look this issue? Thanks! |
1 similar comment
I met same issue. It's related to how to make batch api call. I'm investigating it, will update if has more info. |
yes, the pr was merged, and it is backporting to next 2.7 minor release. |
SUMMARY
Azure is requiring a request name to allow batches bigger than 20 requests.
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
STEPS TO REPRODUCE
Create a yaml file, inventory/infra.azure_rm.yaml
Execute:
EXPECTED RESULTS
We expect a list of hosts but we get and error instead
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: