def METHOD_NAME():
    client = StorageManagementClient(
        credential=DefaultAzureCredential(),
        subscription_id="{subscription-id}",
    )
    response = client.blob_inventory_policies.create_or_update(
        resource_group_name="res7687",
        account_name="sto9699",
        blob_inventory_policy_name="default",
        properties={
            "properties": {
                "policy": {
                    "enabled": True,
                    "rules": [
                        {
                            "definition": {
                                "filters": {
                                    "blobTypes": ["blockBlob", "appendBlob", "pageBlob"],
                                    "creationTime": {"lastNDays": 1000},
                                    "includeBlobVersions": True,
                                    "includeSnapshots": True,
                                    "prefixMatch": ["inventoryprefix1", "inventoryprefix2"],
                                },
                                "format": "Csv",
                                "objectType": "Blob",
                                "schedule": "Daily",
                                "schemaFields": [
                                    "Name",
                                    "Creation-Time",
                                    "Last-Modified",
                                    "Content-Length",
                                    "Content-MD5",
                                    "BlobType",
                                    "AccessTier",
                                    "AccessTierChangeTime",
                                    "Snapshot",
                                    "VersionId",
                                    "IsCurrentVersion",
                                    "Metadata",
                                ],
                            },
                            "destination": "container1",
                            "enabled": True,
                            "name": "inventoryPolicyRule1",
                        },
                        {
                            "definition": {
                                "format": "Parquet",
                                "objectType": "Container",
                                "schedule": "Weekly",
                                "schemaFields": [
                                    "Name",
                                    "Last-Modified",
                                    "Metadata",
                                    "LeaseStatus",
                                    "LeaseState",
                                    "LeaseDuration",
                                    "PublicAccess",
                                    "HasImmutabilityPolicy",
                                    "HasLegalHold",
                                ],
                            },
                            "destination": "container2",
                            "enabled": True,
                            "name": "inventoryPolicyRule2",
                        },
                    ],
                    "type": "Inventory",
                }
            }
        },
    )
    print(response)