-
Notifications
You must be signed in to change notification settings - Fork 336
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
Network security group with flow logs setup cause "Parameter 'FlowLog.target_resource_id' can not be None" error #636
Comments
@iscai-msft Not sure, but I think the Ansible project will be the place to raise the issue. However, I think the problem is between the azcollection module and azure core itself. |
I still think the issue is that the ansible SDK is not passing all required parameters to the generated python SDK, not an issue in |
@iscai-msft I'm sorry to reply you so late. I was busy upgrading SDK recently and ignored these questions. Please forgive me. Thank you very much! |
@iscai-msft @ecchong Thank you for reporting this problem, yes, the network security group should have a parameter associated with NSG flow logs, this parameter is not supported for the moment, we will add it later. I just tested this,no matter managed flow logs attach or not, it did not get an error when retrieving resource group information . Thank you very much! |
@Fred-sun Could you provide a little more detail on your findings? We are facing this issue as well and I am willing to work on a PR, but I'm struggling to understand why simply retrieving NSGs fails for this scenario. Thank you! |
I've opened #726 to resolve the issue. I am able to verify the change in our environment: an NSG with flow logs can be retrieved without the error. The change aligns the output of @Fred-sun Please review...thank you! |
SUMMARY
When network security group is setup with flow logs, ansible failed with error
Parameter 'FlowLog.target_resource_id' can not be None
It is also reported in #583
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
RHEL 8.4
STEPS TO REPRODUCE
EXPECTED RESULTS
Listing network security groups. It works when there is no flow logs created for the NSG.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: