Skip to content

fix: allow providing sg from vnet_rg #345

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

Merged
merged 2 commits into from
Aug 8, 2024
Merged

Conversation

kristina-solovyova
Copy link
Contributor

No description provided.

scope = var.sg_id
description = "Can join security group"

permissions {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need this permission ?

Copy link
Contributor Author

@kristina-solovyova kristina-solovyova Aug 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we provide sg_id from different vnet_rg, we get this error:

\"error\": {\n    \"code\": \"LinkedAuthorizationFailed\",\n    \"message\": 
\"The client 'XXX' with object id 'XXX' has permission to perform action 'Microsoft.Compute/virtualMachineScaleSets/write' on scope '/subscriptions/YYY/resourceGroups/mncal-rg/providers/Microsoft.Compute/virtualMachineScaleSets/mn-test2-vmss'; 
however, it does not have permission to perform action(s) 'Microsoft.Network/networkSecurityGroups/join/action' on the linked scope(s) '/subscriptions/YYY/resourceGroups/qacal-rg/providers/Microsoft.Network/networkSecurityGroups/qa-sg'

@assafgi assafgi merged commit cc50f09 into dev Aug 8, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants