0

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.

Stefan Wuebbe
  • 2,109
  • 5
  • 17
  • 28
  • We are using Azure SDK for Java, version: 1.41.4 we have another similar scenario : Update rule that contain Service Tag as a source, using the same request as above, getting exception code 400 with the following error message: “Required security rule parameters are missing for security rule with Id: /subscriptions/”subscription_id”/resourceGroups/TEST/providers/Microsoft.Network/networkSecurityGroups/nsg/securityRules/ruletest. Security rule must specify SourceAddressPrefixes, SourceAddressPrefix, or SourceApplicationSecurityGroups.” – Natanel Yaakovi Sep 19 '22 at 10:22

0 Answers0