def METHOD_NAME():
    client = ManagedNetworkFabricMgmtClient(
        credential=DefaultAzureCredential(),
        subscription_id="1234ABCD-0A1B-1234-5678-123456ABCDEF",
    )
    response = client.network_tap_rules.begin_update(
        resource_group_name="example-rg",
        network_tap_rule_name="example-tapRule",
        body={
            "properties": {
                "annotation": "annotation",
                "configurationType": "File",
                "dynamicMatchConfigurations": [
                    {
                        "ipGroups": [
                            {"ipAddressType": "IPv4", "ipPrefixes": ["10.10.10.10/30"], "name": "example-ipGroup1"}
                        ],
                        "portGroups": [{"name": "example-portGroup1", "ports": ["100-200"]}],
                        "vlanGroups": [{"name": "exmaple-vlanGroup", "vlans": ["10", "100-200"]}],
                    }
                ],
                "matchConfigurations": [
                    {
                        "actions": [
                            {
                                "destinationId": "/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/neighborGroups/example-neighborGroup",
                                "isTimestampEnabled": "True",
                                "matchConfigurationName": "match1",
                                "truncate": "100",
                                "type": "Goto",
                            }
                        ],
                        "ipAddressType": "IPv4",
                        "matchConditions": [
                            {
                                "encapsulationType": "None",
                                "ipCondition": {
                                    "ipGroupNames": ["example-ipGroup"],
                                    "ipPrefixValues": ["10.10.10.10/20"],
                                    "prefixType": "Prefix",
                                    "type": "SourceIP",
                                },
                                "portCondition": {
                                    "layer4Protocol": "TCP",
                                    "portGroupNames": ["example-portGroup1"],
                                    "portType": "SourcePort",
                                    "ports": ["100"],
                                },
                                "protocolTypes": ["TCP"],
                                "vlanMatchCondition": {
                                    "innerVlans": ["11-20"],
                                    "vlanGroupNames": ["exmaple-vlanGroup"],
                                    "vlans": ["10"],
                                },
                            }
                        ],
                        "matchConfigurationName": "config1",
                        "sequenceNumber": 10,
                    }
                ],
                "tapRulesUrl": "https://microsoft.com/amdsdx",
            },
            "tags": {"keyID": "keyValue"},
        },
    ).result()
    print(response)