Update NSG Rule - Unable to add ASG (source\destination)

Viewed 23

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.

0 Answers
Related