Update NSG Rule - Unable to add ASG (source\destination)
Natanel Yaakovi
6
Reputation points
I’m trying to update rule source that contain ASG with additional ASG, by using the following:
networkSecurityGroup
.update()
.updateRule(ruletest)
.withSourceApplicationSecurityGroup("/subscriptions/”subscription_id”/resourceGroups/TEST/providers/Microsoft.Network/applicationSecurityGroups/ASG2")
.parent()
.apply();
The code seems to execute with no errors or exceptions, but the ASG is not added to the source.
Sign in to answer