Skip to content
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

Create _own_nsg_ tag only if created_nsg is true #1565

Merged
merged 1 commit into from
May 21, 2024

Conversation

mdhowle
Copy link
Contributor

@mdhowle mdhowle commented May 16, 2024

SUMMARY

Currently, The _own_nsg_ tag is created unconditionally. This causes an Azure permission denied error after creating a VM with created_nsg: false and the VM is later deleted by a user with no permission to delete NSGs - even though the NSG does not actually exist.

This change will make it so the _own_nsg_ tag is created only if created_nsg: true.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

azure_rm_virtualmachine

ADDITIONAL INFORMATION

@Fred-sun Fred-sun added ready_for_review The PR has been modified and can be reviewed and merged medium_priority Medium priority labels May 17, 2024
@xuzhang3 xuzhang3 merged commit 1dfce6c into ansible-collections:dev May 21, 2024
@mdhowle mdhowle deleted the patch-1 branch May 21, 2024 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium_priority Medium priority ready_for_review The PR has been modified and can be reviewed and merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants