def METHOD_NAME():
    client = ServiceFabricManagedClustersManagementClient(
        credential=DefaultAzureCredential(),
        subscription_id="00000000-0000-0000-0000-000000000000",
    )
    response = client.managed_clusters.begin_create_or_update(
        resource_group_name="resRg",
        cluster_name="myCluster",
        parameters={
            "location": "eastus",
            "properties": {
                "addonFeatures": ["DnsService", "BackupRestoreService", "ResourceMonitorService"],
                "adminPassword": "{vm-password}",
                "adminUserName": "vmadmin",
                "allowRdpAccess": True,
                "applicationTypeVersionsCleanupPolicy": {"maxUnusedVersionsToKeep": 3},
                "auxiliarySubnets": [
                    {
                        "enableIpv6": True,
                        "name": "testSubnet1",
                        "networkSecurityGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resRg/providers/Microsoft.Network/networkSecurityGroups/sn1",
                        "privateEndpointNetworkPolicies": "enabled",
                        "privateLinkServiceNetworkPolicies": "enabled",
                    }
                ],
                "clientConnectionPort": 19000,
                "clusterCodeVersion": "7.1.168.9494",
                "clusterUpgradeMode": "Manual",
                "dnsName": "myCluster",
                "enableAutoOSUpgrade": True,
                "enableIpv6": True,
                "fabricSettings": [
                    {"name": "ManagedIdentityTokenService", "parameters": [{"name": "IsEnabled", "value": "true"}]}
                ],
                "httpGatewayConnectionPort": 19080,
                "ipTags": [{"ipTagType": "FirstPartyUsage", "tag": "SQL"}],
                "loadBalancingRules": [
                    {
                        "backendPort": 80,
                        "frontendPort": 80,
                        "probePort": 80,
                        "probeProtocol": "http",
                        "protocol": "http",
                    },
                    {
                        "backendPort": 443,
                        "frontendPort": 443,
                        "probePort": 443,
                        "probeProtocol": "http",
                        "protocol": "http",
                    },
                    {
                        "backendPort": 10000,
                        "frontendPort": 10000,
                        "loadDistribution": "Default",
                        "probePort": 10000,
                        "probeProtocol": "http",
                        "protocol": "tcp",
                    },
                ],
                "networkSecurityRules": [
                    {
                        "access": "allow",
                        "description": "Test description",
                        "destinationAddressPrefixes": ["*"],
                        "destinationPortRanges": ["*"],
                        "direction": "inbound",
                        "name": "TestName",
                        "priority": 1010,
                        "protocol": "tcp",
                        "sourceAddressPrefixes": ["*"],
                        "sourcePortRanges": ["*"],
                    },
                    {
                        "access": "allow",
                        "destinationAddressPrefix": "*",
                        "destinationPortRange": "33500-33699",
                        "direction": "inbound",
                        "name": "AllowARM",
                        "priority": 2002,
                        "protocol": "*",
                        "sourceAddressPrefix": "AzureResourceManager",
                        "sourcePortRange": "*",
                    },
                ],
                "serviceEndpoints": [{"locations": ["eastus2", "usnorth"], "service": "Microsoft.Storage"}],
                "useCustomVnet": True,
                "zonalResiliency": True,
                "zonalUpdateMode": "Fast",
            },
            "sku": {"name": "Basic"},
            "tags": {},
        },
    ).result()
    print(response)